Hello, Rainer Tammer wrote: > | on AIX 6.1 two objects are missing from the libm4.a. > | > | ... > | Making all in src > | gmake[2]: Entering directory > | `/opt/freeware/src/packages/BUILD/m4-1.4.11/src' > | gcc -std=gnu99 -g -O2 -o m4 m4.o builtin.o debug.o eval.o format.o > | freeze.o input.o macro.o output.o path.o symtab.o stackovf.o > | ../lib/libm4.a -lm > | ld: 0711-317 ERROR: Undefined symbol: .gl_signbitd > | ld: 0711-317 ERROR: Undefined symbol: .gl_signbitl > | ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more > | information. > | collect2: ld returned 8 exit status > | gmake[2]: *** [m4] Error 1 > | gmake[2]: Leaving directory > | `/opt/freeware/src/packages/BUILD/m4-1.4.11/src' > | gmake[1]: *** [all-recursive] Error 1 > | gmake[1]: Leaving directory `/opt/freeware/src/packages/BUILD/m4-1.4.11' > | gmake: *** [all] Error 2 > | > | If I add signbitd.o and signbitl.o to M4_LIBOBJS (in src/Makefile) then > | the link is successful. > | With this "fix" all tests from make check are successful.
It is not clear to me where the problem comes from. Could you please provide a few more bits of info, to track this down? 1) Does the problem also occur if you build m4-1.4.11 after freshly unpacking the tarball in an otherwise empty directory? ('cause the report could be related to a mix of builds done on different systems.) 2) What is the output of grep REPLACE_SIGNBIT config.status and of grep RANLIB config.status 3) Can you show the lines 401..453 of the generated lib/math.h? 4) What is the output of nm lib/libm4.a | grep -i signbit 5) Does the link error go away if you change the src/Makefile line m4_LDADD = ../lib/libm4.a $(LIBM4_LIBDEPS) $(POW_LIB) to m4_LDADD = ../lib/libm4.a ../lib/libm4.a $(LIBM4_LIBDEPS) $(POW_LIB) ? Bruno