Skip to content

powerpc: netperf2.7 make fails with gcc 11 #70

@abdhaleegit

Description

@abdhaleegit

netperf failing to compile on my powerpc box which has gcc version 11

gcc -DHAVE_CONFIG_H -I. -I..      -MT nettest_omni.o -MD -MP -MF .deps/nettest_omni.Tpo -c -o nettest_omni.o nettest_omni.c
nettest_omni.c: In function ‘recv_data_no_copy’:
nettest_omni.c:3030:19: warning: implicit declaration of function ‘splice’ [-Wimplicit-function-declaration]
 3030 |     bytes_recvd = splice(data_socket,
      |                   ^~~~~~
mv -f .deps/nettest_omni.Tpo .deps/nettest_omni.Po
gcc -DHAVE_CONFIG_H -I. -I..      -MT net_uuid.o -MD -MP -MF .deps/net_uuid.Tpo -c -o net_uuid.o net_uuid.c
net_uuid.c: In function ‘get_random_info’:
net_uuid.c:158:5: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
  158 |     read(fd, seed, 16);
      |     ^~~~
      |     fread
net_uuid.c:159:5: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
  159 |     close(fd);
      |     ^~~~~
      |     pclose
mv -f .deps/net_uuid.Tpo .deps/net_uuid.Po
gcc -DHAVE_CONFIG_H -I. -I..      -MT dscp.o -MD -MP -MF .deps/dscp.Tpo -c -o dscp.o dscp.c
mv -f .deps/dscp.Tpo .deps/dscp.Po
gcc -DHAVE_CONFIG_H -I. -I..      -MT netcpu_none.o -MD -MP -MF .deps/netcpu_none.Tpo -c -o netcpu_none.o netcpu_none.c
mv -f .deps/netcpu_none.Tpo .deps/netcpu_none.Po
gcc     -o netperf netperf.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o nettest_omni.o net_uuid.o dscp.o netcpu_none.o  -lm 
/usr/bin/ld: nettest_omni.o:(.bss+0x200): multiple definition of `loc_nodelay'; nettest_bsd.o:(.bss+0x28): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x204): multiple definition of `rem_nodelay'; nettest_bsd.o:(.bss+0x2c): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x208): multiple definition of `loc_sndavoid'; nettest_bsd.o:(.bss+0x38): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x20c): multiple definition of `loc_rcvavoid'; nettest_bsd.o:(.bss+0x3c): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x210): multiple definition of `rem_sndavoid'; nettest_bsd.o:(.bss+0x40): first defined here
/usr/bin/ld: nettest_omni.o:(.bss+0x214): multiple definition of `rem_rcvavoid'; nettest_bsd.o:(.bss+0x44): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:305: netperf] Error 1
make[3]: Leaving directory '/root/netperf-netperf-2.7.0/src'
make[2]: *** [Makefile:352: all-recursive] Error 1
make[2]: Leaving directory '/root/netperf-netperf-2.7.0/src'
make[1]: *** [Makefile:277: all-recursive] Error 1
make[1]: Leaving directory '/root/netperf-netperf-2.7.0'
make: *** [Makefile:215: all] Error 2

netperffulllogs.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions