rdmenezes / wvstreams

Automatically exported from code.google.com/p/wvstreams
0 stars 0 forks source link

wvstreams ftbfs in ubuntu with gcc 4.5 #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When building wvstreams from source in ubuntu with gcc 4.5 the package fails to 
build due to gcc header not declared error 

Relavant part of the buildlog:

./CXX -c ipstreams/wvunixdgsocket
In file included from ./include/wvunixdgsocket.h:13,
                 from ipstreams/wvunixdgsocket.cc:1:
./include/wvaddr.h: In member function 'uint32_t WvIPAddr::addr() const':
./include/wvaddr.h:284: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
ipstreams/wvunixdgsocket.cc: In constructor 
'WvUnixDGSocket::WvUnixDGSocket(const WvFastString&, bool, int)':
ipstreams/wvunixdgsocket.cc:50: error: 'chmod' was not declared in this scope
make[1]: *** [ipstreams/wvunixdgsocket.o] Error 1
make[1]: Leaving directory `/build/buildd/wvstreams-4.6.1'
make: *** [build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Full buildlog and discussion here:

https://bugs.edge.launchpad.net/ubuntu/maverick/+source/wvstreams/+bug/602134

and I have prepared a patch as per martin pitt's comments there and have 
attached it

Original issue reported on code.google.com by right2bh...@gmail.com on 2 Aug 2010 at 4:13

Attachments:

GoogleCodeExporter commented 9 years ago
It's not about gcc 4.5, but about glibc 2.12 and the previous attached patch is 
wrong. Here's a corrected version, used in Gentoo Linux.

Original comment by ssuomi...@unk.fi on 18 Aug 2010 at 2:32

Attachments: