psmisc package with uClibc needs fixing

Chris Buxton cbuxton at
Mon Jan 21 18:48:49 PST 2008

An FYI for anyone else trying to build with uClibc: The psmisc  
configure script decides to replace the "malloc" and "realloc"  
functions with "rpl_*" versions, but those replacements are never  
actually defined. A couple of seds to delete the offending definitions  
and to convince it that malloc and realloc really are available from  
libc make the package compile OK.

I know these can be written more efficiently and combined into one,  
but the following works:

sed -i'' -e 's|define HAVE_MALLOC 0|define HAVE_MALLOC 1|' -e '/define  
malloc rpl_malloc/d' config.h

sed -i'' -e 's|define HAVE_REALLOC 0|define HAVE_REALLOC 1|' -e '/ 
define realloc rpl_realloc/d' config.h

Chris Buxton
Professional Services
Men & Mice
Address: Noatun 17, IS-105, Reykjavik, Iceland
Phone:   +354 412 1500
Email:   cbuxton at

Men & Mice
We bring control and flexibility to network management

This e-mail and its attachments may contain confidential and  
privileged information only intended for the person or entity to which  
it is addressed. If the reader of this message is not the intended  
recipient, you are hereby notified that any retention, dissemination,  
distribution or copy of this e-mail is strictly prohibited. If you  
have received this e-mail in error, please notify us immediately by  
reply e-mail and immediately delete this message and all its attachment.

More information about the hlfs-dev mailing list