multiple definition of __getreent
Sujay Raj
sujayraaj at gmail.com
Fri Jun 19 16:34:19 UTC 2015
Hi ,
I am working on porting the monkey http server to rtems.
I am working on the bsp: xilinx_zynq_a9_qemu , target: arm-rtems4.11.
There are two libraries that I am supposed to link to create my final
executable, one is libbsd.a and the other is libc.
libbsd.a links alright, but whenever I try to link libc to create the final
executable , I get an error:
/home/raaj/development/rtems/4.11/bsps/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/librtemscpu.a(default-configuration.o):
In function `__getreent':
/home/raaj/development/rtems/xilinx_zynq_a9_qemu/arm-rtems4.11/c/xilinx_zynq_a9_qemu/cpukit/libmisc/../../cpukit/../../../xilinx_zynq_a9_qemu/lib/include/rtems/confdefs.h:2420:
multiple definition of `__getreent'
/home/raaj/development/rtems/4.11/tools/lib/gcc/arm-rtems4.11/4.9.2/../../../../arm-rtems4.11/lib/thumb/armv7-a/neon/hard/libc.a(lib_a-getreent.o):
/home/raaj/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.9.2-newlib-2.2.0.20150423-x86_64-linux-gnu-1/build/arm-rtems4.11/thumb/armv7-a/neon/hard/newlib/libc/reent/../../../../../../../../../gcc-4.9.2/newlib/libc/reent/getreent.c:13:
first defined here
The CFLAGS I am using to compile are :
-march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9 -O0 -g
-qrtems -B/home/raaj/development/rtems/4.11/bsps/arm-rtems4.11/lib
-B/home/raaj/development/rtems/4.11/bsps/arm-rtems4.11/xilinx_zynq_a9_qemu/lib/
--specs bsp_specs
note: I require libc for three function , initgroups, timegm, and sendfile.
note: I am working on a cmake build system
If the information given here is insufficient, kindly ask.
Thanks and regards,
Sujay Raj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20150619/ec2d7851/attachment.html>
More information about the devel
mailing list