Error with libaprutil-0.so

Milmar Tan
Hello,

I'm trying to build Apache for the mini2440 but I'm getting the following
error in one of its dependencies:

OSELAS.BSP-Pengutronix-Mini2440/platform-mini2440/sysroot-target/usr/lib/libapru
til-0.so:
undefined reference to `crypt_r'

Looking online, it seems the fix is to link libaprutil-0.so to libcrypt.
What modifications are needed to be able to do that?

My configuration:
ptxdist - ptxdist-2015.01.0
toolchain - OSELAS.Toolchain-2014.12.0
bsp - OSELAS.BSP-Pengutronix-Mini2440 2015.01.0
apr-util - apr-util-0.9.19
apache - httpd-2.0.64

Thanks.

davef
You might get Pengutronix's attention quicker by posting at:

http://blog.gmane.org/gmane.comp.embedded.ptxdist.oselas.community

or

http://blog.gmane.org/gmane.comp.embedded.ptxdist.devel

Milmar Tan
This is the response from Juergen Borleis from Pengutronix:

Try to re-build the BSP without the "-Wl--as-needed" parameter.

$ ptxdist platformconfig
 ---> architecture
   ---> extra toolchain options
     ---> [ ] Link only needed libraries (ld --as-needed)

74NK
http://www.friendlyarm.com/Forum/viewtopic.php?f=39&p=166#p166