Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco static linking in Linux

Please post support and help requests here.

Poco static linking in Linux

Postby chookrl » 21 Jul 2012, 15:48

Hi, I'm trying to statically link poco on Ubuntu.

I've encountered the same issue as described in Static build link error - ID: 3527134

Does that mean POCO on linux can't be statically linked?

My error is:

/usr/local/lib/libPocoFoundation.a(Path.o): In function `Poco::PathImpl::homeImpl()':
Path.cpp:(.text+0x218): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libPocoNet.a(DNS.o): In function `Poco::Net::DNS::hostByName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
DNS.cpp:(.text+0x385): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/lib/libPocoNet.a(SocketAddress.o): In function `Poco::Net::SocketAddress::resolveService(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
SocketAddress.cpp:(.text+0x7c4): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: ld returned 1 exit status
chookrl
 
Posts: 4
Joined: 26 Feb 2012, 18:25

Re: Poco static linking in Linux

Postby alex » 21 Jul 2012, 17:28

I closed that bug, see my closing comment there and this mailing list thread. I was able to build static on Ubuntu but not on Fedora. Code is in 1.4.4 branch and trunk.
alex
 
Posts: 1146
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron