ltp-list is no more maintaining. Adding new list for communication.

This is because openlog is already defined in the libc and which you
can't redefine it again.

On Wed, Oct 28, 2015 at 4:43 PM, Yesuraj Abraham <yesu4t...@gmail.com> wrote:
> Hi
> I tried compiling ltp statically using arm toolchain, as follows
> export
> CC=/home/ltblr/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-gcc
> export
> LD=/home/ltblr/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-ld
> export
> AR=/home/ltblr/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-ar
> export
> AS=/home/ltblr/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-as
> export
> RANLIB=/home/ltblr/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-ranlib
> export
> STRIP=/home/ltblr/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/arm-none-linux-gnueabi-strip
>
> ./configure --host=arm-linux
> --prefix=/home/ltblr/yesuraj/test_apps/ltp/arm-none-tool-chain/static_compilation/ltp-full-20150420/install
> --exec-prefix=/home/ltblr/yesuraj/test_apps/ltp/arm-none-tool-chain/static_compilation/ltp-full-20150420/install
> LDFLAGS="-static -pthread"
>  make
>
> It throws the following error(s),
>
> /home/ltblr/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../arm-none-linux-gnueabi/libc/usr/lib/libc.a(syslog.o):
> In function `openlog': syslog.c:(.text+0x814): multiple definition of
> `openlog'
> /tmp/ccusZ6dp.o:/home/ltblr/yesuraj/test_apps/ltp/arm-none-tool-chain/static_compilation/ltp-full-20150420/testcases/kernel/fs/fs-bench/random-access.c:66:
> first defined here
>
> The same error is thrown for the file, random-access-del-create.c too.
>
> When i modified openlog to other name (openlog1) in both the files, then it
> compiles successfully.
>
> However when i build using x86 tool chain in the same manner (static flag
> enabled), it builds successfully without the above error(s).
>
> Regards,
> yesuraj
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>



-- 
Thanks & Regards,
M.Srikanth Kumar.

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to