[opensuse-packaging] Help with linker error.

The project maitreya now gets an error for only one distro mandriva 2010.1: https://build.opensuse.org/package/live_build_log?arch=i586&package=rpm&... ---------------------------------- i586-mandriva-linux-gnu-g++ -O2 -g -pipe -Wformat -Werror=format-security - Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit- frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,-- as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build- id/usr/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libxml2.so /usr/lib/libdl.so /usr/lib/libz.so /usr/lib/libm.so - o maitreya_textclient textclient.o libjyotish.a ../base/libmaitreya_base.a ../swe/libswe.a -pthread -Wl,--as- needed -Wl,-z,relro -Wl,-O1 -lwx_gtk2_richtext-2.8 -lwx_gtk2_aui-2.8 - lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 - lwx_gtk2_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8 /usr/bin/ld: unrecognized option '--build-id/usr/lib/libfontconfig.so' /usr/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status make[4]: *** [maitreya_textclient] Error 1 make[4]: Leaving directory `/home/abuild/rpmbuild/BUILD/maitreya-6.0.2/src/jyotish' ------------------------------------------------------ Any idea what this error means? Thank You. -- Paul Elliott 1(512)837-1096 pelliott@BlackPatchPanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117

Hi, On Fri, Feb 25, 2011 at 12:15:20AM -0600, Paul Elliott wrote:
The project maitreya now gets an error for only one distro mandriva 2010.1: https://build.opensuse.org/package/live_build_log?arch=i586&package=rpm&...
i586-mandriva-linux-gnu-g++ -O2 -g -pipe -Wformat -Werror=format-security - Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit- frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,-- as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build- id/usr/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libxml2.so /usr/lib/libdl.so /usr/lib/libz.so /usr/lib/libm.so - o maitreya_textclient textclient.o libjyotish.a ../base/libmaitreya_base.a ../swe/libswe.a -pthread -Wl,--as- needed -Wl,-z,relro -Wl,-O1 -lwx_gtk2_richtext-2.8 -lwx_gtk2_aui-2.8 - lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 - lwx_gtk2_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8 /usr/bin/ld: unrecognized option '--build-id/usr/lib/libfontconfig.so' /usr/bin/ld: use the --help option for usage information collect2: ld returned 1 exit status make[4]: *** [maitreya_textclient] Error 1 make[4]: Leaving directory `/home/abuild/rpmbuild/BUILD/maitreya-6.0.2/src/jyotish'
Any idea what this error means?
I had something similar last weekend. I think one of the macros is putting in some option that doesn't work with configure or make and they forward it to gcc. Try to use these commands without macros: %configure make %{?_smp_mflags} -- Bye, Stephan Barth Novell Technical Services, Worldwide Support Services Linux SUSE LINUX GmbH, GF: Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409 Nuremberg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Paul Elliott
-
Stephan Barth