[ wxwindows-Bugs-1861668 ] 2.4 compatibility fails due to missing
wxAppConsole symbols
SourceForge.net
noreply at sourceforge.net
Tue Jan 1 15:34:58 PST 2008
Bugs item #1861668, was opened at 2008-01-01 14:26
Message generated for change (Comment added) made by vadz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1861668&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lincoln Ramsay (a1291762)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2.4 compatibility fails due to missing wxAppConsole symbols
Initial Comment:
Building wxMac 2.8.7 on Mac OS X 10.4.11 (similar to how macports does but with 2.4 compatibility and xrc enabled) failed because the 2.4 compatibility ifdef was being handled incorrectly. The linker expected the symbols to be there (so someone including app.h had already included setup.h) but appbase.cpp did not include setup.h - hence the compatibility define was not set - and so the symbols weren't built.
I'd suspect the best fix would be to add #include "wx/setup.h" to app.h but perhaps just adding it to appbase.cpp would be enough.
----------------------------------------------------------------------
>Comment By: Vadim Zeitlin (vadz)
Date: 2008-01-02 00:34
Message:
Logged In: YES
user_id=71618
Originator: NO
Strange, these functions should be defined in monodll_appbase.o -- could
you please check with nm or otool if this is the case?
As for setup.h, it's always included so this is definitely not the
problem. And it almost certainly doesn't have anything to do with XRC.
BTW, why do you build in monolithic mode?
----------------------------------------------------------------------
Comment By: Lincoln Ramsay (a1291762)
Date: 2008-01-01 22:25
Message:
Logged In: YES
user_id=736434
Originator: YES
Here's the configure line (enabling 2.4 compatibility and xrc):
../wxMac-2.8.7/configure --mandir=/opt/local/share/man
--with-libiconv-prefix=/opt/local --with-libjpeg --with-libtiff
--with-libpng --with-zlib --with-sdl --with-opengl --with-mac
--disable-sdltest --enable-unicode --enable-display --enable-monolithic
--enable-compat24 --enable-xrc
----------------------------------------------------------------------
Comment By: Lincoln Ramsay (a1291762)
Date: 2008-01-01 22:21
Message:
Logged In: YES
user_id=736434
Originator: YES
Hmm... Looks like the XRC lib doesn't like the compatibility define.
/Users/link/Files/Incoming/build_wx/bk-deps g++ -c -o wxrc_wxrc.o
-D__WXMAC__ -I../../../wxMac-2.8.7/utils/wxrc -DWXUSINGDLL
-DwxUSE_GUI=0 -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/Users/link/Files/Incoming/build_wx/lib/wx/include/mac-unicode-release-2.8
-I../../../wxMac-2.8.7/include -fpascal-strings
-I../../../wxMac-2.8.7/src/mac/carbon/morefilex
-I/Developer/Headers/FlatCarbon -I/opt/local/include -Wall -Wundef
-Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/opt/local/include/SDL
-D_GNU_SOURCE=1 -D_THREAD_SAFE -fno-common
../../../wxMac-2.8.7/utils/wxrc/wxrc.cpp
g++ -o wxrc wxrc_wxrc.o -L/opt/local/lib -framework IOKit -framework
Carbon -framework Cocoa -framework System -framework QuickTime
-L/Users/link/Files/Incoming/build_wx/lib -lz -lpthread -liconv
-lwx_macu-2.8 -lwxregexu-2.8 -lwxexpat-2.8 -L/opt/local/lib -framework
IOKit -framework Carbon -framework Cocoa -framework System -framework
QuickTime -lz -lpthread -liconv -framework WebKit
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
wxAppConsole::CreateLogTarget()
wxAppConsole::CreateMessageOutput()
collect2: ld returned 1 exit status
----------------------------------------------------------------------
Comment By: Vaclav Slavik (vaclavslavik)
Date: 2008-01-01 14:36
Message:
Logged In: YES
user_id=80834
Originator: NO
And the errors you get are...?
----------------------------------------------------------------------
Comment By: Lincoln Ramsay (a1291762)
Date: 2008-01-01 14:34
Message:
Logged In: YES
user_id=736434
Originator: YES
I added my first suggestion but it didn't work. I'm currently building
with the compatibility ifdef commented out (ie. forced on) to see if that
will work. Commenting out just the .cpp file causes the symbols to be found
but vtable entries for them are not.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1861668&group_id=9863
More information about the wx-dev
mailing list