From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerardo Javier Oliva Galvan To: gcc@gnu.org, gcc@gcc.gnu.org Subject: Gcc 32-bits or 64-bits Date: Tue, 27 Nov 2001 09:06:00 -0000 Message-ID: <20011127170559.36756.qmail@web9503.mail.yahoo.com> X-SW-Source: 2001-11/msg01353.html Message-ID: <20011127090600.IaW0mi8sKJTw0tTlx5UdgXIAR-pHJdPJM-jzLRFQyIQ@z> Hi Usually i ran gcc generated on HP-UX porting center (hpux.cs.utah.edu, or its mirrors). People of our staff ran into a problem because he get an error like this: ************************************************************************************* g++ -DANSI -I/inc21_ora01/app/oracle/product/9.0.1/precomp/public -c tt.trans.cpp In file included from tt.trans.cpp:22: /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28: warning: `__va__list' redefined /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is the location of the previ ous definition g++ -DANSI -I/inc21_ora01/app/oracle/product/9.0.1/precomp/public -c tt.cpp In file included from tt.cpp:21: /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: `__va__list' redefined /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:26: warning: this is the location of the prev ious definition In file included from tt.cpp:22: /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdlib.h:28: warning: `__va__list' redefined /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/stdio.h:30: warning: this is the location of the previ ous definition In file included from tt.cpp:20: /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:51: warning: declaration of `int memcmp(const void *, const void *, long unsigned int)' /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:51: warning: conflicts with built-in declarat ion `int memcmp(const void *, const void *, unsigned int)' /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:116: warning: declaration of `void * memcpy(v oid *, const void *, long unsigned int)' /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:116: warning: conflicts with built-in declara tion `void * memcpy(void *, const void *, unsigned int)' /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:133: warning: declaration of `size_t strlen(c onst char *)' /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.3/include/string.h:133: warning: conflicts with built-in declara tion `unsigned int strlen(const char *)' g++ -o tt.trans tt.trans.o tt.o -lenvironment -lfileaudit -lvaf -L/inc21_home/ltelco/lib -L/inc21_ora01/ app/oracle/product/9.0.1/lib/ -lclntsh `cat /inc21_ora01/app/oracle/product/9.0.1/lib/ldflags` `cat /inc21_ora 01/app/oracle/product/9.0.1/lib/sysliblist` -lm -lpthread -lpthread /usr/bin/ld: /inc21_ora01/app/oracle/product/9.0.1/lib//libclntsh.sl: Mismatched ABI. 64-bit PA shared library f ound in 32-bit link. collect2: ld returned 1 exit status *** Error exit code 1 Stop. ************************************************************************************* Since i'm the sysadmin have to investigate several posibilities. We were using gcc 3.0.1 and downgraded to 2.95.3 One posibility is a mix of 32-bit/64-bit software. My boss is bugging me to see if the compiler is compiled for 32-bit or 64-bit environment. Is this possible? is there a way to know how the compiler is running? In your experience have you seen this kind of problem? We opened a call with oracle , they have a week on this and i wan to finis them all. Regards from Mexico Blessings Gerardo Oliva ===== Salu2 y que Dios te bendiga Gerardo __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1