- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ld: (Warning) Ignore library libCommon.a with ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2013 12:36 PM - last edited on 05-19-2013 07:49 PM by Maiko-I
05-18-2013 12:36 PM - last edited on 05-19-2013 07:49 PM by Maiko-I
I got the following errors when compiling a module linking another module's libraries.
My machine info is lasted below:
aCC -v +DD64 +DSitanium2 -D_HP_SOURCE +z -z -ext +eh -D_REENTRANT -g a.o b.o -Llib -lCommon -lNet -lrwtool -o result
libCommon.a =>
The compiling/ld commands for generating libCommon.a without a problem is listed below:
aCC -v +DD64 +DSitanium2 -DUNIX +DA2.0W -O -D_HP_SOURCE +z -I../include
-c Common.C
/opt/aCC/lbin/ecom -architecture 64 -ia64abi all -inst compiletime -sysdir /usr/include -test namespaces -koenig_lookup on -ansi_for_scope on -inline_power 2 -
link_type dynamic -fpeval float -fpevaldec _Decimal32 -tls_dyn on -xmath_ielf_path /opt/aCC/lib/hpux64/libmielf -target_os 11.31 -scheduler itanium2 -I../include --sys_include /opt/aCC/include_std --sys_include /opt/aCC/include_std/iostream_compat --sys_include /usr/include --sys_include /usr -D_HP_IA64ABI -D__BUILTIN_MILLI -D_BIND_LIBCALLS -D_Math_errhandling=MATH_ERREXCEPT -D__hpux -D__unix -D__ia64=1 -D__ia64__=1 -D_BIG_ENDIAN=1 -D__STDCPP__ -D_HP_NAMESPACE_STD -D_LP64 -D__LP64__ -D__cplusplus=199711L -D_INCLUDE__STDC_A1_SOURCE -D__HP_aCC=62500 -D_HP_INSTANTIATE_T_IN_LIB -D_INLINE_ASM -D_FLT_EVAL_METHOD=0 D_DEC_EVAL_METHOD=0 -DUNIX -D_HP_SOURCE -ucode hdriver=optlevel%2% -plusolistoption -Ol06all! -plusolis
toption -Ol12indirect! -plusolistoption -Ol13moderate! -plusooption -Oq02,al,ag,
cn,sz,ic,vo,Mf,Po,es,rs,Rf,Pr,sp,In,cl,om,vc,pi,fa,Pe,rr,pa,pv,nf,cp,Lx,Pg,ug,lu
,lb,uj,dn,sg,pt,kt,em,np,ar,rp,dl,Fs,bp,wp,Pc,mp,lr,cx,cr,pi,so,Rc,fa,ft,fe,ap,s
t,lc,Bl,sr,Qs,do,ib,pl,sd,ll,rl,dl,Lt,ol,fl,lm,ts,rd,Dp,If! Common.C
Solved! Go to Solution.
- Tags:
- ABI mismatch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2013 10:34 PM
05-18-2013 10:34 PM
Re: ld: (Warning) Ignore library libCommon.a with bad machine type 15 and ld: Mismatched ABI
What does "file lib/libCommon.a" show? What's in that archive?
How did you create that archive? With /usr/ccs/bin/ar?
>aCC -v +DD64 a.o b.o -Llib -lCommon -lNet -lrwtool
Instead of -lrwtool you should have -lrwtool_v2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2013 04:52 PM
05-19-2013 04:52 PM
Re: ld: (Warning) Ignore library libCommon.a with bad machine type 15 and ld: Mismatched ABI
Thanks for the reply. The libNet.a was generated from compiled Common.o as listed below without a problem.
ar rvu libNet.a Common.o
ar t libNet.a
Common.o (BTW, Common.o include <sys/socket.h>
I replaced the -lrwtool with -lrwtool_v2 to generate the binary result, the same warning and error were reported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2013 09:23 PM
05-19-2013 09:23 PM
Re: ld: (Warning) Ignore library libCommon.a with bad machine type 15 and ld: Mismatched ABI
>ar rvu libNet.a Common.o
Again, which ar(1) did you use? What does this show?
$ whence ar
You must not use a foreign devil ar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2013 08:04 AM
05-20-2013 08:04 AM
Re: ld: (Warning) Ignore library libCommon.a with bad machine type 15 and ld: Mismatched ABI
whence ar =>
/usr/bin/ar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2013 09:19 AM - edited 05-20-2013 09:21 AM
05-20-2013 09:19 AM - edited 05-20-2013 09:21 AM
Re: ld: (Warning) Ignore library libCommon.a with bad machine type 15 and ld: Mismatched ABI
>/usr/bin/ar
Assuming that is a symlink to /usr/ccs/bin/ar, what do these show?
$ file lib/libCommon.a
$ /usr/ccs/bin/elfdump -f -g lib/libCommon.a
Have you removed and recreated libCommon.a?
>ar rvu libNet.a Common.o
What's in libCommon.a?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2013 10:13 AM
05-20-2013 10:13 AM
Re: ld: (Warning) Ignore library libCommon.a with bad machine type 15 and ld: Mismatched ABI
ls -l /usr/bin/ar
lrwxr-xr-x 1 bin bin 15 Aug 10 2010 /usr/bin/ar@ -> /usr/ccs/bin/ar
Actually I have two .a file created with the same warning and error displayed. I always do "make clean" before creating them.
file libNet.a
libNet.a: archive file
file libCommon.a
libCommon.a: archive file
ar t libNet.a
Connection.o
/usr/ccs/bin/elfdump -f -g libNet.a
libNet.a:
*** Archive Symbol Table ***
1174 _ZN21Connection_Err_SocketC1EPc
1174 _ZN21Connection_Err_SocketC3EPc
1174 _ZN21Connection_Err_SocketC2EPc
1174 _ZN18Connection_Err_SvcC1EPc
1174 _ZN18Connection_Err_SvcC3EPc
1174 _ZN18Connection_Err_SvcC2EPc
1174 _ZN18Connection_Err_SecC1EPc
1174 _ZN18Connection_Err_SecC3EPc
1174 _ZN18Connection_Err_SecC2EPc
1174 _ZN10ConnectionC1Ev
1174 _ZN10ConnectionC2Ev
1174 _ZN10ConnectionD1Ev
1174 _ZN10ConnectionD0Ev
1174 _ZN10ConnectionD2Ev
1174 _ZN10Connection11receiveDataEPci
1174 _ZN10Connection17simpleReceiveDataEPci
1174 _ZN10Connection19setErrorExplanationEPc
1174 _ZN10Connection19getErrorExplanationEv
1174 _ZN10Connection8sendDataEPhi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2013 11:26 AM
05-20-2013 11:26 AM
Re: ld: (Warning) Ignore library libCommon.a with bad machine type 15 and ld: Mismatched ABI
Also please do this:
/usr/ccs/bin/elfdump -f -g libCommon.a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2013 01:35 PM
05-20-2013 01:35 PM
Re: ld: (Warning) Ignore library libCommon.a with bad machine type 15 and ld: Mismatched ABI
Thanks Dennis. Please see attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2013 06:19 PM
05-20-2013 06:19 PM
Re: ld: (Warning) Ignore library libCommon.a with bad machine type 15 and ld: Mismatched ABI
>ld: (Warning) Ignore library lib/libCommon.a with bad machine type 15
This error says that this archive has 64 bit PA objects in it.
Remove lib/libCommon.a and rebuild.
Are you doing anything tricky and using XPADE?
>Please see attached.
The -f output all has:
Machine: IPF
Flags: IA-64
I don't see:
Machine: PA-RISC
Flags: PA2.0
Do you still get that error?