bootchk / resynthesizer

Suite of gimp plugins for texture synthesis
GNU General Public License v3.0
1.47k stars 163 forks source link

fails to build, missing math library #4

Closed bootchk closed 12 years ago

bootchk commented 12 years ago

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?