gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compilation difficulties on Mac


From: Simon Josefsson
Subject: Re: compilation difficulties on Mac
Date: Wed, 29 Jul 2009 21:46:00 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.96 (gnu/linux)

John Ratliff <address@hidden> writes:

> For some reason, Mac cannot build the doc folder on gnutls. Because of
> this, make install will not proceed. I have been editing the Makefile
> to prevent the doc folder from being built, but I wonder if there is a
> better solution to this.
>
> I am using the 2009-06-28 daily source release, but this problem
> affects all versions (2.8.1, 2.6.x, 2.4.2, and 2.2.5 tested). It
> manifests on both Tiger and Leopard.

It builds fine on my powerbook:

http://autobuild.josefsson.org/gnutls/#GnuTLS-powerpc-apple-darwin8.11.0

> My configure line
>
> ./configure --disable-shared
> --with-libgcrypt-prefix=$HOME/unix/libgcrypt --prefix
> $HOME/unix/gnutls-20090628
>
> My configure output: http://code.technoplaza.net/temp/gnutls/configure.log
> The output of make http://code.technoplaza.net/temp/gnutls/make.log

Can you try without --disabled-shared?

> The library builds fine, and if I edit the Makefile to tell it to
> ignore the doc directory, I can use make install and the library works
> perfectly. I am presently using this patch
> http://code.technoplaza.net/filezilla/gnutls-2.8.patch to adjust the
> Makefile.
>
> Any better suggestions?

Sorry I can't think of anything.  The error message is:

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../lib/includes -I../lib/includes 
-I/Users/jdratlif/unix/libgcrypt/include 
-I/Users/jdratlif/unix/libgpg-error-1.7/include  -g -O2 -MT errcodes.o -MD -MP 
-MF .deps/errcodes.Tpo -c -o errcodes.o errcodes.c
mv -f .deps/errcodes.Tpo .deps/errcodes.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99  -g -O2   -o errcodes 
errcodes.o ../lib/libgnutls.la ../gl/libgnu.la 
libtool: link: gcc -std=gnu99 -g -O2 -o errcodes errcodes.o  
../lib/.libs/libgnutls.a -L/Users/jdratlif/unix/libgcrypt/lib 
-L/Users/jdratlif/unix/libgpg-error-1.7/lib -lz 
/Users/jdratlif/unix/libgcrypt-1.4.4/lib/libgcrypt.a 
/Users/jdratlif/unix/libgpg-error-1.7/lib/libgpg-error.a ../gl/.libs/libgnu.a
Undefined symbols:
  "__gnutls_log_func", referenced from:
      __gnutls_log_func$non_lazy_ptr in libgnutls.a(gnutls_errors.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [errcodes] Error 1

but I don't recognize it.  If dropping --disable-shared doesn't help I
don't know.  Maybe some Mac OS X expert can help if you quote the above
error message.

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]