logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: apxs and cross-platform compatibility
Author
Lyudmila.Fokina



Joined: 10 Apr 2019
Posts: 6
Location: USA

PostPosted: Wed 07 Aug '19 15:02    Post subject: apxs and cross-platform compatibility Reply with quote

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: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 21 Aug '19 10:27    Post subject: Reply with quote

Do you clean the directory from build artifacts before building for the next platform?
Back to top


Reply to topic   Topic: apxs and cross-platform compatibility View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads