[Help-gnutls] undefined symbols on os x tiger

John Ratliff webmaster at technoplaza.net
Wed Dec 31 04:36:09 CET 2008


John Ratliff wrote:
> I am trying to compile FileZilla on Mac OS X Tiger (10.4). FileZilla 
> requires gnutls >= 2.04.
>
> I can't seem to compile gnutls. This is the error I get. I didn't find 
> anything on google about this error, only about problems with zlib. 
> Using --without-zlib did not fix this problem.
>
> /bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99 
> -I/Users/jdratlif/temp/filezilla/include -g -O2 -Wno-pointer-sign   -o 
> errcodes errcodes.o ../lib/libgnutls.la 
> -L/Users/jdratlif/temp/filezilla/lib -lgcrypt -lgpg-error  
> ../gl/libgnu.la ../lgl/liblgnu.la
> libtool: link: gcc -std=gnu99 -I/Users/jdratlif/temp/filezilla/include 
> -g -O2 -Wno-pointer-sign -o errcodes errcodes.o  
> ../lib/.libs/libgnutls.a -L/Users/jdratlif/temp/filezilla/lib -lz 
> /Users/jdratlif/temp/filezilla/lib/libgcrypt.a 
> /Users/jdratlif/temp/filezilla/lib/libgpg-error.a ../gl/.libs/libgnu.a 
> ../lgl/.libs/liblgnu.a
> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
> __gnutls_log_func
> collect2: ld returned 1 exit status
> make[3]: *** [errcodes] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> I thought it might be specific to this version 2.6.3, but it also 
> happens in 2.6.2, 2.4.2, and 2.2.5.
>
> Any thoughts on what this means or how I can fix it?
>
> I am using Intel Mac OS X Tiger 10.4.
> Xcode 2.5
> gcc/g++ i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. 
> build 5370)
>
> I had to compile libgpg-error and libgcrypt before I could finish the 
> configure script.
>
> libgpg-error-1.7:
> ./configure --disable-shared --prefix $HOME/temp/filezilla
> make && make install
>
> libgcrypt-1.4.3:
> ./configure --disable-shared 
> --with-gpg-error-prefix=$HOME/temp/filezilla --prefix 
> $HOME/temp/filezilla
> make && make install
>
> gnutls-2.6.3:
> ./configure --disable-shared 
> --with-libgcrypt-prefix=$HOME/temp/filezilla --prefix 
> $HOME/temp/filezilla
> make
>
> I have complete configure and build logs available at 
> http://www.technoplaza.net/temp/ for all three projects.

Apparently, the library already compiled, but the samples don't. So if I 
remove the samples from compiling, I can use the library fine.

--John Ratliff






More information about the Gnutls-help mailing list