Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3956 - wvstreams-3.70.ebuild fails to compile under gcc3.1
Summary: wvstreams-3.70.ebuild fails to compile under gcc3.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-20 18:33 UTC by Brian Rozmierski
Modified: 2002-07-09 01:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for patch (wvstreams-3.70.ebuild,698 bytes, text/plain)
2002-06-21 17:54 UTC, Chandler Carruth
Details
patch to fix compile issues with gcc3.1 - mostly cosmetic compliancy stuff (wvstreams-3.70-gcc3.1.patch.bz2,868 bytes, patch)
2002-06-21 17:57 UTC, Chandler Carruth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Rozmierski 2002-06-20 18:33:11 UTC
Compile errors out with this message: 
 
g++ $_R_CXXFLAGS -c wvaddr.cc 
wvaddr.cc:641: prototype for `WvIPPortAddr::WvIPPortAddr(unsigned char*, short 
unsigned int)' does not match any in class `WvIPPortAddr' 
wvaddr.h:365: candidates are: WvIPPortAddr::WvIPPortAddr(const WvIPPortAddr&) 
wvaddr.h:382:                 WvIPPortAddr::WvIPPortAddr(sockaddr_in*) 
wvaddr.h:380:                 WvIPPortAddr::WvIPPortAddr(const char*, short 
unsigned int) 
wvaddr.h:379:                 WvIPPortAddr::WvIPPortAddr(short unsigned int) 
wvaddr.h:376:                 WvIPPortAddr::WvIPPortAddr(const WvString&) 
wvaddr.h:374:                 WvIPPortAddr::WvIPPortAddr(const char*) 
wvaddr.h:373:                 WvIPPortAddr::WvIPPortAddr(const WvIPAddr&, 
short unsigned int = 0) 
wvaddr.h:372:                 WvIPPortAddr::WvIPPortAddr(const unsigned char*, 
short unsigned int = 0) 
wvaddr.cc:634:                 WvIPPortAddr::WvIPPortAddr() 
make[2]: *** [wvaddr.o] Error 1 
make[1]: *** [ipstreams] Error 2 
make: *** [src] Error 2 
 
There also a message in the forums (search for wvstreams) with someone listing 
a 2 line 2 file fix (not posted yet). That thread also lists a responce from 
the wvstreams dev guy blaming gcc3.1. 
 
(see also bug 3951 - typo in the ebuild file, when working on this bug)
Comment 1 Chandler Carruth 2002-06-21 17:54:03 UTC
Created attachment 1676 [details]
ebuild for patch

This ebuild will use the patch i am also attaching. All unpacking/patching is
done in src_unpack() as spec'ed by ebuild docs, and compiling works, with the
typo-fixed src_compile() and src_install()
Comment 2 Chandler Carruth 2002-06-21 17:57:14 UTC
Created attachment 1677 [details, diff]
patch to fix compile issues with gcc3.1 - mostly cosmetic compliancy stuff

This patch is the actual fix for the source... most of the patch is comments
explaining the fix... single line changes to the actual source...
Comment 3 Brian Rozmierski 2002-06-21 19:07:29 UTC
Applied patch and ebuild changes, compiles fine now - and wvdial works. :)
(Gentoo 1.3a i686).

We should make sure this works with older gcc compilers and get this submitted
to the dev guys for inclusion in 3.71 if all goes well.