<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>13166</bug_id>
          
          <creation_ts>2003-01-03 11:01 0000</creation_ts>
          <short_desc>unixODBC fails to compile (ld segfaults)</short_desc>
          <delta_ts>2003-02-07 17:03:12 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>1.4_rc2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jankr@ifi.uio.no</reporter>
          <assigned_to>rphillips@gentoo.org</assigned_to>
          <cc>pauldv@gentoo.org</cc>
    
    <cc>veldy@veldy.net</cc>
    
    <cc>WafflesMcDuff@aol.com</cc>

      

      
          <long_desc isprivate="0">
            <who>jankr@ifi.uio.no</who>
            <bug_when>2003-01-03 11:01:14 0000</bug_when>
            <thetext>This is the last lines of the output of emerge unixODBC:

E_LIBZ=1 -DHAVE_LIBPNG=1 -DSTDC_HEADERS=1 -DHAVE_MALLOC_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_PWD_H=1 -DHAVE_CRYPT_H=1 -DHAVE_LIMITS_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_LOCALE_H=1 -DHAVE_ALLOCA_H=1 
-DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SOCKET=1 
-DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_SETENV=1  -I. -I.  -I../include 
-I../libltdl    -march=athlon-tbird -O3 -pipe -pthread -c odbcinst.c
/bin/sh ../libtool --mode=link gcc  -march=athlon-tbird -O3 -pipe -pthread  
-o odbcinst  odbcinst.o ../odbcinst/libodbcinst.la    
../libltdl/libltdlc.la   -lc -lc -lc -lc 
mkdir .libs
gcc -march=athlon-tbird -O3 -pipe -pthread -o .libs/odbcinst odbcinst.o 
../odbcinst/.libs/libodbcinst.so -lc -lc -lc -lc -lc -lc -lc -lc -lc -lc 
-lc -lc -lc -lc -lc -lc -ldl -lc -lc -lc -lc ../libltdl/.libs/libltdlc.al 
-ldl -lc -lc -lc -lc
creating odbcinst
gcc -DPACKAGE=\&quot;unixODBC\&quot; -DVERSION=\&quot;2.0.6\&quot; -DYYTEXT_POINTER=1 
-DHAVE_LIBCRYPT=1 -DHAVE_LIBM=1 -DHAVE_READLINE=1 -DTIME_WITH_SYS_TIME=1 
-DHAVE_SYS_TIME_H=1 -DSIZEOF_LONG=4 -DHAVE_STRCASECMP=1 
-DHAVE_STRNCASECMP=1 -DHAVE_LIBPTHREAD=1 -D_REENTRANT=1 
-DHAVE_LOCALTIME_R=1 -DHAVE_LIBC=1 -DHAVE_LIBC=1 -DHAVE_LIBC=1 
-DHAVE_LIBC=1 -DHAVE_SNPRINTF=1 -DNEED_SEMUNDO_UNION=1 -DCOLLECT_STATS=1 
-DHAVE_LIBZ=1 -DHAVE_LIBPNG=1 -DSTDC_HEADERS=1 -DHAVE_MALLOC_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_PWD_H=1 -DHAVE_CRYPT_H=1 -DHAVE_LIMITS_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_LOCALE_H=1 -DHAVE_ALLOCA_H=1 
-DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1 -DHAVE_PUTENV=1 -DHAVE_SOCKET=1 
-DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DHAVE_SETENV=1  -I. -I.  -I../include 
-I../libltdl    -march=athlon-tbird -O3 -pipe -pthread -c isql.c
/bin/sh ../libtool --mode=link gcc  -march=athlon-tbird -O3 -pipe -pthread  
-o isql  isql.o ../DriverManager/libodbc.la   ../odbcinst/libodbcinst.la    
  -lreadline -lcurses -lc -lc -lc -lc 
