> From [EMAIL PROTECTED] Mon Jun 24 10:04:37 2002
> Date: Mon, 24 Jun 2002 10:04:28 -0700 (PDT)
> From: Mark Duffield <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: LPRng on AIX
>
>
> Hello Patrick,
>
> I am have problems building LPRng on AIX 5.1
>
> What I am using for the build:
>
> gmake version 3.79.1
> gcc version 3.0.4
> LPRng version LPRng-3.8.12
> configure --with-linker=/usr/bin/ld
>
> Here are the last few lines of the build attempt:
>
> cc1: warnings being treated as errors
> common/linksupport.c: In function `getconnection':
> common/linksupport.c:568: warning: passing arg 3 of `ngetsockname' from
> incompatible pointer type
> common/linksupport.c: In function `Set_linger':
> common/linksupport.c:593: warning: passing arg 5 of `getsockopt' from
> incompatible pointer type
> gmake[1]: *** [linksupport.lo] Error 1
> gmake[1]: Leaving directory `/usr/local/src/LPRng-3.8.12/src'
> gmake: *** [src] Error 2
>
> thanks for any help,
>
> mark
>
Hmm... The code currently is:
int i = sizeof( src_sin );
if( getsockname( sock, (struct sockaddr *)&src_sin, &i ) < 0 ){
LOGERR_DIE(LOG_ERR)"getconnnection: getsockname failed" );
}
DEBUGF(DNW1)( "getconnection: sock %d, src ip %s, port %d", sock,
inet_ntoa( src_sin.sin_addr ), ntohs( src_sin.sin_port ) );
DEBUGF(DNW1)( "getconnection: dest ip %s, port %d",
inet_ntoa( dest_sin.sin_addr ), ntohs( dest_sin.sin_port ) );
if( Socket_linger_DYN > 0 ){
Set_linger( sock, Socket_linger_DYN );
}
And we have:
int getsockname(int s, struct sockaddr *name, socklen_t *namelen);
And once again I suspect that the socklen_t type is the problem.
And we have:
int getsockopt(int s, int level, int optname, void *optval,
socklen_t *optlen);
int setsockopt(int s, int level, int optname, const void *optval,
socklen_t optlen);
I will add a test to configure for 'socklen_t' type in the next release.
Patrick
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------