[Bug 891] New: Build failure on Slackware AMD 64bit with GLIBC 2.7

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Jan 30 19:21:22 CET 2014


           Summary: Build failure on Slackware AMD 64bit with GLIBC  2.7
           Product: ipset
           Version: unspecified
          Platform: x86_64
        OS/Version: other
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: default
        AssignedTo: netfilter-buglog at lists.netfilter.org
        ReportedBy: nick at linicks.net
   Estimated Hours: 0.0

Being new to ipset, I tried to build from latest source today, and got build

  CCLD     ipset
../lib/.libs/libipset.a(session.o): In function `rawdata2attr':
/home/nick/targz/ipset-6.20.1/lib/session.c:1495: undefined reference to
../lib/.libs/libipset.a(session.o): In function `attr2data':
/home/nick/targz/ipset-6.20.1/lib/session.c:618: undefined reference to
collect2: ld returned 1 exit status

Researching, it turns out I need GLIBC => 2.9 to supply this.

I eventually managed to build ipset (and all works great!) by adding:

#define be64toh(x) (x)
#define htobe64(x) (x)

to lib/sessions.c

Now, I dunno if this is the correct fix or not - or if it doesn't matter on a
non-portable binary, but why doesn't ./configure pick this up?


Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the netfilter-buglog mailing list