gcc -march=athlon-tbird -O3 -pipe -pthread -o .libs/isql isql.o 
../DriverManager/.libs/libodbc.so -lc -lc -lc -lc -lc -lc -lc -lc -lc -lc 
-lc -lc -lc -lc -lc -lc -lc -lc -lc -lc -ldl -lc -lc -lc -lc 
../odbcinst/.libs/libodbcinst.so -lc -lc -lc -lc -lc -lc -lc -lc -lc -lc 
-lc -lc -lc -lc -lc -lc -ldl -lc -lc -lc -lc -lreadline -lcurses -lc -lc 
-lc -lc
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make[1]: *** [isql] Error 1
make[1]: Leaving directory 
`/var/tmp/portage/unixODBC-2.0.6/work/unixODBC-2.0.6/exe&apos;
make: *** [all-recursive] Error 1

!!! ERROR: dev-db/unixODBC-2.0.6 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! (no error message)



...and here are my use flags:

USE=&quot;3dnow apache2 arts avi bonobo -canna cdr -cjk crypt cups dga
     doc dvd encode esd evo -freewnn -gb gd gdbm ggi ggz gif -gnome
     gpm gtk2 guile -icc imap imlib innodb java jikes jpeg junit
     -kde -ldap libwww mbox mikmod mmx -motif mozilla mpeg -mule
     mysql ncurses -oav -oci8 odbc oggvorbis opengl oss pam -pcmcia
     -pda pdflib perl plotutils png postgres python qtmt quicktime
     readline ruby samba -scanner sdl slang spell ssl svga tcltk tcpd
     tetex tiff truetype wmf X xml2 xmms xv zeo zlib x86&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>volkris@gmail.com</who>
            <bug_when>2003-01-05 00:55:17 0000</bug_when>
            <thetext>FWIW, I get this too.
USE flags:

USE=&quot;-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&quot;

CHOST=&quot;i586-pc-linux-gnu&quot;
CFLAGS=&quot;-march=k6-2 -O3 -pipe -fomit-frame-pointer&quot;
CXXFLAGS=&quot;${CFLAGS}&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pauldv@gentoo.org</who>
            <bug_when>2003-01-05 10:11:24 0000</bug_when>
            <thetext>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 &quot;s:AC_CHECK_LIB *( *c *,:AC_CHECK_FUNC(:&quot; configure.orig &gt;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 &apos;s. If the -lc is removed, everything works.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pauldv@gentoo.org</who>
            <bug_when>2003-01-06 06:58:23 0000</bug_when>
            <thetext>Created an attachment (id=7015)
odbc.diff (diff to ebuild)

I made a patch for the ebuild that corrects the configure script and has
unixODBC run as it should.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pauldv@gentoo.org</who>
            <bug_when>2003-01-06 07:59:26 0000</bug_when>
            <thetext>Created an attachment (id=7016)
updated ebuild that doesn&apos;t fail sandbox

An updated diff that also repairs the sandbox violations.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>styx@gentoo.org</who>
            <bug_when>2003-01-12 08:17:54 0000</bug_when>
            <thetext>The patch generates some warnings, though. I&apos;m not an automake wizard, so I don&apos;t 
know if it&apos;s of any signifigance or not. 
 
You should update your `aclocal.m4&apos; by running aclocal. 
aclocal: configure.in: 8: macro `AM_ACLOCAL_INCLUDE&apos; not found in library 
You should update your `aclocal.m4&apos; by running aclocal. 
libtoolize: `config.guess&apos; exists: use `--force&apos; to overwrite 
libtoolize: `config.sub&apos; exists: use `--force&apos; to overwrite 
libtoolize: `ltmain.sh&apos; exists: use `--force&apos; 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 
&gt;&gt;&gt; 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.... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pauldv@gentoo.org</who>
            <bug_when>2003-01-12 08:41:38 0000</bug_when>
            <thetext>I know it generates those warnings. I don&apos;t believe they are problematic
although I&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>yves.vandenhove@pandora.be</who>
            <bug_when>2003-02-06 02:00:33 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-02-06 02:42:14 0000</bug_when>
            <thetext>*** Bug 15165 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rphillips@gentoo.org</who>
            <bug_when>2003-02-07 17:03:12 0000</bug_when>
            <thetext>committed</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>7015</attachid>
            <date>2003-01-06 06:58 0000</date>
            <desc>odbc.diff (diff to ebuild)</desc>
            <filename>odbc.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHVuaXhPREJDLTIuMC42LmVidWlsZAkyMDAzLTAxLTA2IDEzOjU2OjQzLjAwMDAwMDAwMCAr
