Subject: when should mk/dlopen.buildlink3.mk be used? and chat/gaim
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 08/13/2005 10:59:29
mk/dlopen.buildlink3.mk is not covered in the pkgsrc guide.

When should it be used?

chat/gaim fails to build "silc" support for me under Linux.

===> Required installed package silc-toolkit>=0.9.12nb1: 
silc-toolkit-0.9.13 found
...
checking for silc_client_init in -lsilcclient... no
...
Protocols to build dynamically : gg irc jabber msn napster novell oscar 
yahoo zephyr

config.log has:

configure:29135: checking for silc_client_init in -lsilcclient
configure:29165: cc -pipe -o conftest -g -s -I/usr/include 
-I/usr/include/nss -I/usr/include/nspr -I/usr/include/freetype2 
-I/usr/include -I/usr/include/nss -I/usr/include/nspr 
-I/usr/include/freetype2 -L/usr/gcc3/lib/gcc-lib/i386-pc-linux-gnu/3.3.5 
-Wl,-R/usr/gcc3/lib/gcc-lib/i386-pc-linux-gnu/3.3.5 -L/usr/gcc3/lib 
-Wl,-R/usr/gcc3/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib/nss 
-Wl,-R/usr/lib/nss -L/usr/lib/nspr -Wl,-R/usr/lib/nspr -L/usr/X11R6/lib 
-Wl,-R/usr/X11R6/lib conftest.c -lsilcclient -L/usr/lib/silc -lsilc 
-lsilcclient -lpthread -lnsl  >&5
/usr/lib/silc/libsilc.so: undefined reference to `dlerror'
/usr/lib/silc/libsilc.so: undefined reference to `dlclose'
/usr/lib/silc/libsilc.so: undefined reference to `dlopen'
/usr/lib/silc/libsilc.so: undefined reference to `dlsym'

It configures fine on NetBSD 2.0.2 though:

===> Required installed package silc-toolkit>=0.9.12: silc-toolkit-0.9.13 found
...
checking for silc_client_init in -lsilcclient... yes
...
Protocols to build dynamically : gg irc jabber msn napster novell oscar 
silc yahoo zephyr

If I remove the patch-ad, it configures fine on Linux. patch-ad removes 
the -ldl.




  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/