gnunet-developers
[Top][All Lists]
Advanced

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

Re: [GNUnet-developers] How to avoid linking against -ldl ?


From: Christian Grothoff
Subject: Re: [GNUnet-developers] How to avoid linking against -ldl ?
Date: Mon, 1 Jan 2007 18:13:20 -0700
User-agent: KMail/1.9.5

I don't have any good ideas -- looks like a problem with the libtool dlopen 
autoconf macros to me.  Anyway, I've attached a potential hack which may just 
work (also in SVN, together with fixes to some of the warnings).

Christian

On Monday 01 January 2007 12:00, sheda wrote:
> Hi,
>
> I'm trying to build GNUnet r4080 on OpenBSD 3.9. On this system, -ldl
> doesn't exists, dlopen is defined in -lc. How can I modify GNUnet's
> sources to avoid linking against -ldl when the host OS is OpenBSD ?
>
> Here is the output of the last commands run by make :
>
> /bin/sh ../../libtool --tag=CC --mode=link gcc  -fno-strict-aliasing
> -Wall -g -O2  -L/usr/local/lib -L/home/sheda/lib -o gnunetd  gnunetd.o
> ../../src/server/libgnunetcore.la
> ../../src/util/boot/libgnunetutil_boot.la  -lm -lpthread
> gcc -fno-strict-aliasing -Wall -g -O2 -o .libs/gnunetd gnunetd.o
> -L/home/sheda/tmp/GNUnet/src/util/cron/.libs
> -L/home/sheda/tmp/GNUnet/src/util/crypto/.libs
> -L/home/sheda/tmp/GNUnet/src/util/loggers/.libs
> -L/home/sheda/tmp/GNUnet/src/util/config_impl/.libs
> -L/home/sheda/tmp/GNUnet/src/util/.libs -L/usr/local/lib
> -L/home/sheda/lib -L../../src/server/.libs -lgnunetcore
> -lgnunetutil_cron -lgnunetutil_crypto -L../../src/util/boot/.libs
> -lgnunetutil_boot -lgnunetutil_logging -lgnunetutil_config -lgnunetutil
> -ldl -lgmp -lgpg-error -liconv -lintl -lgcrypt -lltdl -lm -lpthread
> -Wl,-rpath,/home/sheda/lib -Wl,-rpath,/usr/local/lib
> /usr/bin/ld: cannot find -ldl
> collect2: ld returned 1 exit status
> gmake[3]: *** [gnunetd] Error 1
> gmake[3]: Leaving directory `/home/sheda/tmp/GNUnet/src/server'
>
> Attached is a complete typescript of the build failure.
>
> Any idea ?
>
> thx,
>
> sheda.

Attachment: bsd_hack.diff
Description: Text Data


reply via email to

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