Menu

#33 --with-included-getopt does not work

open
5
2011-03-01
2007-01-23
Anonymous
No

... as if this option is set it will then not set
CONTRIBLIBS to the getopt library needed. It will
only be set if the getopt_long function is checked
for and the check failed.

Error symptoms:
make[4]: Entering directory `/tmp/src/netcat-0.7.1/lib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/tmp/src/netcat-0.7.1/lib'
make[3]: Leaving directory `/tmp/src/netcat-0.7.1/lib'
Making all in src
make[3]: Entering directory `/tmp/src/netcat-0.7.1/src'
gcc-sun59-64 -DLOCALEDIR=\"\/tmp/install/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/contrib -I/tmp/install/include -g -O2 -Wall -c `test -f 'core.c' || echo './'`core.c
core.c: In function ?core_udp_listen?:
core.c:207: warning: pointer targets in assignment differ in signedness
gcc-sun59-64 -DLOCALEDIR=\"\/tmp/install/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/contrib -I/tmp/install/include -g -O2 -Wall -c `test -f 'flagset.c' || echo './'`flagset.c
gcc-sun59-64 -DLOCALEDIR=\"\/tmp/install/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/contrib -I/tmp/install/include -g -O2 -Wall -c `test -f 'misc.c' || echo './'`misc.c
gcc-sun59-64 -DLOCALEDIR=\"\/tmp/install/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/contrib -I/tmp/install/include -g -O2 -Wall -c `test -f 'netcat.c' || echo './'`netcat.c
netcat.c: In function ?ncexec?:
netcat.c:127: warning: missing sentinel in function call
gcc-sun59-64 -DLOCALEDIR=\"\/tmp/install/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/contrib -I/tmp/install/include -g -O2 -Wall -c `test -f 'network.c' || echo './'`network.c
gcc-sun59-64 -DLOCALEDIR=\"\/tmp/install/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/contrib -I/tmp/install/include -g -O2 -Wall -c `test -f 'telnet.c' || echo './'`telnet.c
gcc-sun59-64 -DLOCALEDIR=\"\/tmp/install/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/contrib -I/tmp/install/include -g -O2 -Wall -c `test -f 'udphelper.c' || echo './'`udphelper.c
gcc-sun59-64 -g -O2 -Wall -L/tmp/install/lib64 -L/tmp/install/lib -o netcat core.o flagset.o misc.o netcat.o network.o telnet.o udphelper.o /tmp/install/lib64/libintl.so /tmp/install/lib64/libiconv.so -lc -lsocket -lnsl
Undefined first referenced
symbol in file
getopt_long netcat.o
ld: fatal: Symbol referencing errors. No output written to netcat
collect2: ld returned 1 exit status
make[3]: *** [netcat] Error 1
make[3]: Leaving directory `/tmp/src/netcat-0.7.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/src/netcat-0.7.1'

Discussion

  • Giovanni Giacobbi

    • assigned_to: nobody --> themnemonic
     
  • Giovanni Giacobbi

    Greetings, I cannot reproduce this problem, can you tell me more about your environment? gcc version, sun version, etc.?

     

Log in to post a comment.