Re: [SPARC64] libpng-1.2.8-1.fc3.src.rpm
"Tom 'spot' Callaway" <[email protected]> Tue, 16 May 2006 13:48:42 -0500
| Newsgroups | gmane.linux.aurora.devel |
|---|---|
| Organization | Red Hat |
| Message-ID | <[email protected]> |
On Tue, 2006-05-16 at 12:43 +0200, Christian Joensson wrote: > [Maybe a bit off topic here, let me know if I should drop this(these?) > thread(threads), for now, I hope you can accept the information herein > as memory support for me and others interested until the foot is set > down on what the Aurora project wants with sparc64 variants...] > > When I try to rpmbuild libpng-1.2.8-1.fc3.src.rpm like this: > > rpmbuild --rebuild libpng-1.2.8-1.fc3.src.rpm --target=sparc64 > > I get an error like this: > > gcc -shared -Wl,-soname,libpng12.so.0 -lz -lm \ > -o libpng12.so.0.1.2.8 \ > png.pic.o pngset.pic.o pngget.pic.o pngrutil.pic.o pngtrans.pic.o pngwutil.pic.o > pngread.pic.o pngrio.pic.o pngwio.pic.o pngwrite.pic.o pngrtran.pic.o pngwtran. > pic.o pngmem.pic.o pngerror.pic.o pngpread.pic.o > /usr/bin/ld: warning: sparc:v9 architecture of input file `png.pic.o' is incompa > tible with sparc output > > if I simply add -m64 above, it works... > > gcc -m64 -shared -Wl,-soname,libpng12.so.0 -lz -lm -o > libpng12.so.0.1.2.8 png.pic.o pngset.pic.o pngget.pic.o pngrutil.pic.o > pngtrans.pic.o pngwutil.pic.o pngread.pic.o pngrio.pic.o pngwio.pic.o > pngwrite.pic.o pngrtran.pic.o pngwtran.pic.o pngmem.pic.o > pngerror.pic.o pngpread.pic.o > > Now, how should we proceed? > > This is perhaps a simple error in my rpm build setup or my system environment... Neither. Its a bug in how libpng handles CFLAGS. It ignores CFLAGS for the link call. Several packages have this issue. ~spot -- Tom "spot" Callaway: Red Hat Senior Sales Engineer || GPG ID: 93054260 Fedora Extras Steering Committee Member (RPM Standards and Practices) Aurora Linux Project Leader: http://auroralinux.org Lemurs, llamas, and sparcs, oh my! _______________________________________________ Aurora-sparc-devel mailing list [email protected] http://lists.auroralinux.org/mailman/listinfo/aurora-sparc-devel Aurora FAQ: http://www.ecs.soton.ac.uk/~mas01r/aurorafaq.html