Comments (5)
$(SYSLIBS) should include "-lz -lpcre -lexpat" when building unbundled/shared on Linux, but doesn't.
https://github.com/pocoproject/poco/blob/develop/Foundation/Makefile
ifdef POCO_UNBUNDLED
SYSLIBS += -lpcre -lz
else
objects += $(zlib_objects) $(pcre_objects) $(pcre_utf8_objects)
endif
https://github.com/pocoproject/poco/blob/develop/XML/Makefile
ifdef POCO_UNBUNDLED
SYSLIBS += -lexpat
else
objects += $(expat_objects)
endif
from poco.
Here's what I'm seeing:
g++ -DPOCO_BUILD_HOST=gwtest -DPOCO_UNBUNDLED -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL -g -static -o /home/philipp/poco.mine/PageCompiler/bin/Linux/x86_64/static/cpspcd /home/philipp/poco.mine/PageCompiler/obj/Linux/x86_64/debug_static/Page.o /home/philipp/poco.mine/PageCompiler/obj/Linux/x86_64/debug_static/PageReader.o
... [cut off]
make[1]: *** [/home/philipp/poco.mine/PageCompiler/bin/Linux/x86_64/static/cpspcd] Error 1
make[1]: Leaving directory `/home/philipp/poco.mine/PageCompiler'
make: *** [PageCompiler-libexec] Error 2
from poco.
While ago, we discussed and found out the reasons why static builds on linux fail:
https://sourceforge.net/p/poco/bugs/537/
http://sourceforge.net/mailarchive/message.php?msg_id=29510837
http://sourceforge.net/p/poco/bugs/527/
As for unbundled builds, different distros have files in different directories and there is a way to provide additional include and library directories through configure script. Please look at your system/environment/build config and see exactly where and why it fails. If there is a problem and a reasonable way to fix it and you clearly point to it, we will. Clogging forum with large amounts of build output copy/paste is not productive.
from poco.
I pushed a fix as c02cf81 in pprindeville/pocoproject in the "develop" branch.
from poco.
Fixed
from poco.
Related Issues (20)
- OpenSSLInitializer::uninitialize() Openssl 3.x HOT 4
- SQLParser not included in the release archive
- ProcessRunner intermittently hangs in win VS2022 cmake CI
- vs2022 solution c++17 missing in Foundation HOT 1
- HTTPClientSession and DEFAULT_KEEP_ALIVE_TIMEOUT
- HTTPClientSession KeepAlive and setMaxKeepAliveRequests
- Remove VS projects from release HOT 1
- Disable SQL parsing by default
- Nvm
- 'nullptr_t' usage. HOT 1
- Add Support for CMake NO_SONAME Linker Flag
- websocket client shutdown issue on windows 7
- Poco::URI: don't lowercase host part if it's a Unix domain socket
- Poco::Thread setName
- Thread destructor HOT 1
- client certificate verification against hostname question HOT 1
- Upgrade bundled libexpat to 2.6.1
- Upgrade bundled PCRE2 to 10.43
- Bump CI action versions
- ProcessRunner does not detect launch errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poco.