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

Re: NS-allinone installation problem



On Tue, 07 Apr 1998 12:10:21 MDT, John Heidemann wrote: 
>On Mon, 06 Apr 1998 17:45:56 +0200, Mohamed VALL EL ALEM wrote: 
>>I tried to build NS allinone.
>>I have the following problem:
>>
>>../tclbox/lib/libtcl8.0.a(tclLoadDl.o): In function `TclLoadFile':
>>tclLoadDl.o(.text+0x19): undefined reference to `dlopen'
>>tclLoadDl.o(.text+0x29): undefined reference to `dlerror'
>>tclLoadDl.o(.text+0x4f): undefined reference to `dlsym'
>>tclLoadDl.o(.text+0x89): undefined reference to `dlsym'
>>tclLoadDl.o(.text+0xa3): undefined reference to `dlsym'
>>tclLoadDl.o(.text+0xdf): undefined reference to `dlsym'
>>make: *** [nam] Error 1
>>Nam make failed! Exiting ...
>
>This is an unfortunately common problem.
>I added to the FAQ
>(at <http://www-mash.cs.berkeley.edu/www/ns/ns-problems.html>):
>
>    *Problem*: Ns (or otcl or tclcl) gets link errors when building with
>    references to "dlopen" similar functions beginning with dl.
>    
>    *Work-around*: You need to manually add the library for dynamic
>    linking to ns's Makefile. Look in the Makefile for the line LIB= and
>    add your systems library for dynamic linking (typically -ldl).
>    
>    *Solution*: Unfortunately ns's autoconf support for dynamic linking
>    isn't currently very good, and we can't test ns on all the platforms
>    on which it's used. This configuration is done in
>    ~ns/conf/configure.in.dynamic. If you can adjust the code there to
>    correctly detect your system we'll be happy to add your patch to our
>    sources.
>
>(This also applies to nam.)  I hope this helps.

The work around is correct, but my solution (for nam) was hasty.
I looked at this a little closer and my original statement is
incorrect; it looks like nam's configure is slightly older than ns's.
It may be that re-autoconf'ing nam (updating it's configure) will fix
this problem.

   -John Heidemann