The last time I ran into this problem, I was instructing the executable to link statically against Poco by using -Wl,-Bstatic before listing the Poco libraries. This also affects the standard libraries which appears by default at the end of the linker options. Try the following linker flags:

-Wl,-Bstatic -lPocoFoundation -Wl,-Bdynamic -lpthread -ldl -lrt

This will tell the linker to only statically link Poco, but dynamically link against the rest of the standard libraries which is likely fine for your situation. You may or may not need pthread, dl and rt, but most of my situations require them to be added when statically linking against Poco (until someone volunteers a libtool build of Poco that figures this stuff out automagically).

The other option is to remove the Poco shared libraries -- if you're always linking statically it might just work.

If this doesn't help, please reply with the output of your link command and we should be able to sort it out.


From: Venant Sylvie <>
To: "" <>
Sent: Monday, June 22, 2009 11:14:10 AM
Subject: [poco-develop] Static poco library --> glibc warning

When statically linking the final exe with a static poco library, a number of similar warnings are returned:


“Using ‘getpwuid’ in statically linked applications require at runtime the shared libraries from the glibc version used for linking”


This does not give me much confidence in the executable. Can anyone help to get rid of these warnings?


Best regards,