On Thu, Jun 14, 2007 at 04:47:36PM +0200, Dirk Stoecker wrote:
Hi,
I do not have a x86_64 system to build locally and following two packages don't build:
http://build.opensuse.org/package/live_build_log?package=GMT&arch=x86_64&repository=Fedora_Extras_5&project=home%3Adstoecker and http://build.opensuse.org/package/live_build_log?package=GMT&arch=x86_64&repository=Fedora_Extras_6&project=home%3Adstoecker
Both fail with: gcc -fPIC -L/usr/lib/netcdf-3 -I/usr/include/netcdf-3 -O3 -s -I/usr/local/netcdf/include -DGMT_SHARE_PATH=\"/opt/gmt/share\" blockmean.o -L. -lgmt -L/usr/local/netcdf/lib -lnetcdf -lm -s -Wl,-rpath,/opt/gmt/lib64:/usr/local/netcdf/lib -o blockmean /usr/bin/ld: cannot find -lnetcdf collect2: ld returned 1 exit status
The netcdf package is installed and the same build works for i586 and also for x86_64 for suse and Fedora 7.
What can I do to find the reason?
libnetcdf is in /usr/lib64, not /usr/lib. You need to change CFLAGS to -L%{_libdir}/netcdf-3 Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org