Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15033 - wxGTK won't compile
Summary: wxGTK won't compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-03 08:55 UTC by Cletus Lichte
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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 Cletus Lichte 2003-02-03 08:55:40 UTC
I get the following error when compiling wxGTK:

In file included from lib/wx/include/gtk2u-2.4/wx/setup.h:1132,
                 from include/wx/platform.h:62,
                 from include/wx/defs.h:23,
                 from include/wx/wxprec.h:13,
                 from src/generic/accel.cpp:24:
include/wx/chkconf.h:825:9: #error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
In file included from include/wx/platform.h:65,
                 from include/wx/defs.h:23,
                 from include/wx/wxprec.h:13,
                 from src/generic/accel.cpp:24:
include/wx/chkconf.h:825:9: #error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
In file included from lib/wx/include/gtk2u-2.4/wx/setup.h:1132,
                 from include/wx/platform.h:62,
                 from include/wx/defs.h:23,
                 from include/wx/wxprec.h:13,
                 from src/generic/busyinfo.cpp:13:
include/wx/chkconf.h:825:9: #error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
In file included from include/wx/platform.h:65,
                 from include/wx/defs.h:23,
                 from include/wx/wxprec.h:13,
                 from src/generic/busyinfo.cpp:13:
include/wx/chkconf.h:825:9: #error "wxUSE_ODBC can't be used with wxUSE_UNICODE"
make: *** [accel.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [busyinfo.o] Error 1

!!! ERROR: x11-libs/wxGTK-2.4.0 failed.
!!! Function src_compile, Line 78, Exitcode 2
!!! make failed
Comment 1 SpanKY gentoo-dev 2003-02-03 15:48:35 UTC
for now just `env USE="-odbc" emerge wxGTK` 
Comment 2 Nick Hadaway 2003-02-04 04:41:04 UTC
you are attempting to compile wxGTK with the gtk2 eabled in USE.  This is experimental and as noted by wxGTK here, odbc support doesn't work with a gtk2-linked wxGTK (unicode support is only enabled with gtk2).

You either need to remove gtk2 or odbc from your USE flags.

I don't want to remove the gtk2 use flag code from the ebuild as it's good for people to test.  Currently the gtk2 code in many programs is still experimental and this is noted in use.desc... 

I'd suggest not linking against gtk2 as I know the odbc support works fine without.
Comment 3 SpanKY gentoo-dev 2003-02-04 16:03:06 UTC
cant we get a small code workaround ? a check to see if odbc and gtk2 are enabled, and if so, dont enable odbc support ? (or something similar)
Comment 4 Cletus Lichte 2003-02-04 16:57:57 UTC
I've removed the gtk2 use flag in my make.conf for this ebuild. Thanks for your
help!
Comment 5 Cletus Lichte 2003-02-04 17:59:23 UTC
I have one other question.  My system has both versions of GTK installed and ebuilds that require either pick wich one to use.  Why doesn't the wxGTK ebuild pick the gtk1 library to build against instead of using the gtk2?