Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254920 - dev-libs/log4cxx-0.10.0 USE="-iodbc odbc" - dbcappender.cpp:170: error: cannot convert 'wchar_t*' to 'SQLWCHAR*' in initialization
Summary: dev-libs/log4cxx-0.10.0 USE="-iodbc odbc" - dbcappender.cpp:170: error: canno...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: C++ Team [disbanded]
URL: http://issues.apache.org/jira/browse/...
Whiteboard:
Keywords:
Depends on:
Blocks: 302501
  Show dependency tree
 
Reported: 2009-01-14 01:26 UTC by David Klempner
Modified: 2010-02-24 12:49 UTC (History)
0 users

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 David Klempner 2009-01-14 01:26:14 UTC
log4cxx does not build with odbc but not iodbc.

last part of the emerge output:

if /bin/sh ../../../libtool --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1  -I. -I. -I../../../src/main/include -I../../../src/main/include  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5  -march=core2 -mtune=core2 -O2 -fomit-frame-pointer -pipe -MT optionconverter.lo -MD -MP -MF ".deps/optionconverter.Tpo" -c -o optionconverter.lo optionconverter.cpp; \
        then mv -f ".deps/optionconverter.Tpo" ".deps/optionconverter.Plo"; else rm -f ".deps/optionconverter.Tpo"; exit 1; fi
odbcappender.cpp: In member function 'virtual void log4cxx::db::ODBCAppender::execute(const log4cxx::LogString&, log4cxx::helpers::Pool&)':
odbcappender.cpp:170: error: cannot convert 'wchar_t*' to 'SQLWCHAR*' in initialization
odbcappender.cpp: In member function 'virtual void* log4cxx::db::ODBCAppender::getConnection(log4cxx::helpers::Pool&)':
odbcappender.cpp:240: error: cannot convert 'wchar_t*' to 'SQLWCHAR*' in initialization
odbcappender.cpp:248: error: cannot convert 'wchar_t*' to 'SQLWCHAR*' for argument '5' to 'SQLRETURN SQLDriverConnectW(void*, void*, SQLWCHAR*, SQLSMALLINT, SQLWCHAR*, SQLSMALLINT, SQLSMALLINT*, SQLUSMALLINT)'
 i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/db4.5 -march=core2 -mtune=core2 -O2 -fomit-frame-pointer -pipe -MT onlyonceerrorhandler.lo -MD -MP -MF .deps/onlyonceerrorhandler.Tpo -c onlyonceerrorhandler.cpp  -fPIC -DPIC -o .libs/onlyonceerrorhandler.o
make[3]: *** [odbcappender.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/db4.5 -march=core2 -mtune=core2 -O2 -fomit-frame-pointer -pipe -MT optionconverter.lo -MD -MP -MF .deps/optionconverter.Tpo -c optionconverter.cpp  -fPIC -DPIC -o .libs/optionconverter.o
 i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/db4.5 -march=core2 -mtune=core2 -O2 -fomit-frame-pointer -pipe -MT onlyonceerrorhandler.lo -MD -MP -MF .deps/onlyonceerrorhandler.Tpo -c onlyonceerrorhandler.cpp -o onlyonceerrorhandler.o >/dev/null 2>&1
 i686-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\" -DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_MBSRTOWCS=1 -DHAVE_WCSTOMBS=1 -DHAVE_SYSLOG=1 -DHAVE_FWIDE=1 -I. -I. -I../../../src/main/include -I../../../src/main/include -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/db4.5 -march=core2 -mtune=core2 -O2 -fomit-frame-pointer -pipe -MT optionconverter.lo -MD -MP -MF .deps/optionconverter.Tpo -c optionconverter.cpp -o optionconverter.o >/dev/null 2>&1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/log4cxx-0.10.0/work/apache-log4cxx-0.10.0/src/main/cpp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/log4cxx-0.10.0/work/apache-log4cxx-0.10.0/src/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/log4cxx-0.10.0/work/apache-log4cxx-0.10.0/src'
make: *** [all-recursive] Error 1
 * 
 * ERROR: dev-libs/log4cxx-0.10.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2092:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-libs:log4cxx-0.10.0:20090114-012240.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/log4cxx-0.10.0/temp/environment'.
 * 


Reproducible: Always

Steps to Reproduce:
1. USE="-* odbc" emerge -1 log4cxx





# emerge --info
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Portage 2.2_rc20 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.27-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r2-i686-Intel-R-_Core-TM-2_CPU_6400_@_2.13GHz-with-glibc2.0
Timestamp of tree: Mon, 12 Jan 2009 17:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r4, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
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.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-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/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=core2 -mtune=core2 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/mnt/stuff/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/vmware /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="S3TC X Xaw3d a52 aac accessibility acl acpi ada aim aimextras akode allegro alsa amarok amazon amr aotuv applet arts asf async avahi berkdb bidi bzip2 cairo canna cdparanoia cjk cli compositor cracklib crypt cscope cups curl cvs d dbus dedicated dga directfb doc dri dts dvd dvdnav dvdr emacs encode erandom escreen esd exif exiscan exiscan-acl fam fbcon ffmpeg fftw firefox flac font-server fortran freewnn fuse gadu gcj gdbm gif glib glitz glut gnome gnutls gpgme gpm gstreamer gtk gtkhtml guile hal haskell howl-compat hybrid iconv id3tag idea ieee1394 imagemagick imap immqt-bc ipod ipv6 irc isdnlog iso14755 ithreads java javascript jpeg kde kdeenablefinal kdehiddenvisibility kerberos kpathsea latex ldap libcaca libnotify lirc lj lm_sensors mad matroska mbox meanwhile midi mikmod mmap mmx mono mozcalendar mozsvg mp3 mpeg mpi msn mudflap mule multitarget music musicbrainz nat ncurses netmeeting network networking new-login nls nptl nptlonly nsplugin ntlm nvidia objc ocaml odbc offensive ogg opengl openmp oss pam pascal pcre pdf perl pertty plotutils png povray pppd python qt3 qt4 quicktime quotes rc5 rdesktop readline realmedia reflection regex rss rtc ruby samba sametime sasl screen sdl session slang smime sndfile spell spf spl sse sse2 ssl ssse3 subversion svg svga sysfs tcpd tetex theora threads tiff timidity tk transparency truetype unicode usb uudeview v4l v4l2 vesa vim-syntax visualization vorbis win32codecs wmf wmp x264 x86 xcb xchatdccserver xcomposite xgetdefault xine xinerama xorg xrandr xscreensaver xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="emu10k1, bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nvidia nv vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-02-24 12:49:19 UTC
Applied upstream patch from $url to fix this.

+  24 Feb 2010; Samuli Suominen <ssuominen@gentoo.org> log4cxx-0.10.0.ebuild,
+  +files/log4cxx-0.10.0-unixODBC.patch:
+  Fix building with unixODBC wrt #254920, thanks to David Klempner for
+  reporting.