vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I've downloaded the 64bit gcc compiler since the mysql installed is the 64bit option but now I'm getting the following error #./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/ usr/local/mysql configure:60026: checking for mysql_errno in -lmysqlclient configure:60045: gcc -o conftest -I/usr/local/include -mgnu-ld - D_XOPEN_SOURCE_EXTENDED -L/usr/local/mysql/lib -L/usr/local/mysql/lib - L/usr/local/lib -L/usr/local/lib -L/usr/local/lib conftest.c - lmysqlclient -lz -lm -lnsl -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 1>&5 ld: Mismatched ABI (not an ELF file) for -lxml2 Fatal error. collect2: ld returned 1 exit status #gcc -v Using built-in specs. Target: hppa64-hp-hpux11.11 Configured with: /tmp/gcc-4.2.1.tar.gz/gcc-4.2.1/configure -- host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64- hp-hpux11.11 --prefix=/opt/hp-gcc64-4.2.1 --with-gnu-as --without-gnu- ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable- languages=c,c++ Thread model: posix gcc version 4.2.1 # #/usr/local/mysql/bin/mysql --version /usr/local/mysql/bin/mysql Ver 14.12 Distrib 5.0.37, for hp-hpux11.11 (hppa2.0w) using readline 5.0 # anyideas? I've searched all over and haven't found anything on t'internet. thanks Byron |
| |||
| byron wrote: > I've downloaded the 64bit gcc compiler since the mysql installed is > the 64bit option but now I'm getting the following error > > #./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/ > usr/local/mysql > > configure:60026: checking for mysql_errno in -lmysqlclient > configure:60045: gcc -o conftest -I/usr/local/include -mgnu-ld - > D_XOPEN_SOURCE_EXTENDED -L/usr/local/mysql/lib -L/usr/local/mysql/lib - > L/usr/local/lib -L/usr/local/lib -L/usr/local/lib conftest.c - > lmysqlclient -lz -lm -lnsl -lxml2 -lz -liconv -lm -lxml2 -lz -liconv > -lm 1>&5 > ld: Mismatched ABI (not an ELF file) for -lxml2 > Fatal error. > collect2: ld returned 1 exit status > > #gcc -v > Using built-in specs. > Target: hppa64-hp-hpux11.11 > Configured with: /tmp/gcc-4.2.1.tar.gz/gcc-4.2.1/configure -- > host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64- > hp-hpux11.11 --prefix=/opt/hp-gcc64-4.2.1 --with-gnu-as --without-gnu- > ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable- > languages=c,c++ > Thread model: posix > gcc version 4.2.1 > # > > #/usr/local/mysql/bin/mysql --version > /usr/local/mysql/bin/mysql Ver 14.12 Distrib 5.0.37, for hp-hpux11.11 > (hppa2.0w) using readline 5.0 > # > > anyideas? I've searched all over and haven't found anything on > t'internet. > > thanks > Byron > > Offhand I would say your xml2 library is not the correct format for your compiler. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
| |||
| > > #/usr/local/mysql/bin/mysql --version > > /usr/local/mysql/bin/mysql Ver 14.12 Distrib 5.0.37, for hp-hpux11.11 > > (hppa2.0w) using readline 5.0 > > # > > > > anyideas? I've searched all over and haven't found anything on > > t'internet. > Offhand I would say your xml2 library is not the correct format for > your compiler. Sounds like something worth checking via the file command. PA2.0W implies 64-bit so the /usr/local/mysql/bin/mysql binary and anything it has as a dependency is likely 64-bit (one cannot mix 32-bit and 64-bit objects in the same running image). The HP ANSI C compiler defaults to making a 32-bit binary, even on a system running a 64-bit kernel. I don't use gcc on UX so I'm not sure if a purportedly 64-bit gcc compiler produces 64-bit objects by default or not, but I suppose a quick "Hello World" test could check that via the file command on the resulting a.out. rick jones -- portable adj, code that compiles under more than one compiler these opinions are mine, all mine; HP might not want them anyway... feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... |
| |||
| Jerry Stuckle wrote: > byron wrote: >> I've downloaded the 64bit gcc compiler since the mysql installed is >> the 64bit option but now I'm getting the following error >> >> #./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/ >> usr/local/mysql >> >> configure:60026: checking for mysql_errno in -lmysqlclient >> configure:60045: gcc -o conftest -I/usr/local/include -mgnu-ld - >> D_XOPEN_SOURCE_EXTENDED -L/usr/local/mysql/lib -L/usr/local/mysql/lib - >> L/usr/local/lib -L/usr/local/lib -L/usr/local/lib conftest.c - >> lmysqlclient -lz -lm -lnsl -lxml2 -lz -liconv -lm -lxml2 -lz -liconv >> -lm 1>&5 >> ld: Mismatched ABI (not an ELF file) for -lxml2 >> Fatal error. >> collect2: ld returned 1 exit status >> > > Offhand I would say your xml2 library is not the correct format for your > compiler. > Not really the compiler I think -- but that's definitely a sign that xml2 is a 32-bit library which he's trying to link in with a 64-bit compilation [being 11.11 this is PA, and PA 32-bit is SOM while 64-bit is ELF so that's really clear here...] Byron -- see if you can't get a 64-bit xml2 library or recompile it as 64-bit. [Side comment -- how many times does this crazy thing need to have /usr/local/lib in the link path.. as well as specifying the math library 3 different times!] Don |
| |||
| On Nov 8, 8:21 pm, Don Morris <dgmor...@earthlink.net> wrote: > Jerry Stuckle wrote: > > byron wrote: > >> I've downloaded the 64bit gcc compiler since the mysql installed is > >> the 64bit option but now I'm getting the following error > > >> #./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/ > >> usr/local/mysql > > >> configure:60026: checking for mysql_errno in -lmysqlclient > >> configure:60045: gcc -o conftest -I/usr/local/include -mgnu-ld - > >> D_XOPEN_SOURCE_EXTENDED -L/usr/local/mysql/lib -L/usr/local/mysql/lib - > >> L/usr/local/lib -L/usr/local/lib -L/usr/local/lib conftest.c - > >> lmysqlclient -lz -lm -lnsl -lxml2 -lz -liconv -lm -lxml2 -lz -liconv > >> -lm 1>&5 > >> ld: Mismatched ABI (not an ELF file) for -lxml2 > >> Fatal error. > >> collect2: ld returned 1 exit status > > > Offhand I would say your xml2 library is not the correct format for your > > compiler. > > Not really the compiler I think -- but that's definitely a sign that > xml2 is a 32-bit library which he's trying to link in with a 64-bit > compilation [being 11.11 this is PA, and PA 32-bit is SOM while > 64-bit is ELF so that's really clear here...] > > Byron -- see if you can't get a 64-bit xml2 library or recompile it as > 64-bit. [Side comment -- how many times does this crazy thing need to > have /usr/local/lib in the link path.. as well as specifying the math > library 3 different times!] > > Don Thanks all for your suggestions I downloaded libxml2-2.6.30-src-11.11.tar from hp's porting site http://hpux.connect.org.uk/hppd/hpux...ibxml2-2.6.30/ however, now I get an error that my GCC compiler is not ANSI compliant...a can of worms has been opened libxml2-2.6.30 #./configure. .... .... "checking for unistd.h... yes checking for string.h... (cached) yes configure: error: Compiler not ANSI compliant" I've tried setting CFLAGS to -ansi but it still fails to build. |
| ||||
| byron <byronical@gmail.com> wrote: > I downloaded libxml2-2.6.30-src-11.11.tar from hp's porting site > http://hpux.connect.org.uk/hppd/hpux...ibxml2-2.6.30/ > however, now I get an error that my GCC compiler is not ANSI > compliant...a can of worms has been opened See, that is what you get for not using HP's compilers > libxml2-2.6.30 #./configure. > ... > ... > "checking for unistd.h... yes > checking for string.h... (cached) yes > configure: error: Compiler not ANSI compliant" > I've tried setting CFLAGS to -ansi but it still fails to build. I'd go into the configure script and find that error message if possible and see what it does to determine ANSI compliance. Might want to triple check that it is finding gcc and not the bundled HP compiler. rick jones -- a wide gulf separates "what if" from "if only" these opinions are mine, all mine; HP might not want them anyway... feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH... |
| Thread Tools | |
| Display Modes | |
|
|