I am trying to compile the dar-2.3.6 source code in AIX 5.3 using "g++ -maix64"
and could not able to run the 64 bit dar command successfully. I had copied
the dar dependency links below. Can you please help me to identify the problem?
bash-3.2# ldd dar
dar needs:
/opt/freeware/64/lib/libc.a(shr_64.o)
/usr/lib/libpthread.a(shr_xpg5_64.o)
/usr/lib/libnsl.a(shr_64.o)
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/ppc64/libstdc++.a(libstdc++.so.6)
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/ppc64/libgcc_s.a(shr.o)
/usr/sony/iTRx/siva/64bit/dec26/dar-2.3.6/src/libdar/.libs/libdar.a(libdar.so.4)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libpthreads.a(shr_xpg5_64.o)
/usr/lib/libtli.a(shr_64.o)
/usr/lib/libC.a(shr2_64.o)
/usr/lib/libC.a(shr3_64.o)
/opt/freeware/64/lib/libbz2.a(libbz2.so.1)
/opt/freeware/64/lib/libz.a(libz.so.1)
/opt/freeware/64/lib/libcrypto.a(libcrypto.so.0.9.7)
/opt/freeware/64/lib/libc.a(pse_64.o)
/usr/lib/libC.a(shrcore_64.o)
/usr/lib/libC.a(ansicore_64.o)
/opt/freeware/64/lib/libc..a(shr.o)
/usr/lib/libc_r.a(shr_64.o)
/usr/lib/libcrypt.a(shr.o)
libdar library dependency links
bash-3.2# ldd libdar.so.4
libdar.so.4 needs:
/usr/lib/libc.a(shr_64.o)
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/../../../libbz2..a(libbz2.so.1)
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/../../../libz.a(libz.so.1)
/usr/lib/libpthread.a(shr_xpg5_64.o)
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/../../../libcrypto.a(libcrypto.so.0.9..7)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libc.a(shr.o)
/usr/lib/libcrypt.a(shr.o)
bash-3.2#
truss dar command output:
kread(3, " . s v c _ i n s t r\0 s".., 4096) = 4096
klseek(3, 0, 1, 0x0FFFFFFFFFFFE5E0) = 0
klseek(3, 13589018, 0, 0x0FFFFFFFFFFFE5E0) = 0
kread(3, "\0\0\0\0\0\0 71C\0\0 i ®".., 4096) = 4096
klseek(3, 0, 1, 0x0FFFFFFFFFFFE600) = 0
klseek(3, 0, 1, 0x0FFFFFFFFFFFE5E0) = 0
klseek(3, 14572696, 0, 0x0FFFFFFFFFFFE5E0) = 0
kread(3, " . s y s _ c a l l _ r e".., 4096) = 4096
klseek(3, 0, 1, 0x0FFFFFFFFFFFE5E0) = 0
klseek(3, 13589270, 0, 0x0FFFFFFFFFFFE5E0) = 0
kread(3, "\0\0\0\0\0\0 8 0\0\0 j !"..,
4096) = 4096
klseek(3, 0, 1, 0x0FFFFFFFFFFFE600) = 0
klseek(3, 0, 1, 0x0FFFFFFFFFFFE5E0) = 0
klseek(3, 14580915, 0, 0x0FFFFFFFFFFFE5E0) = 0
kread(3, " s c _ t r a c e _ e n d".., 4096) = 4096
klseek(3, 0, 1, 0x0FFFFFFFFFFFE5E0) = 0
klseek(3, 13589306, 0, 0x0FFFFFFFFFFFE5E0) = 0
kread(3, "\0\0\0\0\0\0 8 P\0\0 j 4".., 4096) = 4096
klseek(3, 0, 1, 0x0FFFFFFFFFFFE600) = 0
klseek(3, 0, 1, 0x0FFFFFFFFFFFE5E0) = 0
klseek(3, 14555222, 0,
0x0FFFFFFFFFFFE5E0) = 0
kread(3, " v r s a v e _ p a t c h".., 4096) = 4096
klseek(3, 0, 1, 0x0FFFFFFFFFFFE5E0) = 0
klseek(3, 13589666, 0, 0x0FFFFFFFFFFFE5E0) = 0
kread(3, "\0\0\0\0\0\0 = \0\0 j Ù".., 4096) = 4096
klseek(3, 0, 1, 0x0FFFFFFFFFFFE600) = 0
klseek(3, 0, 1, 0x0FFFFFFFFFFFE5E0) = 0
klseek(3, 14581099, 0, 0x0FFFFFFFFFFFE5E0) = 0
kread(3, " c s c _ r e t _ h _ p u".., 4096) = 4096
klseek(3, 0, 1, 0x0FFFFFFFFFFFE5E0) = 0
klseek(3, 13589702, 0,
0x0FFFFFFFFFFFE5E0) = 0
kread(3, "\0\0\0\0\0\0 > (\0\0 j î".., 4096) = 4096
close(3) = 0
Received signal #4, SIGILL [default]
*** process killed ***
Thanks,
Sivakumar Selvam.
From: Sivakumar Selvam <sks2008-ur4TIblo6goN+BqQ9rBEUg@public.gmane.org>
To: "Area available for the evolution, usage, support, feature requests, concerning the libdar API (application Interface)" <dar-libdar_api-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Wednesday, 14 January, 2009 1:59:45 PM
Subject: Re: [Dar-libdar_api] linking 32 bit libdar to a 64 bit application on AIX 64 bit platform
Thanks for your reply. This help me to understand the dependency issues across 32/64 bit libraries.
I want to know the other one which has to do with compiling libdar in 64 bit OS. I don't know whether
I can compile the libdar source code with -maix64 during compile time and add -X64 during creation
of libraries. During libdar compilation, I used 64 bit lintl lib which is part of gettext open source code.
I modified the makefiles of gettext and libiconv to get into 64 bit mode. Did any one knows about 64 bit
libdar creation in AIX? Can I use -maix64 compilation flag? Please help me.
Thanks,
-Siva
From: Thomas Jacob <jacob-H4aWS73dXuq2ruNfRDi95w@public.gmane.org>
To: "Area available for the evolution, usage, support, feature requests, concerning the libdar API (application Interface)" <dar-libdar_api-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Monday, 12 January, 2009 3:10:04 AM
Subject: Re: [Dar-libdar_api] linking 32 bit libdar to a 64 bit application on AIX 64 bit platform
On Wed, 2009-01-07 at 01:01 +0530, Sivakumar Selvam wrote:
> Hi,
> Is it possible to link the 32 bit libdar library with a 64 bit
> application on 64 bit AIX platform?
I don't know about AIX, but in Linux for instance, that's not possible,
easy to understand really, when you consider that the size of some data
types changes, but the libraries calling
each other don't know that.
Remember that shared libraries usually do not contain any information
about function call parameters, just the start addresses of the
functions. So when one library pushes a 32 bit number onto the
stack and another tries to read a 64 bit number, there will be trouble.
> Can I compile libdar source code using -maix64 compiler option?
> Since libdar uses libintl,
> I need to compile the gettext and libiconv source codes using
> -maix64. If some one has
> already tried this, I would like to know your suggestion.
>
>
> Thanks,
> -Siva.
>
>
> ______________________________________________________________________
> Unlimited freedom, unlimited storage. Get it now
> ------------------------------------------------------------------------------
> Check out the new
SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
>
http://p.sf.net/sfu/Xq1LFB> _______________________________________________ Dar-libdar_api mailing list
Dar-libdar_api-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/dar-libdar_api------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB_______________________________________________
Dar-libdar_api mailing list
Dar-libdar_api-5NWGOfrQmnd4wTydcyPnfg@public.gmane.orgceforge.nethttps://lists.sourceforge.net/lists/listinfo/dar-libdar_api
Add more friends to your messenger and enjoy!
Invite them now.