pkgsrc-Users archive

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

Re: problems building security/dsniff-nox11

On 26/4/09 11:36, Jukka Salmi wrote:
> Jeremy C. Reed --> pkgsrc-users (2009-04-25 07:09:28 -0500):
>>> building security/dsniff-nox11 from HEAD pkgsrc on a current NetBSD/i386
>>> system fails as follows:
>>> [...]
>>> cc -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/libnet10 
>>> -Wl,-R/usr/pkg/lib/libnet10 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o dsniff 
>>> asn1.o base64.o buf.o hex.o magic.o mount.o pcaputil.o rpc.o tcp_raw.o 
>>> trigger.o record.o dsniff.o decode.o decode_aim.o decode_citrix.o 
>>> decode_cvs.o decode_ftp.o decode_hex.o decode_http.o decode_icq.o 
>>> decode_imap.o decode_irc.o decode_ldap.o decode_mmxp.o decode_mountd.o 
>>> decode_napster.o decode_nntp.o decode_oracle.o decode_ospf.o 
>>> decode_pcanywhere.o decode_pop.o decode_portmap.o decode_postgresql.o 
>>> decode_pptp.o decode_rip.o decode_rlogin.o decode_smb.o decode_smtp.o 
>>> decode_sniffer.o decode_snmp.o decode_socks.o decode_tds.o decode_telnet.o 
>>> decode_vrrp.o decode_yp.o decode_x11.o -lresolv -lrpcsvc  -L. -lmissing 
>>> -L/usr/pkg/lib -lnids -L/usr/pkg/lib -lpcap -L/usr/pkg/lib/libnet10 -lnet  
>>> -lssl -lcrypto
>>> /b/build/pkg/c/security/dsniff-nox11/work/.buildlink/lib/libnids.a(libnids.o):
>>>  In function `nids_dispatch':
>>> /b/build/pkg/c/net/libnids/work/libnids-1.23/src/libnids.c:765: undefined 
>>> reference to `g_async_queue_push'
>> Seems like that should be linking with libglib-2
>> Maybe net/libnids/ should include 
>> .include "../../devel/glib2/"
>> ?
> I tried this, but it doesn't seem to help.
> But including the glib2 buildlink file from the libnids buildlink file
> _and_ explicitly linking dsniff(8) and the various *snarf(8) tools built
> from security/dsniff-nox11 against libglib-2.0 and libgthread-2.0 does
> help.
> But this is probably not the correct fix and I should file a PR...
> Regards, Jukka

I've just committed a set of changes for this:
- set dsniff to MAKE_JOBS_SAFE=no
- add a 'glib' option to libnids

I've built libnids with PKG_OPTIONS.libnids= libnet10 -glib and then
dsniff should build OK.  I realise this does not fix the problem but at
least it makes dsniff-no11 buildable again.


Home | Main Index | Thread Index | Old Index