MDEwMAorKysgdW5peE9EQkMtMi4wLjYtcjEuZWJ1aWxkCTIwMDMtMDEtMDYgMTM6NTc6MTcuMDAw
MDAwMDAwICswMTAwCkBAIC0yMSw2ICsyMSwxNiBAQAogCWNkICR7U30KIAljcCBNYWtlZmlsZS5p
biBNYWtlZmlsZS5vcmlnCiAJc2VkIC1lICJzOnRvdWNoIDp0b3VjaCBcJHtERVNURElSfS86IiBN
YWtlZmlsZS5vcmlnID4gTWFrZWZpbGUuaW4KKwljcCBjb25maWd1cmUuaW4gY29uZmlndXJlLm9y
aWcKKwlzZWQgLWUgInM6QUNfQ0hFQ0tfTElCICooICpjICosOkFDX0NIRUNLX0ZVTkMoOiIgY29u
ZmlndXJlLm9yaWcgPmNvbmZpZ3VyZS5pbgorCWNkIGdPREJDQ29uZmlnCisJCWxpYnRvb2xpemUK
KwkJYWNsb2NhbAorCWNkIC4uCisJbGlidG9vbGl6ZQorCWF1dG9yZWNvbmYtMi4xMworCWFjbG9j
YWwKKwlhdXRvcmVjb25mLTIuMTMKIH0KIAogc3JjX2NvbXBpbGUoKSB7Cg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>7016</attachid>
            <date>2003-01-06 07:59 0000</date>
            <desc>updated ebuild that doesn&apos;t fail sandbox</desc>
            <filename>odbc.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHVuaXhPREJDLTIuMC42LmVidWlsZAkyMDAzLTAxLTA2IDE0OjEyOjQ3LjAwMDAwMDAwMCAr
MDEwMAorKysgdW5peE9EQkMtMi4wLjYtcjEuZWJ1aWxkCTIwMDMtMDEtMDYgMTQ6NTM6NTAuMDAw
MDAwMDAwICswMTAwCkBAIC0yMSw2ICsyMSwxNSBAQAogCWNkICR7U30KIAljcCBNYWtlZmlsZS5p
biBNYWtlZmlsZS5vcmlnCiAJc2VkIC1lICJzOnRvdWNoIDp0b3VjaCBcJHtERVNURElSfS86IiBN
YWtlZmlsZS5vcmlnID4gTWFrZWZpbGUuaW4KKwljcCBjb25maWd1cmUuaW4gY29uZmlndXJlLm9y
aWcKKwlzZWQgLWUgInM6QUNfQ0hFQ0tfTElCICooICpjICosOkFDX0NIRUNLX0ZVTkMoOiIgY29u
ZmlndXJlLm9yaWcgPmNvbmZpZ3VyZS5pbgorCWNkIGdPREJDQ29uZmlnCisJCWxpYnRvb2xpemUK
KwkJYWNsb2NhbAorCWNkIC4uCisJbGlidG9vbGl6ZQorCWFjbG9jYWwKKwlhdXRvcmVjb25mLTIu
MTMKIH0KIAogc3JjX2NvbXBpbGUoKSB7CkBAIC00Myw3ICs1Miw5IEBACiB9CiAKIHNyY19pbnN0
YWxsICgpIHsKLQltYWtlIERFU1RESVI9JHtEfSBpbnN0YWxsIHx8IGRpZQorCW1rZGlyIC1wICR7
RH0vZXRjL3VuaXhPREJDCisJbWFrZSBERVNURElSPSR7RH0gc3lzY29uZmRpcj0ke0R9L2V0Yy91
bml4T0RCQyBpbnN0YWxsIHx8IGRpZQorCXJtIC1yICR7RH0vdmFyCiAKIAlkb2RvYyBBVVRIT1JT
IENPUFlJTkcgQ2hhbmdlTG9nIE5FV1MgUkVBRE1FKgogCWNwIC1hIGRvYyAke0R9L3Vzci9zaGFy
ZS9kb2MvJHtQRn0vaHRtbAo=
</data>        

          </attachment>
    </bug>

</bugzilla>