Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 make errors

open
nobody
None
5
2003-11-04
2003-11-04
Anonymous
No

trying to compile from source, and keep getting this.

make -C src all
make[1]: Entering directory `/usr/local/src/ipaud/ipaudit-
0.95/src'
cc -c ipaudit.c -I/usr/include/pcap
cc -c hash.c
cc -o ipaudit ipaudit.o hash.o -lpcap
ipaudit.o(.text+0x488): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x4fa): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x553): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x5b9): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x628): In function `main':
: undefined reference to `errno'
ipaudit.o(.text+0x693): more undefined references to
`errno' follow
collect2: ld returned 1 exit status
make[1]: *** [ipaudit] Error 1
make[1]: Leaving directory `/usr/local/src/ipaud/ipaudit-
0.95/src'
make: *** [all] Error 2

Discussion

  • Jeff Kell
    Jeff Kell
    2003-12-04

    Logged In: YES
    user_id=572905

    Same exact problem here -- Linux 9.0 current.
    Builds without a problem on Linux 8.0.
    Can't figure this one out!

     
  • Jeff Kell
    Jeff Kell
    2003-12-04

    Logged In: YES
    user_id=572905

    This can be fixed by adding #include <errno.h> to the proper
    source files (ipaudit.c and ipstrings.c). Cheers!