Closed finnigja closed 8 years ago
FYI, I created a port for the previous stable release(s) which is still sitting in FreeBSD bugzilla waiting for a committer to take an interest. See BZ#208127
@gwollman thanks for that; could you please find out if 2.0.0rc4 works for you following the same port process? I believe there aren't any differences between 1.8 and 2.0 that justify the error that @chair6 encounters so I suspect the build environment; I'd like to confirm before searching for issues in the 2.0 code.
@zandbelt Nope. You've added a new dependency on something called "CJOSE" that doesn't exist in the Ports Collection, so it would take rather more work (which is why I haven't actually made any effort to update my package for 2.0). Packaging libraries is a lot harder than packaging a single Apache extension.
Can you then point @chair6 to the steps you used to build 1.8 as 2.0 builds in the same way once cjose is installed.
The complete 1.8 port is in the bugzilla ticket linked above.
@chair6 looking at your build output more closely it shows that you only compile src/mod_auth_openidc.c
but not the other files that are in the same directory (and cache
subdirectory); that explains the error you get quite well; the distributed Makefile.in
should take care of that but it looks like you're not using that one for you build
@zandbelt Thanks! That was it .. I needed to tweak the Makefile that my port is using. I have now got a working mod_auth_openidc.so on my FreeBSD 10.3 / Apache 2.4.x box, and know more about how FreeBSD ports and apxs work than before.
@gwollman Thanks for the pointer. I had tried using your submitted port, but ran into problems with it not finding OpenSSL libraries at build time. I figured I'd try for 2.0 so got CJOSE added to the ports tree last week (https://svnweb.freebsd.org/ports/head/devel/cjose/) and have now submitted what Works For Me (TM) for mod_auth_openidc 2.0.0rc4 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212434). Happy for them to be merged or whatever makes sense...
@chair6 the 2.0.0rc4 is a release candidate; I'm expecting to release a final 2.0.0 soon; hope you can then update the build since I'll remove the rc4 binaries
Yes - assuming my port submission gets accepted, I'll happily update it to 2.0.0 final when you do a release. I could even withdraw the submission and wait, if you think that the final release will be sooner-than-later... (I've achieved my goal for now, my Apache-hosted app is happily talking to Auth0 with mod_auth_openidc).
I expect a release date between a few days and a few weeks...
I pulled the FreeBSD submission for now - can resubmit when 2.0.0 goes final.
I'm trying to create a FreeBSD port for the 2.0.0rc1 release, so building from source per instructions in INSTALL. The build completes and .so is installed, but restart Apache with LoadModule directive enabled fails:
I see other closed issues with this same error, where the resolution was to make sure the Apache installed and module built-for versions match. But I'm doing the build on the same host with apxs using the same Apache version:
The symbols do seem to be there:
Any suggestions appreciated!
Complete output from the build & install: