Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error during gawkextlib installation

73 views
Skip to first unread message

nair...@gmail.com

unread,
Mar 14, 2015, 10:17:38 AM3/14/15
to
Hi everyone,

I would like to have some help about this error :

/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in packaging
make[2]: Nothing to be done for `all'.
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wextra -Wpointer-arith -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wshadow -no-undefined -L/Users/dorian/produits//lib -o libgawkextlib.la -rpath /usr/local/lib strhash.lo varinit.lo
libtool: link: gcc -dynamiclib -o .libs/libgawkextlib.0.dylib .libs/strhash.o .libs/varinit.o -L/Users/dorian/produits//lib -O2 -install_name /usr/local/lib/libgawkextlib.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module
Undefined symbols for architecture x86_64:
"_gawk_free", referenced from:
_gawk_api_varinit_scalar in varinit.o
_gawk_api_varinit_constant in varinit.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libgawkextlib.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Some details :
This error appears when i install gawk v4.1.1 and extlib v1.0.0

I tried gawk v4.1.0 but ./configure step lead to errors... That's why i keep trying with the last version.


There are my commands :
on the gawk directory > ./configure --prefix=/Users/dorian/produits/
> make
> make install

on gawkextlib dir -> ./configure ----with-gawk=/Users/dorian/produits/
> make (ERROR step)


Thx :)

Andrew Schorr

unread,
Mar 14, 2015, 12:02:06 PM3/14/15
to
What platform are you using? I am unable to duplicate this on Fedora 19 linux x86_64.

On Saturday, March 14, 2015 at 10:17:38 AM UTC-4, nair...@gmail.com wrote:
> Undefined symbols for architecture x86_64:
> "_gawk_free", referenced from:
> _gawk_api_varinit_scalar in varinit.o
> _gawk_api_varinit_constant in varinit.o
> ld: symbol(s) not found for architecture x86_64

This suggests that your gawkapi.h file is damaged or missing. It should contain:

#define gawk_free(ptr) (api->api_free(ptr))

What precise commands are you running? I tried to duplicate this, but I cannot. I ran these commands:

wget http://ftp.gnu.org/gnu/gawk/gawk-4.1.1.tar.xz
tar xf gawk-4.1.1.tar.xz
cd gawk-4.1.1
./configure --prefix=/tmp/gawktest && make && make check && make install && echo GOOD
cd ..
wget http://sourceforge.net/projects/gawkextlib/files/gawkextlib-1.0.0.tar.gz
tar xf gawkextlib-1.0.0.tar.gz
cd gawkextlib-1.0.0
./configure --with-gawk=/tmp/gawktest && make && make check && echo GOOD

Regards,
Andy

Paulino Huerta

unread,
Mar 15, 2015, 8:36:42 AM3/15/15
to
I confirm,

starting from
wget http://ftp.gnu.org/gnu/gawk/gawk-4.1.1.tar.xz
....
...
and
wget http://sourceforge.net/projects/gawkextlib/files/gawkextlib-1.0.0.tar.gz
...
...

for 32-bit Ubuntu:
Linux Pxxx 3.2.0-35-generic-pae #55-Ubuntu SMP Wed Dec 5 18:04:39 UTC 2012 i686 i686 i386 GNU/Linux

for 64-bit Ubuntu
Linux rxxx 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

the results are OK

-Paulino


nair...@gmail.com

unread,
Mar 16, 2015, 12:36:18 PM3/16/15
to
Hello thank you for your answers.

I'm trying to run this on MacOS Yosemite.

That's why i'm using gawk sources to install it.

Regards

Andrew Schorr

unread,
Mar 16, 2015, 11:46:09 PM3/16/15
to
On Monday, March 16, 2015 at 12:36:18 PM UTC-4, nair...@gmail.com wrote:
> I'm trying to run this on MacOS Yosemite.

I unfortunately don't have access to a MacOS system to test this on. If you are continuing to have problems, it would be helpful if you could post somewhere (pastebin?) a log containing all the commands and all the output.

Regards,
Andy

Hermann Peifer

unread,
Mar 17, 2015, 2:02:21 AM3/17/15
to
I can't remember having ever had any problems on Yosemite or Mavericks.

My currently installed gawkextlib extensions are:
-rwxr-xr-x 1 peifer staff 29032 Mar 16 2014 mpfr.so
-rwxr-xr-x 1 peifer staff 292928 Apr 21 2014 xml.so

I am using MacPorts, though, which makes life somewhat easier. There is
also Homebrew, Fink, perhaps others.

Hermann

nair...@gmail.com

unread,
Mar 19, 2015, 4:57:01 AM3/19/15
to
Lucky u ^^
Could you even remember how did you install your gawkextlib ?
Did you follow a tutorial ? Or something that can help me ?


@Andrew Schorr I checked the gawkapi.h file and the line was exactly the one you quoted.
Is that possible that it is something else that damages the file ?


Regards

Hermann Peifer

unread,
Mar 19, 2015, 6:15:20 PM3/19/15
to
On 2015-03-19 9:57, nair...@gmail.com wrote:
>
> Lucky u ^^
> Could you even remember how did you install your gawkextlib ?
> Did you follow a tutorial ? Or something that can help me ?
>

I was following the manual page at
http://www.gnu.org/software/gawk/manual/html_node/gawkextlib.html, and
the README file (they are not exactly saying the same thing, though).

See below. Hermann

$ git clone git://git.code.sf.net/p/gawkextlib/code gawkextlib-code
Cloning into 'gawkextlib-code'...
remote: Counting objects: 9200, done.
...
$ $ cd gawkextlib-code/xml/
$ autoreconf -i
...
$ ./configure --with-gawk=$HOME/local --prefix=$HOME/local
--with-libiconv-prefix=/opt/local
...
$ make
...
$ make check
...
ALL TESTS PASSED
$ make install
...
$ ls -l /Users/peifer/local/lib/gawk/
...
-rwxr-xr-x 1 peifer staff 292976 Mar 19 23:11 xml.so


Andrew Schorr

unread,
Mar 19, 2015, 10:27:13 PM3/19/15
to
On Thursday, March 19, 2015 at 6:15:20 PM UTC-4, Hermann Peifer wrote:
> I was following the manual page at
> http://www.gnu.org/software/gawk/manual/html_node/gawkextlib.html, and
> the README file (they are not exactly saying the same thing, though).

Sorry -- the information in the gawk manual is out of date. The gawkextlib README file should be correct.

Regards,
Andy

Hermann Peifer

unread,
Mar 20, 2015, 12:43:43 AM3/20/15
to
Indeed. On the other hand: starting form the (somewhat outdated) manual,
people will get to the README, and from there to xml.so. For the
initiated, there is a fair chance to be done in, say: 15 minutes or
less, which is an acceptable amount of life time, I would say.

Hermann
0 new messages