ikshwak / iperf

Automatically exported from code.google.com/p/iperf
Other
0 stars 0 forks source link

Solaris Build Fails #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
make[2]: Entering directory `/home/build/inovick/iperf-3.0b4/src'
gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT iperf_api.o -MD -MP -MF 
.deps/iperf_api.Tpo -c -o iperf_api.o iperf_api.c
iperf_api.c:17:23: error: sys/queue.h: No such file or directory
In file included from iperf_api.c:32:

Original issue reported on code.google.com by novickivan@gmail.com on 8 Sep 2010 at 6:22

GoogleCodeExporter commented 9 years ago
Should be fixed in r299 but I'm awaiting confirmation

Original comment by jdugan.e...@gmail.com on 8 Sep 2010 at 10:12

GoogleCodeExporter commented 9 years ago
there were a couple more compile issues:

tcp_info.c still references sys/queue.h

net.c and timer.c needed to #include <errno.h>

Original comment by novickivan@gmail.com on 9 Sep 2010 at 12:23

GoogleCodeExporter commented 9 years ago
The compile works with those changes but the link is not working:

Sep 08 17:23 build@build0 > make
Making all in src
make[1]: Entering directory `/home/build/inovick/iperf3/src'
make  all-am
make[2]: Entering directory `/home/build/inovick/iperf3/src'
/bin/bash ../libtool --tag=CC   --mode=link gcc -g -Wall -g -O2 -luuid  -o 
iperf3 iperf3-main.o libiperf.a -luuid 
libtool: link: gcc -g -Wall -g -O2 -o iperf3 iperf3-main.o  libiperf.a -luuid
Undefined                       first referenced
 symbol                             in file
bind                                libiperf.a(iperf_tcp.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
nanosleep                           libiperf.a(timer.o)
getsockname                         libiperf.a(iperf_api.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
accept                              libiperf.a(iperf_server_api.o)  (symbol 
belongs to implicit dependency /lib/amd64/libsocket.so.1)
listen                              libiperf.a(iperf_tcp.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
socket                              libiperf.a(iperf_tcp.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
setsockopt                          libiperf.a(iperf_api.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
getsockopt                          libiperf.a(iperf_api.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
connect                             libiperf.a(iperf_tcp.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
getaddrinfo                         libiperf.a(iperf_tcp.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
hstrerror                           libiperf.a(iperf_error.o)
getpeername                         libiperf.a(iperf_api.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
recvfrom                            libiperf.a(iperf_udp.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
freeaddrinfo                        libiperf.a(iperf_tcp.o)  (symbol belongs to 
implicit dependency /lib/amd64/libsocket.so.1)
inet_ntop                           libiperf.a(iperf_api.o)  (symbol belongs to 
implicit dependency /lib/amd64/libnsl.so.1)
h_errno                             libiperf.a(iperf_error.o)  (symbol belongs 
to implicit dependency /lib/amd64/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to iperf3
collect2: ld returned 1 exit status
make[2]: *** [iperf3] Error 1
make[2]: Leaving directory `/home/build/inovick/iperf3/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/build/inovick/iperf3/src'
make: *** [all-recursive] Error 1

Original comment by novickivan@gmail.com on 9 Sep 2010 at 12:24

GoogleCodeExporter commented 9 years ago
Hi Jon,

It needs -lsocket -lnsl -lrt -lresolv on Solaris

Not sure how to change the auto conf stuff to do that.

If you can commit a new version with the compile and link fixes I can try it on 
Solaris?

Thanks!

Ivan

Original comment by novickivan@gmail.com on 9 Sep 2010 at 12:31

GoogleCodeExporter commented 9 years ago
Hi Ivan,

This should be fixed as of r300 which I committed moments ago.  Can you please 
test and let me know?

Thanks!

Jon

Original comment by jdugan.e...@gmail.com on 20 Sep 2010 at 9:51