Hi Darren & Peter,

I looked into this issue and found a simple fix: Simply by creating a
preprocessed source and then running gcc on that preprocessed source
will avoid the compiler crash.

Please try the attached patch on a clean source of the latest spamdyke
release. Be sure to remove Makefile and rerun ./configure if you've done
so previously, because this patch modiefies the Makefile.

On a FreeBSD-6.0-RELEASE-i386 virtual machine using the stock gcc
version I can successfully compile spamdyke after applying this fix.

Best Regards,
   Felix Buenemann



Am 15.10.2008 22:46 Uhr, Darren Stojic schrieb:
> Thank-you.
> Darren. 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sam Clippinger
> Sent: Wednesday, October 15, 2008 16:25
> To: spamdyke users
> Subject: Re: [spamdyke-users] spamdyke 4.0.5 install problem on Free BSD 6.0
> release p16
> 
> All of spamdyke's releases are available from the spamdyke website:
>     http://www.spamdyke.org/releases/
> 
> -- Sam Clippinger
> 
> [EMAIL PROTECTED] wrote:
>> I understand.  Somebody I know is running spamdyke v3.18 under Free 
>> BSD 6.0 successfully.
>> Can I download v3.18 somewhere?
>>
>> Tks!
>> Darren.
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Sam 
>> Clippinger
>> Sent: Wednesday, October 15, 2008 15:46
>> To: spamdyke users
>> Subject: Re: [spamdyke-users] spamdyke 4.0.5 install problem on Free 
>> BSD 6.0 release p16
>>
>> This came up a couple of weeks ago also:
>>     
>> http://www.mail-archive.com/[email protected]/msg01635.html
>>
>> gcc is crashing, not spamdyke, so even if there were something I could 
>> do to fix it, I don't know where to start.
>>
>> -- Sam Clippinger
>>
>> Peter Kieser wrote:
>>   
>>> gcc segfaults on FreeBSD 6.0/i386 when compiling spamdyke.
>>>
>>> I have the port marked as broken for FreeBSD <= 6.0
>>>
>>> -Peter
>>>
>>> [EMAIL PROTECTED] wrote, On 10/15/2008 12:04 PM:
>>>   
>>>     
>>>> Free BSD 6.0 release p16
>>>> spamdyke 4.0.5
>>>> created /usr/local/spamdyke dir
>>>> tar -xzvf filename
>>>> ran ./configure - completed (no errors until make, see snapshot
>>>> below)
>>>>  
>>>> checking for library containing getopt_long... none required 
>>>> checking whether anonymous inner functions are supported by 
>>>> default... yes checking whether struct option is defined in 
>>>> getopt.h... yes checking whether pid_t is an unsigned int or an unsigned
> long...
>>>> unsigned int
>>>> checking whether uid_t is an unsigned int or an unsigned long... 
>>>> unsigned int
>>>> checking whether gid_t is an unsigned int or an unsigned long... 
>>>> unsigned int
>>>> checking whether long long ints are supported in a test program... 
>>>> yes checking whether printf()/scanf() uses %ld for 64-bit integers... 
>>>> no checking whether printf()/scanf() uses %lld for 64-bit integers... 
>>>> yes checking whether __func__ is available... yes
>>>> configure: creating ./config.status
>>>> config.status: creating Makefile
>>>> config.status: creating config.h
>>>> config.status: config.h is unchanged ns1# make gcc -Wall -O2 
>>>> -funsigned-char  -c spamdyke.c gcc -Wall -O2 -funsigned-char  -c 
>>>> configuration.c
>>>> configuration.c: In function `prepare_settings':
>>>> configuration.c:763: internal compiler error: Segmentation fault: 11 
>>>> Please submit a full bug report, with preprocessed source if 
>>>> appropriate.
>>>> See <*netGUARD has detected a possible fraud attempt from 
>>>> "gcc.gnu.org" claiming to be* URL:http://gcc.gnu.org/bugs.html 
>>>> <http://gcc.gnu.org/bugs.html>> for instructions.
>>>> *** Error code 1
>>>>  
>>>> Stop in /usr/local/spamdyke/spamdyke-4.0.5/spamdyke.
>>>> ns1#
>>>>  
>>>> Question: Why did it stop and not install?
>>>>  
>>>> Thanks for your help!
>>>> Darren.

--- spamdyke/Makefile.in        Tue May 13 18:36:25 2008
+++ spamdyke/Makefile.in        Thu Oct 16 02:58:12 2008
@@ -35,7 +35,9 @@
 spamdyke.o: spamdyke.c spamdyke.h Makefile config.h
        $(CC) $(CFLAGS) $(DEFS) -c spamdyke.c
 configuration.o: configuration.c configuration.h Makefile spamdyke.h config.h
-       $(CC) $(CFLAGS) $(DEFS) -c configuration.c
+       $(CC) $(CFLAGS) $(DEFS) -E -c configuration.c >configuration.pre.c
+       $(CC) $(CFLAGS) $(DEFS) -c configuration.pre.c -o configuration.o
+       rm configuration.pre.c
 dns.o: dns.c dns.h Makefile spamdyke.h config.h
        $(CC) $(CFLAGS) $(DEFS) -c dns.c
 environment.o: environment.c environment.h Makefile spamdyke.h config.h
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to