Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: apxs and cross-platform compatibility |
|
Author |
|
Lyudmila.Fokina
Joined: 10 Apr 2019 Posts: 6 Location: USA
|
Posted: Wed 07 Aug '19 15:02 Post subject: apxs and cross-platform compatibility |
|
|
I build my module with apxs in 2 steps as following:
// To build .la
apxs -c '-o mod_xxx.so' *.c -lcurl -ljson-c
// To build .so
apxs -n mod_xxx -i -a mod_xxx.la
I usually build on MacOs (but it will be built on Ubuntu in prod) and use it on RHEL 8. Sometimes it loads fine, sometimes it gets error: invalid ELF header
Is it inevitable to have this cross-platform incompatibility? Or there is a way to build it for all platforms (I think this is what apxs claims)? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 21 Aug '19 10:27 Post subject: |
|
|
Do you clean the directory from build artifacts before building for the next platform? |
|
Back to top |
|
|
|
|
|
|