Manpages () say the following:
...
CONFORMING TO
adjtimex is Linux specific and should not be used in programs intended
to be portable. There is a similar but less general call adjtime in
SVr4.
...
So, this may not exist in your Platform at all. So, i would suggest the
following:
1. You can add a statement 'ifdef _android' or something in your
code and try to compile it. So, this code will not compile at
all,
2. Similarly check for other SYSTEM CALLs and APIs which are not
supported on Android and create a list first (else you will keep
coming back to LTP mailing list with all these failures, and, i
am not sure whether anybody will look into all your issues).
Create patches accordingly,
3. Maintain those patches privately(apply them every time you are
building LTP) with you as i believe LTP community will probably
not interested to add check for Android (they may be, you can
talk to Cyril/Shubham/Garrett/Mike Frysinger),
Regards--
Subrata
On Thu, 2011-09-22 at 04:35 +0000, G Rajender wrote:
> Hi,
>
> Thank you for support. I have done steps and solved the error but i am
> getting the below error in compilation.
>
> In ltp-full-20110228/testcases/kernel/syscalls/adjtimex/adjtimex01.c, I am
> getting the below error "undefined reference to `adjtimex".
>
> I've analyzed about the error and found that "adjtimex' not defined in
> androideabi cross toolchain library file like time.h, timex.h and not in any
> other files.
>
> /C0AA04ADAA04A250/ltp-full-20110228/testcases/kernel/syscalls/adjtimex/adjtimex02.c:242:
> undefined reference to `adjtimex'
>
> /tmp/ccnUXfSk.o: In function `setup':
>
> /media/C0AA04ADAA04A250/ltp-full-20110228/testcases/kernel/syscalls/adjtimex/adjtimex02.c:228:
> undefined reference to `adjtimex'
>
> /tmp/ccnUXfSk.o: In function `main':
>
> /media/C0AA04ADAA04A250/ltp-full-20110228/testcases/kernel/syscalls/adjtimex/adjtimex02.c:178:
> undefined reference to `adjtimex'
>
>
>
> Any suggestions on this error please......
>
> Thanks in advance.
>
>
> Rajender.G
>
> ________________________________________
> From: Subrata Modak [[email protected]]
> Sent: Wednesday, September 21, 2011 12:08 PM
> To: G Rajender
> Cc: [email protected]
> Subject: RE: [LTP] Cross Compiling LTP for Android platform
>
> On Wed, 2011-09-21 at 06:28 +0000, G Rajender wrote:
> > Hi,
> >
> > Thank you for your reply and support.
> >
> > I have checked for the strip with commands suggested by you.
> > # which strip
> > /usr/bin/strip
> >
> > # rpm -qf /usr/bin/strip
> > "file /usr/bin/strip is not owned by any package"
>
> Install the Cross Compile Binutils of the target Arch in this machine.
> Or, you can build the Target Arch Binutils in the source machine
> provided you have the Binuitls source code.
>
> So just like your 'arm-linux-androideabi-gcc' which shows up in
> your /usr/bin/arm-linux-androideabi-gcc,
>
> You will then have all the binaries of the Binutils package here:
> /usr/bin/arm-linux-androideabi-stripe
> /usr/bin/arm-linux-androideabi-ar
> /usr/bin/arm-linux-androideabi-as
> /usr/bin/arm-linux-androideabi-ld
> /usr/bin/arm-linux-androideabi-nm
> /usr/bin/arm-linux-androideabi-objdump
>
> etc.
>
> Regards--
> Subrata
>
> >
> > I think strip not owned by any package....
> >
> > How to modify or configure my arm-linux-androideabi- strip binutils.
> >
> > Any suggestions please......
> >
> > Thanks
> > Rajender.G
> >
> > ________________________________________
> > From: Subrata Modak [[email protected]]
> > Sent: Tuesday, September 20, 2011 10:59 PM
> > To: G Rajender
> > Cc: [email protected]
> > Subject: Re: [LTP] Cross Compiling LTP for Android platform
> >
> > On Tue, 2011-09-20 at 14:28 +0000, G Rajender wrote:
> > > Hi,
> > >
> > > I am Cross Compiling LTP-20110228 using arm-linux-androideabi cross
> > > toolchain.
> > > Im getting the below errors
> > >
> > >
> > > make[4]: Leaving directory
> > > `/media/C0AA04ADAA04A250/ltp-full-20110228/testcases/commands/ade/nm'
> > > make[4]: Entering directory
> > > `/media/C0AA04ADAA04A250/ltp-full-20110228/testcases/commands/ade/objdump'
> > > arm-linux-androideabi-gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe
> > > -Wall -g -I../../../../include -I../../../../include -c -o
> > > test_arch.o test_arch.c
> > > arm-linux-androideabi-gcc -L../../../../lib test_arch.o -o
> > > test_arch_debug
> > > arm-linux-androideabi-gcc -L../../../../lib test_arch.o -o
> > > test_arch_stripped
> > > strip test_arch_stripped
> > > strip: Unable to recognise the format of the input file
> > > `test_arch_stripped'
> >
> > The Error lies here. Do you have 'strip' from the Cross-Architecture
> > Binary Utils package. Apart from your GCC (which is from your GCC
> > package), all the following packages should also be from your CROSS
> > COMPILE ARCH:
> >
> > Glibc
> > Glibc-devel
> > Binutils
> >
> > If you see your 'strip' binary, probably it is still belonging to the
> > machine arch on which you are compiling.
> >
> > # which strip
> > /usr/bin/strip
> >
> > # rpm -qf /usr/bin/strip
> > binutils-2.20.51.0.2-5.27.el6.ppc64
> >
> > Check that out first.
> >
> > Regards--
> > Subrata
> >
> > > make[4]: *** [test_arch_stripped] Error 1
> > >
> > > Any suggestion on this erros please......
> > >
> > > Thanks in advance.
> > >
> > > Regards
> > >
> > > Rajender.G
> > >
> > >
> > >
> > > Larsen & Toubro Limited
> > >
> > > www.larsentoubro.com
> > >
> > > This Email may contain confidential or privileged information for the
> > > intended recipient (s) If you are not the intended recipient, please
> > > do not use or disseminate the information, notify the sender and
> > > delete it from your system.
> > > ------------------------------------------------------------------------------
> > > All the data continuously generated in your IT infrastructure contains a
> > > definitive record of customers, application performance, security
> > > threats, fraudulent activity and more. Splunk takes this data and makes
> > > sense of it. Business sense. IT sense. Common sense.
> > > http://p.sf.net/sfu/splunk-d2dcopy1
> > > _______________________________________________ Ltp-list mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/ltp-list
> >
> >
> >
> > Larsen & Toubro Limited
> >
> > www.larsentoubro.com
> >
> > This Email may contain confidential or privileged information for the
> > intended recipient (s) If you are not the intended recipient, please do not
> > use or disseminate the information, notify the sender and delete it from
> > your system.
> >
>
>
>
> Larsen & Toubro Limited
>
> www.larsentoubro.com
>
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please do not
> use or disseminate the information, notify the sender and delete it from your
> system.
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list