Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#48 static (RPM) build fails on aix

closed-fixed
nobody
None
5
2004-02-01
2003-06-10
Elrond
No

Hi again,

On aix, libdb can't be linked statically (don't ask
why).

(If you want to reproduce this on linux, try removing
/usr/lib/libdb.a.)

This thing has two issues:

1) configure should IMHO check for -static after having
found all libraries, so it can check, that the
libraries can be linked statically as well.

2) The rpm build likely crashes (don't know yet) since
it expects statically linked binaries to exist around
the place.
For this one I have no good hints on how to fix it. One
could surround the static parts in the .spec by some
%if do_static or the like, but since I don't know
enough about rpm, I have no idea, on how practicable
that is.

For the fun of it, I have appended my HACK to the spec
to get it working on aix. It builds a fake -static.rpm.

Elrond

Discussion

  • Elrond
    Elrond
    2003-06-10

    HACK to get rpm build work on my box

     
  • Elrond
    Elrond
    2003-06-10

    • summary: static (RPM) fails on aix --> static (RPM) build fails on aix
     
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=2788

    Thanks to a recent report and suggestion (patch) by Ronald
    Cole, the CVS version of bogofilter (as of
    bogofilter.spec.in revision 1.64) no longer builds the
    static rpm unless requested with rpm --define 'bogostatic 1'
    -bb bogofilter.spec

    Please check if this works for you on AIX either with a
    CVS-checked out code (type: make dist bogofilter.spec to
    generate the tarball and spec file) or with the next
    bogofilter release.