Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22957 - Xmule failds to build when wxGTK is build against GTK2
Summary: Xmule failds to build when wxGTK is build against GTK2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-16 14:51 UTC by Henrik Thostrup Jensen
Modified: 2003-06-19 06:09 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Thostrup Jensen 2003-06-16 14:51:45 UTC
When wxGTK is build against GTK+-2.something Xmule fails to build.

The solution is to build wxGTK against GTK+-1.x, e.g. put -gtk2 in USE. Xmule
should somehow be dependant on that wxGTK is build like this (I dont if this is
possible with the possible portage system), or state that wxGTK should be build
againt GTK+-1.x to build.

Xmule version 1.5.0 as well as 1.5.1 (not yet in portage) is affected.

This bug will probably disappear sometime when a better wxGTK is realased (2.4.1
is out, but only 2.4.0 is in portage(This should probably be tested)).

Note: If wxGTK is rebuild, wxPython should be rebuild as well (it blows up).
Comment 1 rob holland (RETIRED) gentoo-dev 2003-06-18 05:45:54 UTC
bit scary for me I'm afraid. needs to go to someone with understanding of wxGTK
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2003-06-18 06:39:33 UTC
not gnome, so i'll take it
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2003-06-18 06:41:06 UTC
what does it actually do when you say it fails to rebuild? some terminal output would help. 
Comment 4 Stephane Grenier 2003-06-18 16:21:06 UTC
this is the output I get with my wxGTK built against GTK2:

mfc.h:335: candidates are: void CString::Format(const wxChar*, ...)
AddFriend.cpp:136: cannot convert `const wxChar*' to `const char*' for argument
   `1' to `int atoi(const char*)'
AddFriend.cpp:136: cannot convert `const wxChar*' to `const char*' for argument
   `1' to `int atoi(const char*)'
AddFriend.cpp:163: cannot convert `const wxChar*' to `const char*' for argument
   `1' to `int sscanf(const char*, const char*, ...)'
make[3]: *** [AddFriend.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/xmule-1.5.1/work/xmule-1.5.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/xmule-1.5.1/work/xmule-1.5.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/xmule-1.5.1/work/xmule-1.5.1'
make: *** [all] Error 2
 
!!! ERROR: net-p2p/xmule-1.5.1 failed.
!!! Function src_compile, Line 22, Exitcode 2
!!! (no error message)
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-06-18 16:25:04 UTC
try re-emerge wxGTK and then try again.
Comment 6 Stephane Grenier 2003-06-19 05:08:40 UTC
Rebuilding wxGTK (still against GTK2) fixes the problem.

My question then is why isn't this version (without unicode) marked "r1" ? This bug (and maybe others) wouldn't even exist since people wouldn't have to guess about rebuilding their wxGTK, it would be done automagically.
Comment 7 Alastair Tse (RETIRED) gentoo-dev 2003-06-19 06:09:35 UTC
i consider removing unicode support a regression rather than something that people should be upgrading to. it is a work around until people who write wxwindows apps use their unicode support.

for people who have it working already, they would not need to upgrade to -r1 and for those who it doesn't work for, they would have either gone back to GTK1 version of wxGTK or could re-emerge it.

wxGTK 2.4.1 is on the wings to be released to portage soon anyway. that will have unicode switched off unless they support both unicode/ascii at the same time.