Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267698 - app-arch/p7zip-4.65 fails to compile against wxGTK built with USE=odbc
Summary: app-arch/p7zip-4.65 fails to compile against wxGTK built with USE=odbc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Radoslaw Stachowiak (RETIRED)
URL:
Whiteboard:
Keywords:
: 268341 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-27 20:24 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2009-05-03 07:10 UTC (History)
3 users (show)

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


Attachments
complete build log (build.log,228.48 KB, text/plain)
2009-04-27 20:25 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-04-27 20:24:12 UTC
# MAKEOPTS=-j1 LDFLAGS="-Wl,-O1" USE="kde rar wxwindows" emerge -av -1 p7zip
[...]
make -C CPP/7zip/UI/GUI               all
make[1]: Entering directory `/var/tmp/portage/app-arch/p7zip-4.65/work/p7zip_4.65/CPP/7zip/UI/GUI'
x86_64-pc-linux-gnu-g++ -m64 -march=native -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -DUNICODE -D_UNICODE -DLANG -DCOMPRESS_MT -DEXTERNAL_LZMA -DEXTERNAL_CODECS -DBENCH_MT -I. `wx-config --unicode=yes --cxxflags` -c -I../../../myWindows -I../../../ -I../../../include_windows CompressDialog.cpp
x86_64-pc-linux-gnu-g++ -m64 -march=native -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -DUNICODE -D_UNICODE -DLANG -DCOMPRESS_MT -DEXTERNAL_LZMA -DEXTERNAL_CODECS -DBENCH_MT -I. `wx-config --unicode=yes --cxxflags` -c -I../../../myWindows -I../../../ -I../../../include_windows CompressDialog_rc.cpp
In file included from /usr/include/sql.h:20,
                 from /usr/include/wx-2.8/wx/db.h:84,
                 from /usr/include/wx-2.8/wx/variant.h:31,
                 from /usr/include/wx-2.8/wx/colour.h:49,
                 from /usr/include/wx-2.8/wx/window.h:26,
                 from /usr/include/wx-2.8/wx/wx.h:37,
                 from CompressDialog_rc.cpp:16:
/usr/include/sqltypes.h:71: error: conflicting declaration ‘typedef void* HWND’
../../../myWindows/StdAfx.h:59: error: ‘HWND’ has a previous declaration as ‘typedef struct wxWindow* HWND’
/usr/include/sqltypes.h:84: error: conflicting declaration ‘typedef short int TCHAR’
../../../include_windows/tchar.h:62: error: ‘TCHAR’ has a previous declaration as ‘typedef WCHAR TCHAR’
/usr/include/sqltypes.h:92: error: multiple types in one declaration
/usr/include/sqltypes.h:92: error: declaration does not declare anything
/usr/include/sqltypes.h:106: error: conflicting declaration ‘typedef short unsigned int WCHAR’
../../../Common/MyWindows.h:57: error: ‘WCHAR’ has a previous declaration as ‘typedef wchar_t WCHAR’
/usr/include/sqltypes.h:266: error: conflicting declaration ‘typedef long unsigned int ULONG’
../../../Common/MyWindows.h:45: error: ‘ULONG’ has a previous declaration as ‘typedef UINT32 ULONG’
make[1]: *** [CompressDialog_rc.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-arch/p7zip-4.65/work/p7zip_4.65/CPP/7zip/UI/GUI'
make: *** [7zG] Error 2
 * 
 * ERROR: app-arch/p7zip-4.65 failed.


I have wxGTK-2.6.4.0-r4 and wxGTK-2.8.9.2-r1 installed.


# emerge --info
Portage 2.2_rc31 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.0
Timestamp of tree: Mon, 27 Apr 2009 18:30:17 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r15, 2.5.4-r2, 2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.16.1-r3, 2.17-r2, 2.18-r4, 2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j -l4.0"
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-04-27 20:25:39 UTC
Created attachment 189642 [details]
complete build log
Comment 2 Rafał Mużyło 2009-04-27 21:39:41 UTC
Actually, you've got wxGTK with 'odbc' useflag and dev-db/unixODBC
installed.
I *think* there were patches fixing a similar problem (not about p7zip,
on general), but I'm not sure whether they're already in portage
nor if they went upstream.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2009-04-27 23:13:30 UTC
just a note, the wxGTK depend needs a slot name (ie. x11-libs/wxGTK:2.8[X])

Comment 4 Juergen Rose 2009-05-02 06:56:08 UTC
The same problem here.
Comment 5 Alexey Shildyakov 2009-05-02 23:17:44 UTC
*** Bug 268341 has been marked as a duplicate of this bug. ***
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2009-05-03 07:10:02 UTC
I think the best bet is just to require wxGTK to be built with USE="-odbc".  Nothing in the tree requires it so it won't cause any conflicts.  odbc support has been dropped upstream for later versions anyways because it's incompatible with unicode builds.  (we have a patch that we apply that "fixes" that, which might be the root cause of this bug)