Opened 14 years ago

Closed 14 years ago

Last modified 9 years ago

#251 closed defect (fixed)

Compile error if option --with-prelude is used

Reported by: rainer Owned by: rainer
Priority: major Milestone: 2.8.5
Component: main Version:
Keywords: Cc:

Description

As noticed by Sean Chittenden, there's a compile error with the option --with-prelude:

gcc  -DHAVE_CONFIG_H -I. -I./include   -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -Wall -W  -fno-strength-reduce -fno-omit-frame-pointer -Wno-empty-body  -DSH_WITH_SERVER -o sh_forward.o -c x_sh_forward.c
x_sh_forward.c: In function ‘check_protocol’:
x_sh_forward.c:3617: error: incompatible type for argument 3 of ‘sh_ipvx_ntoa’
./include/sh_ipvx.h:66: note: expected ‘struct sh_sockaddr *’ but argument is of type ‘struct sh_sockaddr’

The patch provided by him:

@@ -3614,7 +3614,7 @@
#if defined(SH_WITH_SERVER) && defined(HAVE_LIBPRELUDE)
{
char peer_ip[SH_IP_BUF];
- sh_ipvx_ntoa(peer_ip, sizeof(peer_ip), conn->addr_peer);
+ sh_ipvx_ntoa(peer_ip, sizeof(peer_ip), &(conn->addr_peer));
sh_error_set_peer_ip( peer_ip );
}
#endif

Change History (2)

comment:1 by rainer, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in changeset [342].

comment:2 by rainer, 13 years ago

Fix the testcompile.sh script (changeset [344]).

Note: See TracTickets for help on using tickets.