On Nov 20, 2009, at 12:17 PM, Timo Sirainen wrote:

> On Nov 20, 2009, at 2:40 PM, Drew Schatt wrote:
> 
>> cc -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib -I../../src/lib-auth 
>> -I../../src/lib-mail -I../../src/lib-imap -I../../src/lib-index 
>> -I../../src/lib-storage/index/maildir -I../../src/auth 
>> -DPKG_RUNDIR=\""/usr/local/var/run/dovecot"\" -I/usr/local/include 
>> -I/usr/local/ssl/include -D_XPG6 -L/usr/local/lib -L/usr/local/ssl/lib -KPIC 
>> -lm -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -xc99 -I/usr/local/include 
>> -I/usr/local/ssl/include -L/usr/local/lib -L/usr/local/ssl/lib -D_XPG6 
>> -xstrconst -KPIC -lm -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -c 
>> authtest.c
>> "authtest.c", line 164: warning: implicit function declaration: getopt
> 
> This breaks because you're defining _XPG6. Why are you doing it?
> 
        I was defining _XPG6 because a lot of the code I was compiling is c99 
code, and requires it to be set to be totally happy.
        Removing the -xc99 and the -D_XPG6 from my compiler options seems to 
have fixed the problem completely. Thanks Timo.
        -Drew

Reply via email to