On Fri, Mar 21, 2025 at 10:28 AM Eric Covener <cove...@gmail.com> wrote: > > On Fri, Mar 21, 2025 at 9:37 AM Graham Leggett <minf...@sharp.fm> wrote: > > > > On 21 Mar 2025, at 00:02, Eric Covener <cove...@gmail.com> wrote: > > > > >> Keen to get z/OS tested if anyone has access. > > > > > > I will try to chip away at getting apr-trunk to building/running. > > > > > > We only use an old fork there with a very convoluted build. > > > > I applied for dev access to z/OS, I will need hand holding though. > > > > I've made sure that the Tivoli LDAP API is supportable in the new API, keen > > to make sure it works as one of the supported APIs. > > I put in a bunch of small workarounds to make progress, but currently > blocked on getting LDAP stubs to build so nothing is executing yet. We > never had DBD or anything else with stubs in our embedded APR/APU.This > platform has shared library oddities and we use a substitute libtool > (similar to build/jlibtool.c?). I am trying to get it working for the > apr_ldap stub now. > > From a pure ldap.h POV there were a few breaks: > > - Doesn't exist: LDAPAPIInfo (seems to be present on Tivoli though) > and LDAP_OPT_DESC (not present on Tivoli AFAICT) > - LDAP_OPT_ON/LDAP_OPT_OFF are ints, not already pointers to ints (I > just disabled for now, tivoli appears the same) > - Values for LDAP_OPT_REFHOPLIMIT/LDAP_OPT_PROTOCOL_VERSION needed a > (void*) cast (tivoli unknown, seems to be more about the compiler and > having the val be the address of an enum value so assumed n/a for > tivoli) > > Unfortunately the people with real background in zOS related to > apr/httpd are no longer with IBM / no longer active. > > I will try to get my notes into better shape and share the quick > workarounds as well as a copy of the libtool substitute. > > If you get access to a system, you probably want this package manager: > https://github.com/zopencommunity with at least git, bash, gmake, > autoconf, and m4. > > If you build apr-trunk from git with the native compiler, you have to > avoid getting files tagged as UTF-8 (I switch to IBM-1047 rather than > ISO8859-1 as this is how we handle our bundled APR in our HTTPD fork): > https://github.com/zopencommunity/gitport?tab=readme-ov-file#encodings-and-zos-file-tags-ccsids
libtool port: https://github.com/covener/zlibtool patch attached to get apr-trunk compiling and linking, but ran out of time before getting the dlsym in th stub working. (./configure --prefix=$PWD/built --with-expat=$HOME/expat/ --with-ldap-include=/usr/include --with-ldap-lib=/usr/lib/GLDCLD64.x --with-ldap) -- Eric Covener cove...@gmail.com
ldap.diff
Description: Binary data