[tpop3d-discuss] compile fails on Solaris 8 / gcc 3.0

Chris Lightfoot chris at ex-parrot.com
Wed, 25 Jul 2001 23:35:47 +0100


On Wed, Jul 25, 2001 at 02:33:08PM -0400, pop3 lists archive wrote:
> # ./configure --disable-flock-locking \
>                   --disable-cclient-locking\
>                   --disable-cclient-fcntl\

On Solaris, you would want --enable-cclient-fcntl, if you
used cclient at all.

>                   --enable-fcntl-locking\
>                   --enable-auth-other\
>                   --enable-mbox-maildir
> # make
> *SNIP*
> make[2]: Entering directory `/space/tpop3d-1.3.4'
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall -g -c util.c
> In file included from util.c:28:
> util.h:68: warning: `struct in_addr' declared inside parameter list
> util.h:68: warning: its scope is only this definition or declaration,
> which is probably not what you want.
> util.c:100: warning: `struct in_addr' declared inside parameter list
> util.c:100: conflicting types for `inet_aton'
> util.h:68: previous declaration of `inet_aton'
> util.c: In function `inet_aton':
> util.c:101: `in_addr_t' undeclared (first use in this function)
> util.c:101: (Each undeclared identifier is reported only once
> util.c:101: for each function it appears in.)
> util.c:101: parse error before "i"
> util.c:102: `i' undeclared (first use in this function)
> make[2]: *** [util.o] Error 1
> make[2]: Leaving directory `/space/tpop3d-1.3.4'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/space/tpop3d-1.3.4'
> make: *** [all-recursive-am] Error 2
> 
> Am assuming the code is trying to define its own inet_aton
> because the one on Solaris insufficient or non-existent. Any ideas
> why this is failing?

Error on my part.

Add

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

below

#include <sys/types.h>

in util.h.

Dunno how this slipped through. It was introduced purely
as a Solaris fix....

-- 
Chris Lightfoot -- www.ex-parrot.com/~chris/
 Early to rise and early to bed,
 makes a man healthy, wealthy and dead (Thurber)