Socket error

DCH++ has been abandoned, this forum serves mainly as an archive

Moderator: Moderators

Locked
Quattro
Posts: 166
Joined: 2006-01-11 09:23

Socket error

Post by Quattro » 2006-06-01 08:17

i get a weird socket error when i try to compile in Suse 10.1

Code: Select all

checking for asm/bitops.h... yes
checking machine/atomic.h usability... no
checking machine/atomic.h presence... no
checking for machine/atomic.h... no
checking for size_t... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands
server:/home/server/dchpp-1.0 # make && make install
Making all in hub
make[1]: Entering directory `/home/server/dchpp-1.0/hub'
make  all-am
make[2]: Entering directory `/home/server/dchpp-1.0/hub'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.    -DBUILDING_DCHPP=1 -Wall -g -O2 -MT libdchpp_la-Client.lo -MD -MP -MF ".deps/libdchpp_la-Client.Tpo" -c -o libdchpp_la-Client.lo `test -f 'Client.cpp' || echo './'`Client.cpp; \
then mv -f ".deps/libdchpp_la-Client.Tpo" ".deps/libdchpp_la-Client.Plo"; else rm -f ".deps/libdchpp_la-Client.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I. -DBUILDING_DCHPP=1 -Wall -g -O2 -MT libdchpp_la-Client.lo -MD -MP -MF .deps/libdchpp_la-Client.Tpo -c Client.cpp  -fPIC -DPIC -o .libs/libdchpp_la-Client.o
AtomicInt.h: In member function ‘bool AtomicInt::testset()’:
AtomicInt.h:92: warning: dereferencing type-punned pointer will break strict-aliasing rules
AtomicInt.h: In member function ‘void AtomicInt::unset()’:
AtomicInt.h:93: warning: dereferencing type-punned pointer will break strict-aliasing rules
Socket.h: At global scope:
Socket.h:113: error: extra qualification ‘SocketException::’ on member ‘SocketException’
Socket.h:138: error: extra qualification ‘Socket::’ on member ‘Socket’
Socket.h:139: error: extra qualification ‘Socket::’ on member ‘Socket’
Socket.h:140: error: extra qualification ‘Socket::’ on member ‘Socket’
SettingsManager.h:24: warning: ‘class SettingsManagerListener’ has virtual functions but non-virtual destructor
ManagedSocket.h:25: warning: ‘class ManagedSocketListener’ has virtual functions but non-virtual destructor
ClientListener.h:23: warning: ‘class ClientListener’ has virtual functions but non-virtual destructor
PluginManager.h:101: warning: ‘class Plugin’ has virtual functions but non-virtual destructor
make[2]: *** [libdchpp_la-Client.lo] Error 1
make[2]: Leaving directory `/home/server/dchpp-1.0/hub'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/server/dchpp-1.0/hub'
make: *** [all-recursive] Error 1
anybody got some suggestions?
i'm suspecting the absence of atomic.h causes this error, but i installed gcc c++ and autoconf and automake
You can send a message around the world in 1/7 of a second; yet it may take several years to move a simple idea through a 1/4 inch of human skull.

Quattro
Posts: 166
Joined: 2006-01-11 09:23

Post by Quattro » 2006-06-11 04:24

i seem to have found the problem...
suse doesn't include libstdc++ package by default...
which ubuntu does when you install gcc and g++
so the problem can be fixed by installing just that library or probably the build-essentials package
You can send a message around the world in 1/7 of a second; yet it may take several years to move a simple idea through a 1/4 inch of human skull.

Locked