On Fri, 18 May 2007, Peter Kranz wrote:
> I have openssl-devel installed and all the libs seem to be in the right
> places, but on a FC6 install I cannot compile; suggestions?
>
> cc -O2 -I. -I../../include -I../libdkim/ -D_REENTRANT -DXP_MT -c -o
> dkim-filter.o dkim-filter.c
> cc -o dkim-filter -lpthread config.o dkim-filter.o stats.o util.o
> -lmilter
> /root/dkim-milter-0.8.0/obj.Linux.2.6.20-1.2944.fc6.i686/libsm/libsm.a
> /root/dkim-milter-0.8.0/obj.Linux.2.6.20-1.2944.fc6.i686/libdkim/libdkim.a
> -ldb -lresolv -lcrypt -lnsl -ldl
There's no "-lcrypto" in there which is where those functions live.
Adding library search rules won't fix this because your build doesn't
request the library it needs in the first place.
In your site.config.m4 file you should have a line that reads:
APPENDDEF(`confLIBS', `-lcrypto -lssl')
My guess is you haven't set that file up. Check the INSTALL file for
instructions.
I think I will probably move that line into dkim-filter/Makefile.m4 so
that, if the site.config.m4 step gets skipped, it'll still compile.
-MSK

Thanks for all the help,
It turned out this was a RTFM problem. I was editing the
site.config.m4 in the root of the archive and missed the note about copying
it to the devtools/Site subdirectory. Once I did that, voila..
Peter Kranz
Founder/CEO - Unwired Ltd
http://www.UnwiredLtd.com
Desk: 510-868-1614 x100
Mobile: 510-207-0000
pkranz@...

Hi Murray,
At 07:28 19-05-2007, Murray S. Kucherawy wrote:
>On Fri, 18 May 2007, Peter Kranz wrote:
> > /root/dkim-milter-0.8.0/obj.Linux.2.6.20-1.2944.fc6.i686/libdkim/libdkim.a
> > -ldb -lresolv -lcrypt -lnsl -ldl
>
>There's no "-lcrypto" in there which is where those functions live.
>Adding library search rules won't fix this because your build doesn't
>request the library it needs in the first place.
>
>In your site.config.m4 file you should have a line that reads:
>
> APPENDDEF(`confLIBS', `-lcrypto -lssl')
He has that line in his site.config.m4 file.
Regards,
-sm

On Sat, 19 May 2007, SM wrote:
> He has that line in his site.config.m4 file.
Evidently it was ignored, since the linker line didn't contain either of
those libraries, which is the problem.
Some things I usually try in these situations:
- Is the file named correctly, and in the correct location?
- Does "sh Build -c" (recompile from scratch) help?
-MSK

At 11:08 19-05-2007, Murray S. Kucherawy wrote:
>Evidently it was ignored, since the linker line didn't contain either of
>those libraries, which is the problem.
Maybe the site.config.m4 was created after the first "sh
Build". That may explain the linker problem.
>Some things I usually try in these situations:
>
> - Is the file named correctly, and in the correct location?
> - Does "sh Build -c" (recompile from scratch) help?
sh Build -c should be used if the site.config.m4 is modified.
Regards,
-sm