pkgsrc-Bugs archive

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

pkg/42037: security/pakemon link errors (NetBSD 4.0 / i386) (thread related ?)

>Number:         42037
>Category:       pkg
>Synopsis:       security/pakemon link errors (NetBSD 4.0 / i386) (thread 
>related ?)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 10 12:05:00 +0000 2009
>Originator:     Robert Elz
>Release:        NetBSD 4.0 / i386   pkgsrc current (2009-09-09)
        Prince of Songkla University
System: NetBSD 4.0_STABLE NetBSD 4.0_STABLE 
(JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 i386
Architecture: i386
Machine: i386
        Building security/pakemon (pakemon-0.3.1nb4) fails with
        link time undefined symbols.

        These seem related to threading, and libnids - and may indicate
        a library reference that should exist, but doesn't.

        This uses a binary package for libnids (libnids-1.23) that was built
        in the same environment on Feb 27 2009 (it apparently has not
        been updated since then.)

        I use pkg_comp with libkver and NetBSD 4.0 release sets installed
        except the x* sets, I use pkgsrc modular xorg) to obtain a stable
        (and fully repeatable) build environment that is a good simulaton
        of a completely pure NetBSD 4.0 release system (i386).

        In that environment, building security/pakemon results in ...

cc  -O2 -I/usr/include -I/usr/pkg/include/libnet10 -I/usr/pkg/include -Wall  
-Wl,-R/usr/lib -L/usr/pkg/lib/libnet10 -Wl,-R/usr/pkg/lib/libnet10 
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib/libnet10 -L/usr/pkg/lib -o 
pakemon  pakemon.o util.o signature.o interface.o match.o  tcp.o udp.o icmp.o 
regex.o -L/usr/pkg/lib -lnids -L/usr/pkg/lib/libnet10 -lnet -lpcap 
In function `nids_dispatch':
libnids.c:(.text+0x98): undefined reference to `g_async_queue_push'
libnids.c:(.text+0xc2): undefined reference to `g_thread_create_full'
In function `cap_queue_process_thread':
libnids.c:(.text+0x189): undefined reference to `g_async_queue_pop'
libnids.c:(.text+0x19f): undefined reference to `g_thread_exit'
In function `nids_exit':
libnids.c:(.text+0x27a): undefined reference to `g_async_queue_length'
In function `nids_run':
libnids.c:(.text+0x316): undefined reference to `g_thread_create_full'
libnids.c:(.text+0x35b): undefined reference to `g_async_queue_push'
In function `nids_init':
libnids.c:(.text+0x546): undefined reference to `g_thread_init'
libnids.c:(.text+0x54b): undefined reference to `g_async_queue_new'
In function `nids_pcap_handler':
libnids.c:(.text+0x942): undefined reference to `g_async_queue_lock'
libnids.c:(.text+0x94e): undefined reference to `g_async_queue_length_unlocked'
libnids.c:(.text+0xa81): undefined reference to `g_async_queue_push_unlocked'
In function `nids_next':
libnids.c:(.text+0xb2e): undefined reference to `g_thread_create_full'
libnids.c:(.text+0xb77): undefined reference to `g_async_queue_push'
In function `nids_pcap_handler':
libnids.c:(.text+0x986): undefined reference to `g_async_queue_unlock'
*** Error code 1

make: stopped in /pkg_comp/obj/pkgsrc/security/pakemon/4x/pakemon-0.3.1
*** Error code 1

make: stopped in /usr/pkgsrc/security/pakemon
*** Error code 1


        Building the package had earlier installed the
        (6 month old) binary package for libnids (1.23)
        as ...

===> Installing dependencies for pakemon-0.3.1nb4
=> Build dependency libnids>=1.18: NOT found
=> Verifying bin-install for ../../net/libnids
===> Binary install for libnids>=1.18  
=> Installing libnids>=1.18 from /pkg_comp/packages/All
        [ a bunch of messages about the installation of fam-2.7.0nb9
          which is apparently a dependency of libnids omitted here]
libnids-1.23 successfully installed.
=> Returning to build of pakemon-0.3.1nb4

        pkg_info on the libnids-1.23.tgz (binary package) says ...


        no specific mention of any threading system required
        (maybe those functions are supposed to be in glib2 ?)

        The version of glib2 that would have been installed
        is glib2-2.20.5 (last compiled August 31).


        Note this PR is quite similar to pkg/41710 (security/dsniff)
        and the underlying cause is quite likely the same, whatever
        fixes one of these is likely to either immediately fix the
        other, or be able to be applied in the same way to the other.

Home | Main Index | Thread Index | Old Index