You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Dan Hollis <go...@anime.net> on 2005/03/16 22:33:21 UTC

spamassassin build failure on x86_64

I'm getting errors building the rpm on x86_64:

Manifying blib/man3/Mail::SpamAssassin::Bayes.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 `/usr/src/redhat/BUILD/Mail-SpamAssassin-3.0.2'
gcc -Wl,-E -Wl,-rpath,/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE spamc/libspamc.c spamc/utils.c \
        -o spamc/libspamc.so -shared -ldl 
/usr/bin/ld: /tmp/cc40AdRE.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/tmp/cc40AdRE.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [spamc/libspamc.so] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/Mail-SpamAssassin-3.0.2'
make: *** [spamc/libspamc.so] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.41963 (%build)

-Dan


Re: spamassassin build failure on x86_64

Posted by Theo Van Dinter <fe...@kluge.net>.
On Fri, Mar 18, 2005 at 01:09:30PM -0800, Dan Hollis wrote:
> It looks like fedora's spamassassin 3.0.2 rpm builds properly on x86_64 
> without errors, maybe someone can look at their rpm and see what's 
> different?

Yeah, they basically took the libspamc.so build out, which is the same as my
patch.  I don't know if anyone's using libspamc.so (we don't need it for
spamc, it's statically linked in,) so that may just be a valid solution.

-- 
Randomly Generated Tagline:
"I had a linguistics professor who said that it's man's ability to use 
 language that makes him the dominant species on the planet.  That may be. 
 But I think there's one other thing that separates us from animals.  We 
 aren't afraid of vacuum cleaners."         - Jeff Stilson

Re: spamassassin build failure on x86_64

Posted by Dan Hollis <go...@anime.net>.
On Wed, 16 Mar 2005, Theo Van Dinter wrote:
> On Wed, Mar 16, 2005 at 01:33:21PM -0800, Dan Hollis wrote:
> > I'm getting errors building the rpm on x86_64:
> Yeah, we haven't quite worked that out yet.  Things are being linked against
> things they shouldn't be. :(
> For the time being, you can apply the patch attached to bug 4090:
> http://bugzilla.spamassassin.org/show_bug.cgi?id=4090
> It disables the build of libspamc.so, which shouldn't be an issue for most
> people.

It looks like fedora's spamassassin 3.0.2 rpm builds properly on x86_64 
without errors, maybe someone can look at their rpm and see what's 
different?

http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/spamassassin-3.0.2-2.src.rpm

-Dan


Re: spamassassin build failure on x86_64

Posted by Theo Van Dinter <fe...@kluge.net>.
On Wed, Mar 16, 2005 at 01:33:21PM -0800, Dan Hollis wrote:
> I'm getting errors building the rpm on x86_64:

Yeah, we haven't quite worked that out yet.  Things are being linked against
things they shouldn't be. :(

For the time being, you can apply the patch attached to bug 4090:
http://bugzilla.spamassassin.org/show_bug.cgi?id=4090

It disables the build of libspamc.so, which shouldn't be an issue for most
people.

-- 
Randomly Generated Tagline:
 Michelle: You expect me to live in a tiny little hole?
  Fry: It'd be deeper, but I'm standing on a gopher.