Cannot build vpn-daemons/pptp



Hi,

I'm trying to build the pptp daemon, with gcc 4.0.2 20051125 (FC4). I
start by running autogen.sh with the same arguments as the rest of
NetworkManager in vpn-daemons/pptp. Running make gives:


make  all-recursive
make[1]: Entering directory
`/home/james/src/NetworkManager-build/vpn-daemons/pptp'
Making all in src
make[2]: Entering directory
`/home/james/src/NetworkManager-build/vpn-daemons/pptp/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..  -I../utils
-I../vpn-daemons/pptp -I/usr/include/dbus-1.0
-I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -Wall -DDBUS_API_SUBJECT_TO_CHANGE
-DG_DISABLE_DEPRECATED -DBINDIR=\"/usr/bin\" -DPREFIX=\""/usr"\"
-DSYSCONFDIR=\""/etc"\" -DVERSION="\"0.1.0\"" -DLIBDIR=\""/usr/lib"\"
-DLIBEXECDIR=\""/usr/libexec"\" -DLOCALSTATEDIR=\""/var"\" -DDATADIR=
\"/usr/share\"   -Wall -Werror -std=gnu89 -g -O2 -Wno-unused
-Wno-strict-aliasing -Wno-sign-compare -Wdeclaration-after-statement
-Wno-pointer-sign -MT nm-pptp-service.o -MD -MP -MF
".deps/nm-pptp-service.Tpo" \
  -c -o nm-pptp-service.o `test -f 'nm-pptp-service.c' || echo
'./'`nm-pptp-service.c; \
then mv -f ".deps/nm-pptp-service.Tpo" ".deps/nm-pptp-service.Po"; \
else rm -f ".deps/nm-pptp-service.Tpo"; exit 1; \
fi
nm-pptp-service.c:72: error: syntax error before ‘NMVPNState’
cc1: warnings being treated as errors
nm-pptp-service.c:72: warning: no semicolon at end of struct or union
nm-pptp-service.c:78: error: syntax error before ‘}’ token
nm-pptp-service.c:78: warning: type defaults to ‘int’ in declaration
of ‘NmPPTPData’
nm-pptp-service.c:78: warning: data definition has no type or storage
class
nm-pptp-service.c:81: error: syntax error before ‘*’ token
nm-pptp-service.c:116: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_dbus_signal_failure’:
nm-pptp-service.c:121: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:121: error: (Each undeclared identifier is reported
only once
nm-pptp-service.c:121: error: for each function it appears in.)
nm-pptp-service.c:129: warning: passing argument 3 of
‘dbus_message_new_signal’ from incompatible pointer type
nm-pptp-service.c: At top level:
nm-pptp-service.c:149: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_dbus_signal_state_change’:
nm-pptp-service.c:153: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:155: error: ‘NM_DBUS_VPN_SIGNAL_STATE_CHANGE’
undeclared (first use in this function)
nm-pptp-service.c:161: error: ‘old_state’ undeclared (first use in
this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:176: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_set_state’:
nm-pptp-service.c:178: error: ‘NMVPNState’ undeclared (first use in
this function)
nm-pptp-service.c:178: error: syntax error before ‘old_state’
nm-pptp-service.c:180: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:182: error: ‘old_state’ undeclared (first use in
this function)
nm-pptp-service.c:184: error: ‘new_state’ undeclared (first use in
this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:200: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_quit_timer_cb’:
nm-pptp-service.c:202: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:219: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_schedule_quit_timer’:
nm-pptp-service.c:221: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:224: error: ‘interval’ undeclared (first use in
this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:234: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_cancel_quit_timer’:
nm-pptp-service.c:236: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:250: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_helper_timer_cb’:
nm-pptp-service.c:252: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:256: error: ‘NM_DBUS_VPN_SIGNAL_CONNECT_FAILED’
undeclared (first use in this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:271: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_schedule_helper_timer’:
nm-pptp-service.c:273: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:286: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_cancel_helper_timer’:
nm-pptp-service.c:288: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c: In function ‘pptp_watch_cb’:
nm-pptp-service.c:305: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:305: error: syntax error before ‘)’ token
nm-pptp-service.c:328: error: ‘NM_DBUS_VPN_SIGNAL_LOGIN_FAILED’
undeclared (first use in this function)
nm-pptp-service.c:332: error: ‘NM_DBUS_VPN_SIGNAL_CONNECT_FAILED’
undeclared (first use in this function)
nm-pptp-service.c:339: error: ‘NM_VPN_STATE_STOPPED’ undeclared
(first use in this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:350: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_start_pptp_binary’:
nm-pptp-service.c:363: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:367: error: ‘num_items’ undeclared (first use in
this function)
nm-pptp-service.c:367: error: ‘data_items’ undeclared (first use in
this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:592: error: syntax error before ‘NmPPTPData’
nm-pptp-service.c: In function ‘nm_pptp_dbus_handle_start_vpn’:
nm-pptp-service.c:604: error: ‘message’ undeclared (first use in
this function)
nm-pptp-service.c:605: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:607: error: ‘NM_VPN_STATE_STARTING’ undeclared
(first use in this function)
nm-pptp-service.c:618: error: ‘NM_DBUS_VPN_SIGNAL_VPN_CONFIG_BAD’
undeclared (first use in this function)
nm-pptp-service.c:638: error: ‘NM_VPN_STATE_STOPPED’ undeclared
(first use in this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:649: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_dbus_handle_stop_vpn’:
nm-pptp-service.c:651: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:655: error: ‘NM_VPN_STATE_STOPPING’ undeclared
(first use in this function)
nm-pptp-service.c:661: error: ‘NM_VPN_STATE_STOPPED’ undeclared
(first use in this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:675: error: syntax error before ‘NmPPTPData’
nm-pptp-service.c: In function ‘nm_pptp_dbus_start_vpn’:
nm-pptp-service.c:679: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:680: error: ‘con’ undeclared (first use in this
function)
nm-pptp-service.c:681: error: ‘message’ undeclared (first use in
this function)
nm-pptp-service.c:685: error: ‘NM_VPN_STATE_STARTING’ undeclared
(first use in this function)
nm-pptp-service.c:686: error: ‘NM_DBUS_VPN_STARTING_IN_PROGRESS’
undeclared (first use in this function)
nm-pptp-service.c:690: error: ‘NM_VPN_STATE_STARTED’ undeclared
(first use in this function)
nm-pptp-service.c:691: error: ‘NM_DBUS_VPN_ALREADY_STARTED’
undeclared (first use in this function)
nm-pptp-service.c:695: error: ‘NM_VPN_STATE_STOPPING’ undeclared
(first use in this function)
nm-pptp-service.c:696: error: ‘NM_DBUS_VPN_STOPPING_IN_PROGRESS’
undeclared (first use in this function)
nm-pptp-service.c:700: error: ‘NM_VPN_STATE_STOPPED’ undeclared
(first use in this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:721: error: syntax error before ‘NmPPTPData’
nm-pptp-service.c: In function ‘nm_pptp_dbus_stop_vpn’:
nm-pptp-service.c:725: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:726: error: ‘con’ undeclared (first use in this
function)
nm-pptp-service.c:727: error: ‘message’ undeclared (first use in
this function)
nm-pptp-service.c:731: error: ‘NM_VPN_STATE_STOPPING’ undeclared
(first use in this function)
nm-pptp-service.c:732: error: ‘NM_DBUS_VPN_STOPPING_IN_PROGRESS’
undeclared (first use in this function)
nm-pptp-service.c:736: error: ‘NM_VPN_STATE_STOPPED’ undeclared
(first use in this function)
nm-pptp-service.c:737: error: ‘NM_DBUS_VPN_ALREADY_STOPPED’
undeclared (first use in this function)
nm-pptp-service.c:741: error: ‘NM_VPN_STATE_STARTING’ undeclared
(first use in this function)
nm-pptp-service.c:742: error: ‘NM_VPN_STATE_STARTED’ undeclared
(first use in this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:762: error: syntax error before ‘NmPPTPData’
nm-pptp-service.c: In function ‘nm_pptp_dbus_get_state’:
nm-pptp-service.c:766: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:767: error: ‘con’ undeclared (first use in this
function)
nm-pptp-service.c:768: error: ‘message’ undeclared (first use in
this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:784: error: syntax error before ‘NmPPTPData’
nm-pptp-service.c: In function
‘nm_pptp_dbus_process_helper_config_error’:
nm-pptp-service.c:788: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:789: error: ‘con’ undeclared (first use in this
function)
nm-pptp-service.c:790: error: ‘message’ undeclared (first use in
this function)
nm-pptp-service.c:793: error: ‘NM_VPN_STATE_STARTING’ undeclared
(first use in this function)
nm-pptp-service.c:799: error: ‘NM_DBUS_VPN_SIGNAL_IP_CONFIG_BAD’
undeclared (first use in this function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:813: error: syntax error before ‘NmPPTPData’
nm-pptp-service.c: In function
‘nm_pptp_dbus_process_helper_ip4_config’:
nm-pptp-service.c:831: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:832: error: ‘con’ undeclared (first use in this
function)
nm-pptp-service.c:833: error: ‘message’ undeclared (first use in
this function)
nm-pptp-service.c:836: error: ‘NM_VPN_STATE_STARTING’ undeclared
(first use in this function)
nm-pptp-service.c:870: error: ‘NM_DBUS_VPN_SIGNAL_IP4_CONFIG’
undeclared (first use in this function)
nm-pptp-service.c:891: error: syntax error before
‘NM_DBUS_VPN_SIGNAL_IP4_CONFIG’
nm-pptp-service.c:896: error: ‘NM_VPN_STATE_STARTED’ undeclared
(first use in this function)
nm-pptp-service.c: In function ‘nm_pptp_dbus_message_handler’:
nm-pptp-service.c:920: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:920: error: syntax error before ‘)’ token
nm-pptp-service.c:936: error: ‘NM_VPN_STATE_INIT’ undeclared (first
use in this function)
nm-pptp-service.c:936: error: ‘NM_VPN_STATE_SHUTDOWN’ undeclared
(first use in this function)
nm-pptp-service.c:939: error: ‘NM_DBUS_VPN_WRONG_STATE’ undeclared
(first use in this function)
nm-pptp-service.c: In function ‘nm_pptp_dbus_filter’:
nm-pptp-service.c:977: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c:977: error: syntax error before ‘)’ token
nm-pptp-service.c: At top level:
nm-pptp-service.c:1028: error: syntax error before ‘*’ token
nm-pptp-service.c: In function ‘nm_pptp_dbus_init’:
nm-pptp-service.c:1034: error: ‘data’ undeclared (first use in this
function)
nm-pptp-service.c: At top level:
nm-pptp-service.c:1089: error: syntax error before ‘*’ token
nm-pptp-service.c:1089: warning: type defaults to ‘int’ in
declaration of ‘vpn_data’
nm-pptp-service.c:1089: warning: data definition has no type or storage
class
nm-pptp-service.c: In function ‘sigterm_handler’:
nm-pptp-service.c:1095: error: request for member ‘loop’ in
something not a structure or union
nm-pptp-service.c: In function ‘main’:
nm-pptp-service.c:1114: error: request for member ‘state’ in
something not a structure or union
nm-pptp-service.c:1114: error: ‘NM_VPN_STATE_INIT’ undeclared (first
use in this function)
nm-pptp-service.c:1116: error: request for member ‘loop’ in
something not a structure or union
nm-pptp-service.c:1118: error: request for member ‘con’ in something
not a structure or union
nm-pptp-service.c:1128: error: ‘NM_VPN_STATE_STOPPED’ undeclared
(first use in this function)
nm-pptp-service.c:1129: error: request for member ‘loop’ in
something not a structure or union
nm-pptp-service.c:1133: error: request for member ‘loop’ in
something not a structure or union
nm-pptp-service.c:1135: error: request for member
‘str_ip4_vpn_gateway’ in something not a structure or union
nm-pptp-service.c:1135: error: request for member
‘str_ip4_vpn_gateway’ in something not a structure or union
make[2]: *** [nm-pptp-service.o] Error 1
make[2]: Leaving directory
`/home/james/src/NetworkManager-build/vpn-daemons/pptp/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/james/src/NetworkManager-build/vpn-daemons/pptp'
make: *** [all] Error 2


James
-- 
James Ettle                                        jhe phys soton ac uk
Southampton High Energy Physics
School of Physics and Astronomy
University of Southampton, SO17 1BJ
PGP key: http://www.hep.phys.soton.ac.uk/~jhe/pgp-public/jhe-shep.asc
-----------------------------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]