Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51809 - licq-1.2.7 falis to compile with gcc 3.4
Summary: licq-1.2.7 falis to compile with gcc 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-05-23 03:27 UTC by Robert Peter
Modified: 2005-12-07 00:49 UTC (History)
3 users (show)

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


Attachments
licq-1.2.7.ebuild-gcc34.patch (licq-1.2.7.ebuild-gcc34.patch,545 bytes, patch)
2004-06-30 19:06 UTC, Patrick Dawson (RETIRED)
Details | Diff
1.2.7-gcc34.patch (1.2.7-gcc34.patch,584 bytes, patch)
2004-06-30 19:10 UTC, Patrick Dawson (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Peter 2004-05-23 03:27:25 UTC
I can't compile licq since new gcc-3.4.0:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -I../include -DINSTALL_PREFIX=\"/usr\"   -fPIC -DPIC -D_REENTRANT  -O2 -fno-exceptions -fno-check-new -c -o socket.o `test -f socket.cpp || echo './'`socket.cpp
socket.cpp: In member function `bool TCPSocket::SecureConnect()':
socket.cpp:1081: error: ISO C++ forbids cast to non-reference type used as lvalue
socket.cpp: In member function `bool TCPSocket::SecureListen()':
socket.cpp:1114: error: ISO C++ forbids cast to non-reference type used as lvalue
gmake[2]: *** [socket.o] Error 1
gmake[2]: Leaving directory `/usr/portage/distfiles/licq-1.2.7/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/portage/distfiles/licq-1.2.7'
gmake: *** [all] Error 2

Reproducible: Always
Steps to Reproduce:
Comment 1 Patrick Dawson (RETIRED) gentoo-dev 2004-06-30 19:06:52 UTC
Created attachment 34546 [details, diff]
licq-1.2.7.ebuild-gcc34.patch

ebuild patch to add -fpermissive to CXXFLAGS and apply a patch (see next
attachment)
Comment 2 Patrick Dawson (RETIRED) gentoo-dev 2004-06-30 19:10:12 UTC
Created attachment 34547 [details, diff]
1.2.7-gcc34.patch

Not yet tested with qt or kde USE flags.
Comment 3 Patrick Dawson (RETIRED) gentoo-dev 2004-07-01 09:15:47 UTC
Tested with qt and kde flags, no further problems encountered.
Comment 4 Hanno Zysik (geki) 2004-07-06 03:09:40 UTC
works here perfectly, please update ebuild...
Comment 5 Travis Tilley (RETIRED) gentoo-dev 2004-07-15 02:25:42 UTC
licq is masked on amd64 or i would test this. that and fixes that force the use of -fpermissive dont make me too confident...
Comment 6 Patrick Dawson (RETIRED) gentoo-dev 2004-07-15 10:30:30 UTC
Hi Travis,

As I understand it, using -fpermissive is kind of like turning off -Werror. GCC knows exactly how to compile the code, but it doesn't want to because it's not "standard" C++. The code should still be fixed of course, but I figured I'd leave it up to the authors of licq to decide how to do that :)
Comment 7 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-08-21 12:31:52 UTC
licq-1.3.0_pre is in portage
may this one should be closed?
Comment 8 Patrick Dawson (RETIRED) gentoo-dev 2004-08-22 10:26:27 UTC
Yeah, works for me (gcc-3.4.1-r2 and licq-1.3.0_pre-r4). The crypt flag is broken, but that's not gcc34-specific. Open a new bug or reopen this one in case you find new gcc-3.4 issues with the latest version of licq, but it looks like this one has been fixed upstream.
Comment 9 Christian Goetz 2005-12-07 00:49:14 UTC
*** Bug 95806 has been marked as a duplicate of this bug. ***