pbiering / ipv6calc

ipv6calc
https://www.deepspace6.net/projects/ipv6calc.html
Other
45 stars 15 forks source link

Build issue (link) with -fno-common #15

Closed dbaio closed 4 years ago

dbaio commented 4 years ago

Issue appeared on FreeBSD HEAD.

LLVM/Clang 11 and GCC 10 has switched to use -fno-common by default.

More info: Clang modified-compiler-flags GCC porting GCC changes

Build issue:

[...]
gmake[5]: Entering directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0/lib'
gmake[5]: 'libipv6calc.a' is up to date.
gmake[5]: Leaving directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0/lib'
gmake libipv6calc.so.2.2.0
gmake[5]: Entering directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0/lib'
ld: error: duplicate symbol: cache_lru_limit
>>> defined at ipv6logconv.h:24 (./ipv6logconv.h:24)
>>>            ipv6logconv.o:(cache_lru_limit)
>>> defined at ipv6logconv.h:24 (./ipv6logconv.h:24)
>>>            ipv6logconvhelp.o:(.bss+0x0)
echo "Nothing to do (shared libary mode is not enabled)"
Nothing to do (shared libary mode is not enabled)
gmake[5]: Leaving directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0/lib'
gmake[4]: Leaving directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0/lib'
gmake[3]: Leaving directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0'
cc -o ipv6calc ipv6calc.o showinfo.o ipv6calchelp_local.o  -L../lib/ -L../databases/lib/ -lipv6calc_db_wrapper -lipv6calc     -lm   -fstack-protector-strong  -lcrypto   -fstack-protector-strong  -lcrypto   -fstack-protector-strong 
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:51: ipv6logconv] Error 1
gmake[2]: Leaving directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0/ipv6logconv'
gmake[1]: *** [Makefile:106: ipv6logconv-make] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0/ipv6logstats'
gmake[2]: Leaving directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0/ipv6loganon'
gmake[2]: Leaving directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0/ipv6calc'
gmake[1]: Leaving directory '/wrkdirs/usr/ports/net-mgmt/ipv6calc/work/ipv6calc-2.2.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
pbiering commented 4 years ago

this is already fixed by 8c7eea58f2034113ae91ff7adc2bda72465b7d1a - release is pending