bootchk/resynthesizer — Issue #4: fails to build, missing math library
Author: bootchk
Created: 2011-12-15 14:19:41+00:00
State: open

Enrico Ottavi reports:

/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld:
resynthesizer.o: undefined reference to symbol 'atan2@@GLIBC_2.2.5'
/usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld:
note: 'atan2@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it
to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Apparently a change to linking loader (ld) on some platforms:.
See:http: //fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking

Apparently, in your Makefile.am you need to explicitly specify all libraries used, since the ld will no longer find symbols through other libraries.

Resynthesizer used atan2() from libm. Possibly should used atan2 from a gimp math library?