A parallel build (-j3 to make) of bogofilter-1.3.3 just got me these three lines among others:
i686-pc-linux-gnu-gcc -DBOGOFILTER ... -o bogofilter bogofilter.o main.o libbogofilter.a strlcpy.o strlcat.o /usr/lib/libdb.so libbf_gsl.a -lm
i686-pc-linux-gnu-ar cru libbf_gsl.a libbf_gsl_a-chisq.o ... libbf_gsl_a-minmax.o
i686-pc-linux-gnu-gcc: libbf_gsl.a: No such file or directory
So the archive is still being built when another process tries to link against it. Reason is probably that libbf_gsl.a is not mentioned in bogofilter_DEPENDENCIES. Adding this inside the NEED_GSL conditional part of Makefile.am might solve the problem, but I'm no autotools wizard, so I'm not sure.
I will also note my observation in this Gentoo bug:
http://bugs.gentoo.org/show_bug.cgi?id=112638
The bug report was started for 0.92.8, but the problem looks the same to me.
patch for src/Makefile.am
Logged In: YES
user_id=30510
Originator: NO
The patch, as suggested, causes a complaint of "+=" being used before bogofilter_DEPENDENCIES has been set. The attached patch puts the GSL test after setting bogofilter_DEPENDENCIES thus handling the complaint. However not having an SMP system I can't test the patch.
Note: just running "make" will regenerate src/Makefile from src/Makefile.am (without manually running autoconf).
Please let me know if the patch works!
File Added: patch.1205.Makefile.am.txt
Hi Martin,
could you confirm if David's solution fixes the build for you?
I've set this report to pending, i. e. it will be automatically closed in a fortnight, barring further input.
Thank you.
Best regards
Matthias
Haven't encountered build issues with bogofilter for some time now, so I take it that r6607 did fix the issue.
Feel free to close, and thanks for the fix in the first place.
Closing according to Martin's feedback.