Hi,
Attached is a short diff on g++ 4.1.2 compile problems for official nsis
release 0.4.0.
--- library/libxorp/eventloop.hh 2007-04-16 16:12:39.000000000 -0400
+++ library/libxorp/eventloop.hh 2007-04-16 16:12:57.000000000 -0400
@@ -224,9 +224,9 @@
* pending.
* @return true on success.
*/
- inline bool EventLoop::add_selector(int fd,
- SelectorMask mask,
- const SelectorCallback& cb);
+ inline bool add_selector(int fd,
+ SelectorMask mask,
+ const SelectorCallback& cb);
/**
* Remove hooks associated with file descriptor.
--- nslp/qos/QoSServer.h 2007-04-16 16:14:42.000000000 -0400
+++ nslp/qos/QoSServer.h 2007-04-16 16:15:01.000000000 -0400
@@ -95,7 +95,7 @@
static int compare(unsigned char *a, unsigned char *b);
static void add_sid(unsigned char *sid, QoSFsm *fsm);
- static QoSFsm *QoSServer::get_fsm_for_sid(unsigned char *sid);
+ static QoSFsm *get_fsm_for_sid(unsigned char *sid);
static void delete_sid(unsigned char *sid);
static unsigned int getRSN();
--- nslp/natfw/fsm/NatFwFsm.h 2007-04-16 16:16:29.000000000 -0400
+++ nslp/natfw/fsm/NatFwFsm.h 2007-04-16 16:17:16.000000000 -0400
@@ -57,7 +57,7 @@
ev_rx_create,
ev_EOL
};
- static const char * NatFwFsm::eventStr[];
+ static const char * eventStr[];
// do not change manually, apply constants.xml
enum States
@@ -75,7 +75,7 @@
st_nr_reapending,
st_EOL
};
- static const char * NatFwFsm::stateStr[];
+ static const char * stateStr[];
NatFwFsm(States state);
virtual ~NatFwFsm() {};
--- nslp/natfw/NatFwServer.h 2007-04-16 16:17:38.000000000 -0400
+++ nslp/natfw/NatFwServer.h 2007-04-16 16:17:53.000000000 -0400
@@ -101,7 +101,7 @@
bool isLocalAddress(IPaddr addr);
bool isLocalAddress(unsigned int addr);
- int NatFwServer::SendMessage(NatFwFsmData * data);
+ int SendMessage(NatFwFsmData * data);
int SendMessage(char *nslp_data, unsigned int nd_size,
char *nslp_message_handle, unsigned short nslp_id,
unsigned char sid[SID_SIZE], msg_routing_info_base_t *mri,
char *source_s2_handle,
best regards,
victor