Need help! Link failed during compile 0.8a34 version

Hongjie Xin hxin at anr.mcnc.org
Tue Jul 22 14:19:21 PDT 2003


Appreciate. It works.

Meanwhile I searched something from google newsgroup.
It may explain the reason.

# nm /usr/lib/libresolv.a  | sed "s/[^ ]* //" |sort > a
# nm /usr/lib/libresolv.so | sed "s/[^ ]* //" |sort > so
# diff a so |grep __ns_initparse
  < T __ns_initparse
  > t __ns_initparse
  <         U __ns_initparse

 From 'info nm',   lowercase t means local, uppercase T means global

That's different among libresolv.a and libresolv.so.

No idea why glibc leaves such arrangement.


Hongjie

Robin Sommer wrote:
> On Tue, Jul 22, 2003 at 16:04 -0400, Hongjie Xin wrote:
> 
> 
>>I was trying to compile the package under redhat 9.0.
> 
> 
> Please try the attached patch. It works at least for Debian-based
> systems.
> 
> Robin
> 
> P.S.: If anyone happens to know enough about autoconf to include
> this into configure.ac, it would be a nice thing to add.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> /usr/bin/cvs diff -u Makefile.in
> Index: Makefile.in
> ===================================================================
> RCS file: /home/cvs/repository/bro/Makefile.in,v
> retrieving revision 1.48
> diff -u -u -r1.48 Makefile.in
> --- Makefile.in	18 Jul 2003 07:25:02 -0000	1.48
> +++ Makefile.in	22 Jul 2003 21:02:15 -0000
> @@ -49,7 +49,7 @@
>  LIBEDIT_LIBS = -Llibedit -ltermcap -ledit 
>  
>  LFLAGS = -s
> -LIBS = $(LIBEDIT_LIBS) @LIBS@ -lm
> +LIBS = $(LIBEDIT_LIBS) @LIBS@ -lm  /usr/lib/libresolv.a
>  
>  # Purify barfs when c++ is used for $(CPLUS).
>  PURIFY_CPLUS = g++


-- 
-----------------------------------
  Hongjie Xin                                   Ph#: (919)248-1409
  Network Research Engineer,                    FAX#:(919)248-1455
  Advanced Network Research Group, MCNC-RDI     hxin at anr.mcnc.org




More information about the Bro mailing list