john o goyo<address@hidden> writes:
Greetings:
The latest tarball (20180130) builds fine until it reaches
gm2/boot-bin/mc. LDFLAGS are not passed down to the gm2 build.
/home/build/gcc/5.2.0/bin/gcc -g -o gm2/boot-bin/mc \
[...]
gm2/mc-boot-ch/Gerrno.o gm2/mc-boot/main.o mcflex.o -lm -lpth
Undefined first referenced
symbol in file
[...]
recvfrom /usr/local/lib/libpth.so
ld: fatal: symbol referencing errors. No output written to gm2/boot-bin/mc
Here LDFLAGS="-lnsl -lsocket -lpthread". It appears in the gcc
Makefile but the options do not appear in gm2.
Please advise.
Sincerely,
john
Hi John,
many thanks for the bug report - I've added LDFLAGS to the mc link on
the: gm2+gcc-5.4.0 branch, gm2+gcc-6.4.0 branch and gm2+gcc-svn-trunc
branch. Are you able to build gcc-5.4.0 rather than gcc-5.2.0 ?
(or gcc-6.4.0 ?). I've built and run the regression tests on gcc-5.4.0
with this change - and all is ok on a GNU/Linux x86_64 system.