Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 114808

Summary: cannot link against wxGTK-2.4.2 compiled with gcc-4
Product: Gentoo Linux Reporter: Shawn Leas <core>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: wxwidgets
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.enodev.com/wxGTK-gcc4.txt
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for wxGTK-2.4.2 for compilation with gcc-4
Another patch for wxGTK-2.4.2 for compilation with gcc-4

Description Shawn Leas 2005-12-07 15:22:07 UTC
When wxGTK-2.4.2-r4 is compiled with gcc-4 (I know, but hear me out) apps cannot
link against it. The following link has patches, which I will attach to this ticket.

https://bugzilla.redhat.com/bugzilla/long_list.cgi?buglist=154958

From my log file:
    LINK  src/mkvinfo
/usr/lib64/libwx_gtk2-2.4.so: undefined reference to
`wxwxListStringNode::~wxwxListStringNode()'
/usr/lib64/libwx_gtk2-2.4.so: undefined reference to
`wxwxMenuItemListNode::~wxwxMenuItemListNode()'
/usr/lib64/libwx_gtk2-2.4.so: undefined reference to
`wxwxMenuItemListNode::~wxwxMenuItemListNode()'
/usr/lib64/libwx_gtk2-2.4.so: undefined reference to `vtable for wxFileProto'
/usr/lib64/libwx_gtk2-2.4.so: undefined reference to
`wxwxListStringNode::~wxwxListStringNode()'
collect2: ld returned 1 exit status
make: *** [src/mkvinfo] Error 1

Reproducible: Always
Steps to Reproduce:
1. Get, compile and select gcc-4 from the overlay at
http://snigel.no-ip.com/~nxsty/linux/
2. Compile wxGTK-2.4.2-r4
3. Apps such as mkvtoolnix will not link against wxGTK-2.4.2-r4, but give:

Actual Results:  
link fails to resolve symbols

Expected Results:  
link succeeds
Comment 1 Shawn Leas 2005-12-07 15:25:54 UTC
Created attachment 74265 [details, diff]
Patch for wxGTK-2.4.2 for compilation with gcc-4
Comment 2 Shawn Leas 2005-12-07 15:26:28 UTC
Created attachment 74266 [details, diff]
Another patch for wxGTK-2.4.2 for compilation with gcc-4
Comment 3 Shawn Leas 2005-12-07 15:29:08 UTC
The "URL" in this bug is a log of a link failure.

I'm testing this fix now, and will have a result in <10m
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-12-07 15:29:15 UTC
These patches were removed since they actually broke other things - see the
other bug.

*** This bug has been marked as a duplicate of 90839 ***

*** This bug has been marked as a duplicate of 90839 ***
Comment 5 Shawn Leas 2005-12-07 15:33:27 UTC
Is there a wxGTK-2.4.2-r4 w/gcc-4 workaround?

The referenced bug says wxGTK-2.6 works, but I see wxGTK-2.4.2-r4 is still broken.
Comment 6 Shawn Leas 2005-12-07 16:06:40 UTC
I guess I can change the =x11-libs/wxGTK-2.4* to =x11-libs/wxGTK-2.6* in dvdstyler.

testing.