Menu

#7 will not build with GCC4

open
nobody
None
5
2005-11-14
2005-11-14
Pascal
No

Hi!

Nomadsync does not build anymore in distros using
gcc4.0. It seems to be an issue with wxGTK2.4 not
building, but this becomes a nomadsync issue because it
requires this old version.

See also
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/2c11b6c2e398e09b/d119ad26762b1017?lnk=st&q=undefined+reference+to+\`wxwxMenuItemListNode::%7EwxwxMenuItemListNode()%27&rnum=2#d119ad26762b1017
Topic: Bug#309216: wxwindows2.4 FTBFS with g++-4.0

It would be good if nomadsync would be updated to link
against a newer wxGTK version.

Thanks

Pascal

This is what I get:

g++ -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2
-I/opt/gnome/include/glib-1.2
-I/opt/gnome/lib/glib/include -I/usr/X11R6/include
-I/home/pascal/downloads/wxGTK-2.4.2/include
-I/home/pascal/downloads/wxGTK-2.4.2/lib/wx/include/gtk-2.4
-Wall -g -fexceptions -Wall -g -fexceptions
-I/home/pascal/downloads/wxGTK-2.4.2/lib/wx/include/gtk-2.4
-I/home/pascal/downloads/wxGTK-2.4.2/include
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -o nomadsync -rdynamic Action.o
BaseNomad.o BaseTransferDlg.o Config.o ConfigDlg.o
EzGrid.o EzMessageBox.o EzTag.o FastComboEditor.o
GridCellChoiceRenderer.o GridCellIconRenderer.o
LNomad.o LTransferDlg.o NomadSyncApp.o NomadSyncDlg.o
Track.o TrackMatcher.o Playlist.o ActionTable.o
CellAttrCache.o CommonFunc.o PlaylistMatcher.o
TrackCache.o PlaylistAction.o TrackAction.o common.o
dxhead.o getbits.o layer1.o layer2.o layer3.o mpg123.o
/usr/local/lib/libnjb.so
-L/home/pascal/downloads/wxGTK-2.4.2/lib -pthread
/home/pascal/downloads/wxGTK-2.4.2/lib/libwx_gtk-2.4.a
-L/opt/gnome/lib -L/usr/X11R6/lib
/opt/gnome/lib/libgtk.so /opt/gnome/lib/libgdk.so
/opt/gnome/lib/libgmodule.so
/opt/gnome/lib/libgthread.so /opt/gnome/lib/libglib.so
-lpthread -lXi -lXext -lX11 -lpng /usr/lib/libtiff.so
/usr/lib/libjpeg.so -lc -lz -ldl -lm /usr/lib/libid3.so
/usr/lib/libstdc++.so
/home/pascal/downloads/wxGTK-2.4.2/lib/libwx_gtk-2.4.a(menucmn.o):(.gnu.linkonce.r._ZTV20wxwxMenuItemListNode[vtable
for wxwxMenuItemListNode]+0x8): undefined reference to
`wxwxMenuItemListNode::~wxwxMenuItemListNode()'
/home/pascal/downloads/wxGTK-2.4.2/lib/libwx_gtk-2.4.a(menucmn.o):(.gnu.linkonce.r._ZTV20wxwxMenuItemListNode[vtable
for wxwxMenuItemListNode]+0xc): undefined reference to
`wxwxMenuItemListNode::~wxwxMenuItemListNode()'
/home/pascal/downloads/wxGTK-2.4.2/lib/libwx_gtk-2.4.a(statbar.o):(.gnu.linkonce.r._ZTV18wxwxListStringNode[vtable
for wxwxListStringNode]+0x8): undefined reference to
`wxwxListStringNode::~wxwxListStringNode()'
/home/pascal/downloads/wxGTK-2.4.2/lib/libwx_gtk-2.4.a(statbar.o):(.gnu.linkonce.r._ZTV18wxwxListStringNode[vtable
for wxwxListStringNode]+0xc): undefined reference to
`wxwxListStringNode::~wxwxListStringNode()'
collect2: ld returned 1 exit status
make[1]: *** [nomadsync] Error 1
make[1]: Leaving directory
`/home/pascal/downloads/nomadsync/src'
make: *** [all-recursive] Error 1
pascal@Dtop:~/downloads/nomadsync>

Discussion

  • Ed Welch

    Ed Welch - 2005-12-09

    Logged In: YES
    user_id=1037837

    There seems to be a patch available for GCC 4.0 to fix this:
    https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=154958
    Can you update your version of GCC with this patch?

     
  • Linus Walleij

    Linus Walleij - 2005-12-18

    Logged In: YES
    user_id=473872

    Now I have this other error which I believe came with
    GCC 4.0.2:

    Track.h: In member function 'trackType Track::GetType() const':
    Track.h:84: error: conversion from 'const char [4]' to
    'const wxString' is ambig uous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are:
    wxString::wxString(wx Char, size_t) <near match>
    /usr/include/wx-2.6/wx/string.h:633: note:
    wxString::wxString(in t) <near match>
    Track.h: In member function 'trackType Track::GetType() const':
    Track.h:84: error: conversion from 'const char [4]' to
    'const wxString' is ambig uous
    /usr/include/wx-2.6/wx/string.h:643: note: candidates are:
    wxString::wxString(wx Char, size_t) <near match>

    (etc etc etc)

     
  • Ed Welch

    Ed Welch - 2005-12-19

    Logged In: YES
    user_id=1037837

    Hi Linus,
    Looks like you are trying to build with wxGTK 2.6. Nomadsync
    needs a non-UNICODE version of wxGTK 2.4.2

     

Log in to post a comment.