Error building 64-bit on FC2

2006-01-15 Thread Thomas Cameron
All -

I am running Fedora Core 2 on an AMD Athlon(tm) 64 Processor 3000+.  It
is up to date with the latest packages available.

I grabbed the latest SA tarball from a mirror, and ran rpmbuild -ta
against it.  It fails with this:

Manifying blib/man3/Mail::SpamAssassin::DnsResolver.3pm
Manifying blib/man3/Mail::SpamAssassin::SubProcBackChannel.3pm
Manifying blib/man3/Mail::SpamAssassin::Plugin::RelayCountry.3pm
+ /usr/bin/make spamc/libspamc.so
/usr/bin/make -f spamc/Makefile spamc/libspamc.so
make[1]: Entering directory `/home/thomas.cameron/redhat/BUILD/Mail-
SpamAssassin-3.1.0'
gcc -rdynamic -Wl,-rpath,/usr/lib64/perl5/5.8.3/x86_64-linux-thread-
multi/CORE spamc/libspamc.c spamc/utils.c \
-o spamc/libspamc.so -shared -ldl
/usr/bin/ld: /tmp/cc2TpgXy.o: relocation R_X86_64_32S can not be used
when making a shared object; recompile with -fPIC
/tmp/cc2TpgXy.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [spamc/libspamc.so] Error 1
make[1]: Leaving directory `/home/thomas.cameron/redhat/BUILD/Mail-
SpamAssassin-3.1.0'
make: *** [spamc/libspamc.so] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.97589 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.97589 (%build)

Odd thing is, if I just grab the tarball and run

perl Makefile.PL  /dev/null  make  make install DESTDIR=/var/tmp/sa

it installs just fine to /var/tmp/sa

Thoughts?

Thomas



Re: Error building 64-bit on FC2

2006-01-15 Thread Theo Van Dinter
On Mon, Jan 16, 2006 at 12:07:25AM -0600, Thomas Cameron wrote:
 Odd thing is, if I just grab the tarball and run
 
 perl Makefile.PL  /dev/null  make  make install DESTDIR=/var/tmp/sa
 
 it installs just fine to /var/tmp/sa
 
 Thoughts?

Yeah, the spec file does 1 thing that the normal install doesn't,
which has the error, namely build libspamc.so.  You can grab
http://www.kluge.net/~felicity/random/spec.patch and apply it to the
tarball version, then build the RPM.

-- 
Randomly Generated Tagline:
Fatbot: I heard that in one single night you drank a whole keg, streaked across
 campus, and crammed fifty-eight humans into a phone booth.
 Bender: Yeah, well, a lot of 'em were children


pgpR7z41src8t.pgp
Description: PGP signature