Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132492 - libodbc++ ebuild update
Summary: libodbc++ ebuild update
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-06 13:12 UTC by Stefan de Konink
Modified: 2010-02-07 22:33 UTC (History)
0 users

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


Attachments
The ebuild (libodbc++-0.2.4_pre3.ebuild,1.99 KB, text/plain)
2006-05-06 13:14 UTC, Stefan de Konink
Details
The updated patch (libodbc++-0.2.4_pre3-gcc41.patch,356 bytes, patch)
2006-05-06 13:15 UTC, Stefan de Konink
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan de Konink 2006-05-06 13:12:12 UTC
There is a prerelease of libodbc++, and this ebuild updates for libtoolize problems. And the patch is updated too.
Comment 1 Stefan de Konink 2006-05-06 13:14:57 UTC
Created attachment 86303 [details]
The ebuild
Comment 2 Stefan de Konink 2006-05-06 13:15:26 UTC
Created attachment 86304 [details, diff]
The updated patch
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-13 00:26:52 UTC
It fails to build.

cd .. && \
	  CONFIG_HEADERS= CONFIG_LINKS= \
	  CONFIG_FILES=isql++/Makefile /bin/sh ./config.status
config.status: creating isql++/Makefile
config.status: executing default-1 commands
make[2]: Leaving directory `/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3-build/isql++'
make[2]: Entering directory `/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3-build/isql++'
source='/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/isql++/isql++.cpp' object='isql++.o' libtool=no \
	depfile='.deps/isql++.Po' tmpdepfile='.deps/isql++.TPo' \
	depmode=gcc3 /bin/sh /dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/depcomp \
	i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/isql++ -I.. -I/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/include -I../include  -I/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/src    -DIN_ODBCXX -D_GNU_SOURCE -march=athlon-xp -Os -pipe -DODBCXX_DISABLE_READLINE_HACK -c -o isql++.o `test -f /dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/isql++/isql++.cpp || echo '/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/isql++/'`/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/isql++/isql++.cpp
/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/isql++/isql++.cpp: In constructor `Isql::Isql(odbc::Connection*)':
/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3/isql++/isql++.cpp:275: error: invalid cast to function type `char**()()'
make[2]: *** [isql++.o] Error 1
make[2]: Leaving directory `/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3-build/isql++'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dev/shm/portage/libodbc++-0.2.4_pre3/work/libodbc++-0.2.4pre3-build'
make: *** [all] Error 2

!!! ERROR: dev-db/libodbc++-0.2.4_pre3 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 930:   Called src_compile
  libodbc++-0.2.4_pre3.ebuild, line 61:   Called die
Comment 4 Stefan de Konink 2006-05-13 06:07:41 UTC
Are you using the USE QT? And the updated ebuild with the patch?
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-13 12:39:36 UTC
USE=-qt here.
And the patch is applied.
Comment 6 Stefan de Konink 2006-05-13 12:59:24 UTC
Odd, works for me.

>>> Original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> dev-db/libodbc++-0.2.4_pre3 merged.

>>> No packages selected for removal by clean.

>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

Portage 2.1_pre10-r5 (default-linux/amd64/2005.1, gcc-3.4.6, glibc-2.3.5-r3, 2.6
.16-gentoo x86_64)
=================================================================
System uname: 2.6.16-gentoo x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre19
ccache version 2.4 [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2
sys-apps/sandbox:    1.2.18
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/2/share/config /usr/kde/3
/share/config /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/t
erminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://sunsite.infor
matik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/ge
ntoo "
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d
istfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/livesupport /usr/local/overlays/ebuildexcha
nge /usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 avi bitmap-fonts bzip2 cairo cli crypt cups dri dv eds
 emboss encode esd flac font-server foomaticdb fortran gif gstreamer gtk2 imlib 
ipv6 isdnlog jpeg kde lcms libsamplerate lzw lzw-tiff mad mp3 mpeg ncurses nls n
ptl nptlonly ogg opengl pam pcre pdflib perl pic png postgres pppd python quickt
ime readline reflection rtc session sndfile sox spell spl sqlite ssl svg tcpd th
eora tiff truetype truetype-fonts type1-fonts usb userlocales v4l v4l2 vorbis xm
l2 xorg xpm xprint xv xvid zlib elibc_glibc input_devices_mouse input_devices_ke
yboard kernel_linux userland_GNU video_cards_at3d video_cards_vesa video_cards_v
oodoo"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLA
GS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-05-13 13:10:33 UTC
Portage 2.1_pre10-r5 (!/usr/portage/profiles/default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r3, 2.6.16-rc6 i686)
=================================================================
System uname: 2.6.16-rc6 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.0_pre19
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -Os -pipe"
DISTDIR="/home/gentoo/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache collision-protect confcache cvs digest distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/home/gentoo/packages/newton-int"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/devel/gentoo-cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/overlays/migration-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib acl acpi aio alsa amd apache2 apm ares async automount avi berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo calendar caps cdb cdda cdr cgi clamav clearpasswd cli cpdflib crypt cscope ctype cups curl curlwrappers daap divx4linux doc dri dts dv dvd dvdr dvdread dynagraph emboss encode ethereal examples exif expat f77 fam fame fastcgi ffmpeg fftw flac flash foomaticdb fortran fpx frxp gcj gd gdbm geoip gif glitz glx gmp gnokii gnults gnuplot gnutls gpm graphviz gs gstreamer gzip hpn ical imap imlib innodb insecure-savers ipalias ipod ipv6 irda isdnlog java javadoc jbig joystick jpeg jpeg2k lcms ldap libwww linuxthreads-tls lirc live logitech-mouse lzo mad maildir mbox mcal md5sum mikmod mjpeg mmx mmxext mod motif mozilla mozplugin mp3 mpeg mpm-prefork multicall musicbrainz mysql ncurses network nptl nsplugin numeric nvidia objc offensive ogg oggvorbis openexr opengl osd pam pcap pcre pda pdf pdflib perl pic plotutils png pnp ppds pppd python qmail quicktime quotas rdesktop readline real reflection rtc ruby samba scanner screen sdl session shout skins slang slp sms snmp socks5 speex spell spl sqlite sse ssl stream svg swat syslog t1lib tcltk tetex theora tiff truetype truetype-fonts type1 type1-fonts ungif unicode usb userlocales utf8 v4l v4l2 vcd vhosts vidix vlm vorbis win32codecs winbind wmf wxwindows xanim xcomposite xinerama xml xml2 xmms xorg xosd xrandr xscreensaver xv xvid xvmc yv12 zeroconf zlib elibc_glibc input_devices_dmc input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_void input_devices_wacom kernel_linux userland_GNU video_cards_apm video_cards_ati video_cards_dummy video_cards_fbdev video_cards_gflrx video_cards_mga video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vga video_cards_vesa"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 Stefan de Konink 2006-05-13 13:22:17 UTC
Wow, just copyed over this ebuild to my Athlon and indeed got the same issue.

Both machines have the same GCC versions.


Taken from the code:

  /* readline.h doesn't contain proper function prototypes, which makes
     newer gcc versions (>=2.95) barf with certain flags. This could
     help the situation.
  */
  extern char* rl_readline_name;

  typedef char** (*CPPFunction)(char*,char*);

  extern CPPFunction rl_completion_entry_function;


Failing line:

  rl_completion_entry_function=(CPPFunction)noCompletion;
Comment 9 Oleg Mikheev 2010-02-07 22:33:47 UTC
Am I having the same issue 4 years after this bug was entered?

Here's what it says:

/var/tmp/portage/dev-db/libodbc++-0.2.3-r2/work/libodbc++-0.2.3/isql++/isql++.cpp: In constructor ‘Isql::Isql(odbc::Connection*)’:
/var/tmp/portage/dev-db/libodbc++-0.2.3-r2/work/libodbc++-0.2.3/isql++/isql++.cpp:275: error: invalid cast to function type ‘char** ()()’


$ emerge --info =dev-db/libodbc++-0.2.3-r2
Portage 2.1.7.16 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32.7 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32.7-i686-Intel-R-_Celeron-R-_M_processor_1.00GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 30 Jan 2010 09:00:24 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.5.4-r3, 2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv jpeg ldap libnotify mad midi mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i810 intel" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS