multiple definition of __getreent

Sujay Raj sujayraaj at
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:

In function `__getreent':

multiple definition of `__getreent'


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
--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: <>

More information about the devel mailing list