#74 latest stable src.rpm won't build on RHEL3

closed-fixed
nobody
None
5
2004-02-01
2004-01-31
Ronald Cole
No

The last two stable releases, 0.15.13-1 and 0.16.4-1,
won't build on Red Hat Enterprise Linux 3. It fails
trying to build the static bogofilter with a "cannot
find -ldb" error.

The name of the static library is -ldb-4.1, but even if
that library is specified, there are still link errors
regarding getpwnam() and getpwuid() and various other
things only found in the shared glibc.

I'd hate to think that the last version of bogofilter
that I can build and use is 0.15.7-1! Can this be
looked at and fixed? Thanks!

Discussion

  • Matthias Andree

    Matthias Andree - 2004-02-01

    Logged In: YES
    user_id=2788

    You usually do not need to build a static version, it is
    only provided to users who want to avoid the library hassle
    and to avoid compiling themselves.

    If you're somewhat acquainted with RPM, use rpmbuild -ts to
    build a source RPM, install it, then find and eliminate the
    --enable-static stuff from the .spec file and do rpmbuild
    -ba bogofilter.spec and see if that helps.

    Do you have the same problems when compiling the source
    tarball? If so, please attach a gzipped config.log and the
    rpm -ql output of your BerkeleyDB rpms (whatever their
    names, I don't know), or make a gzipped copy of config.log
    available via FTP/HTTP/rsync and post the URL to the
    bogofilter-dev mailing list (if you're subscribed) or as a
    comment here (if you aren't subscribed).

     
  • Ronald Cole

    Ronald Cole - 2004-02-01

    gzipped RHEL3 config.log

     
  • Ronald Cole

    Ronald Cole - 2004-02-01

    gzipped output of "rpm -ql db4-devel"

     
  • Ronald Cole

    Ronald Cole - 2004-02-01

    Logged In: YES
    user_id=95743

    Then building the static version should properly be a spec
    file option. I'll see if I can cruft up a patch.

    That said, yes, building the static bogofiler from the
    source tar ball generates the same error. And adding a
    libdb.a -> libdb-4.1.a symlink generates the attached errors.

     
  • Ronald Cole

    Ronald Cole - 2004-02-01

    the output of "rpmbuild --rebuild bogofilter-0.16.4-1.src.rpm"

     
  • Ronald Cole

    Ronald Cole - 2004-02-01

    errors from compiling against -ldb-4.1

     
  • Ronald Cole

    Ronald Cole - 2004-02-01

    patch for bogofilter.spec

     
  • Ronald Cole

    Ronald Cole - 2004-02-01

    Logged In: YES
    user_id=95743

    With the attached patch, I was able to rebuild the src.rpm
    without problem with the following command:

    # rpmbuild --rebuild --without static
    bogofilter-0.16.4-2.src.rpm

     
  • Matthias Andree

    Matthias Andree - 2004-02-01
    • status: open --> closed-fixed
     
  • Matthias Andree

    Matthias Andree - 2004-02-01

    Logged In: YES
    user_id=2788

    Unfortunately, this doesn't seem to work right for
    RPM 3 which is still in use by some distros (SuSE 8.2), it
    doesn't allow --with or --without.

    I am committing a slightly modified version to CVS (we need
    to patch bogofilter.spec.in rather than bogofilter.spec), it
    shall build only the shared binaries, you can then enable
    the static build by adding
    --define 'bogostatic 1'
    to the rpm or rpmbuild command line. I checked this on RPM
    3.0.6 (8.2) and RPM 4.1.1 (SuSE 9.0). Mind the single quotes.

    CVS: The change appears in bogofilter.spec.in rev. 1.64.

    Thanks for your problem report and your help!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks