Summary: | unixODBC fails to compile (ld segfaults) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jan Kroken <jankr> |
Component: | New packages | Assignee: | Ryan Phillips (RETIRED) <rphillips> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | pauldv, veldy, WafflesMcDuff |
Priority: | High | ||
Version: | 1.4_rc2 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
odbc.diff (diff to ebuild)
updated ebuild that doesn't fail sandbox |
Description
Jan Kroken
2003-01-03 11:01:14 UTC
FWIW, I get this too. USE flags: USE="-3dfx 3dnow -aalib -acl -afs -alsa -apm -arts -atlas avi berkdb -bonobo -canna -cdr -cjk crypt -cups dga directfb doc -dvd encode -esd -evo fbcon -flash -freewnn -gb gd gdbm ggi -ggz gif -gnome -gphoto2 -gpm gtk -gtk2 gtkhtml -guile -icc -icc-pgo imap imlib -innodb -ipv6 java jikes jpeg -junit -kde -kerberos -lcms -ldap -leim libg++ -libgda libwww matrox -maildir mbox mikmod mmx motif mozilla mpeg -mule -mysql -nas ncurses nls nocardbus -oci8 odbc ogg oggvorbis opengl oss pam -pcmcia -pda pdflib perl pic -plotutils png pnp postgres python qt qtmt quicktime readline -ruby samba -sasl -scanner sdl -slang -slp -snmp -socks5 spell -sse ssl -static svga tcltk tcpd -tetex tiff truetype -trusted -voodoo3 -wavelan wmf X xface xml2 xmms xv -zeo zlib" CHOST="i586-pc-linux-gnu" CFLAGS="-march=k6-2 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" The problem is in the configure script. This script checks for functions in the c library with the wrong function. configure.in needs to be changed according to the following sed script: cp configure.in configure.orig sed -e "s:AC_CHECK_LIB *( *c *,:AC_CHECK_FUNC(:" configure.orig >configure.in I did get it ok yesterday, but today I could find out how to do a proper automake. It complains about a missing acinclude.in, so maybe some automake wizzard could take a look at performing a good automake. The problem is basically all those -c 's. If the -lc is removed, everything works. Created attachment 7015 [details, diff]
odbc.diff (diff to ebuild)
I made a patch for the ebuild that corrects the configure script and has
unixODBC run as it should.
Created attachment 7016 [details, diff]
updated ebuild that doesn't fail sandbox
An updated diff that also repairs the sandbox violations.
The patch generates some warnings, though. I'm not an automake wizard, so I don't
know if it's of any signifigance or not.
You should update your `aclocal.m4' by running aclocal.
aclocal: configure.in: 8: macro `AM_ACLOCAL_INCLUDE' not found in library
You should update your `aclocal.m4' by running aclocal.
libtoolize: `config.guess' exists: use `--force' to overwrite
libtoolize: `config.sub' exists: use `--force' to overwrite
libtoolize: `ltmain.sh' exists: use `--force' to overwrite
ls: ./acinclude.m4: No such file or directory
autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_YYTEXT_POINTER
***BUG in Autoconf--please report*** AC_YYTEXT_POINTER
***BUG in Autoconf--please report*** AC_YYTEXT_POINTER
>>> Source unpacked.
Anyway, the fix seems to work. The sed thing can be replaced by `dosed`, btw.
Ryan; does this warrant a fix in Portage? Even though we are freezed, this is
supposed to be a stable package....
I know it generates those warnings. I don't believe they are problematic although I'm not an automake/conf wizzard either. It seems to work, but maybe some automake wizzard should take a look at making it behave better. The patch file is working correctly. It throws some warnings, but it is working correctly. Why not putting it in the portage tree? unixODBC-2.0.6 in portage still fails to compile without it. *** Bug 15165 has been marked as a duplicate of this bug. *** committed |