I'm working to integrate GNU autoconf into the next version, hopefully 
that will fix issues like this.

-- Sam Clippinger

CyberLeo Kitsana wrote:
> CyberLeo Kitsana wrote:
>> Hi!
>>
>> In trying to build SpamDyke for FreeBSD 4.10-RELEASE, I encountered the
>> following issues.
>>
>> I had to modify cflags in the makefile to add '-I/usr/local/include' so
>> that getopt.h could be located.
>>
>> Any suggestions on what I might be able to do to resolve this?
>>
>> Build log:
>>
>> [EMAIL PROTECTED]:~/build/spamdyke-2.6.3/spamdyke $ make bsd
>> make LFLAGS="" spamdyke
>> gcc -I/usr/local/include -Wall -O2 -funsigned-char -DTLS -c spamdyke.c
>> gcc -I/usr/local/include -Wall -O2 -funsigned-char -DTLS -c command_line.c
>> gcc -I/usr/local/include -Wall -O2 -funsigned-char -DTLS -c dns.c
>> gcc -I/usr/local/include -Wall -O2 -funsigned-char -DTLS -c environment.c
>> gcc -I/usr/local/include -Wall -O2 -funsigned-char -DTLS -c usage.c
>> gcc -I/usr/local/include -Wall -O2 -funsigned-char -DTLS -c search_fs.c
>> gcc -I/usr/local/include -Wall -O2 -funsigned-char -DTLS -c exec.c
>> gcc -I/usr/local/include -Wall -O2 -funsigned-char -DTLS -c base64.c
>> gcc -I/usr/local/include -Wall -O2 -funsigned-char -DTLS -c tls.c
>> tls.c: In function `tls_end':
>> tls.c:245: storage size of `tmp_timeout' isn't known
>> tls.c:245: warning: unused variable `tmp_timeout'
>> *** Error code 1
>>
>> Stop in /usr/home/cyberleo/build/spamdyke-2.6.3/spamdyke.
>> *** Error code 1
>>
>> Stop in /usr/home/cyberleo/build/spamdyke-2.6.3/spamdyke.
>>
> 
> Solved, kinda.
> I had to modify LFLAGS to include "-L/usr/local/lib -lgnugetopt", and
> tls.c to #include <sys/time.h> as well. Now it compiles cleanly and
> works perfectly.
> 
> Unfortunately, I have no idea how to conditionally include those flags
> or headers in the build process.
> 
_______________________________________________
spamdyke-users mailing list
spamdyke-users@spamdyke.org
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to