Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114808 - cannot link against wxGTK-2.4.2 compiled with gcc-4
Summary: cannot link against wxGTK-2.4.2 compiled with gcc-4
Status: RESOLVED DUPLICATE of bug 90839
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL: http://www.enodev.com/wxGTK-gcc4.txt
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-07 15:22 UTC by Shawn Leas
Modified: 2005-12-07 16:06 UTC (History)
1 user (show)

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


Attachments
Patch for wxGTK-2.4.2 for compilation with gcc-4 (wxGTK-2.4.2-gcc4.patch,9.31 KB, patch)
2005-12-07 15:25 UTC, Shawn Leas
Details | Diff
Another patch for wxGTK-2.4.2 for compilation with gcc-4 (wxGTK-2.4.2-gcc4_v2.patch,445 bytes, patch)
2005-12-07 15:26 UTC, Shawn Leas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.