[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build error mod_auth_saml on MacOS



Hi,

I have just tried to compile mod_auth_saml but to no avail. What I have tried

- zxid-1.11 with my patches 
- new 1.12 version
- tried the combination of system openssl, apache2, apr-1 in /usr
- tried the MacPorts openssl, apache2, apr-1 under /opt/local
I didn't try to mix system and MacPorts.

Started from the Makefile in zxid-1.12. The only changes being (for the system library settings):
OPENSSL_ROOT=/usr
APACHE_INCLUDE = -I/usr/include/apache2
APR_INCLUDE    = -I/usr/include/apr-1
APACHE_MODULES = /usr/libexec/apache2

The error messages are identical for all attempts, except the paths and warnings from openssl (skipped).

Confucius:zxid-1.12 mdondrup$  make apachezxid  TARGET=macosx

precheck/chk-apache
  -- Apache release from header: 2.2.21
  -- APR version from header: 1.4.2
[...]
ar -crs libzxid.a c/zx-ns.o c/zx-attrs.o c/zx-elems.o zxlibdec.o zxlibenc.o zxlib.o zxns.o zxpw.o zxutil.o zxbusprod.o zxlog.o zxsig.o zxcrypto.o akbox_fn.o c/license.o c/zx-di12-dec.o c/zx-sa11-dec.o c/zx-sp11-dec.o c/zx-a-dec.o c/zx-is12-dec.o c/zx-sbf-dec.o c/zx-wsse-dec.o c/zx-ac-dec.o c/zx-lu-dec.o c/zx-ds-dec.o c/zx-wsu-dec.o c/zx-b-dec.o c/zx-m20-dec.o c/zx-e-dec.o c/zx-sec-dec.o c/zx-xenc-dec.o c/zx-b12-dec.o c/zx-md-dec.o c/zx-sec12-dec.o c/zx-dec.o c/zx-ff12-dec.o c/zx-di-dec.o c/zx-sa-dec.o c/zx-sp-dec.o c/zx-is-dec.o c/zx-ecp-dec.o c/zx-paos-dec.o c/zx-dap-dec.o c/zx-ps-dec.o c/zx-im-dec.o c/zx-as-dec.o c/zx-subs-dec.o c/zx-dst-dec.o c/zx-cb-dec.o c/zx-cdm-dec.o c/zx-gl-dec.o c/zx-mm7-dec.o c/zx-wst-dec.o c/zx-wsp-dec.o c/zx-wsc-dec.o c/zx-xa-dec.o c/zx-xac-dec.o c/zx-xasa-dec.o c/zx-xasacd1-dec.o c/zx-xasp-dec.o c/zx-xaspcd1-dec.o c/zx-dp-dec.o c/zx-pmm-dec.o c/zx-prov-dec.o c/zx-idp-dec.o c/zx-shps-dec.o c/zx-exca-dec.o c/zx-hrxml-dec.o c/zx-idhrxml-dec.o c/zx-demomed-dec.o c/zx-xsi-dec.o c/zx-xs-dec.o c/zx-xml-dec.o c/zx-tas3-dec.o c/zx-tas3sol-dec.o c/zx-shibmd-dec.o c/zx-idpdisc-dec.o zxidsimp.o zxidpool.o zxidpsso.o zxidsso.o zxidslo.o zxiddec.o zxidspx.o zxididpx.o zxidmni.o zxidpep.o zxidpdp.o zxidmk.o zxida7n.o zxidses.o zxiduser.o zxidcgi.o zxidconf.o zxidecp.o zxidcdc.o zxidloc.o zxidlib.o zxidmeta.o zxidcurl.o zxidepr.o ykcrc.o ykaes.o zxidmkwsf.o zxidwsf.o zxidwsc.o zxidwsp.o zxiddi.o zxidim.o zxidps.o zxidoauth.o certauth.o keygen.o pkcs12.o smime-enc.o smime-qry.o smime-vfy.o smimemime.o smimeutil.o
/usr/bin/ranlib: file: libzxid.a(zx-xsi-dec.o) has no symbols
/usr/bin/ranlib: file: libzxid.a(zx-xs-dec.o) has no symbols
gcc  -o mod_auth_saml.so -dylib -all_load -bundle mod_auth_saml.o  -L. -lzxid -pthread -lpthread -L/usr/local/lib -L/usr/lib -lcurl -lssl -lcrypto -lz -lapr-1
Undefined symbols for architecture x86_64:
  "_ap_auth_type", referenced from:
      _chkuid in mod_auth_saml.o
  "_ap_get_client_block", referenced from:
      _read_post in mod_auth_saml.o
  "_ap_hook_check_user_id", referenced from:
      _reghk in mod_auth_saml.o
  "_ap_internal_redirect_handler", referenced from:
      _pool2apache in mod_auth_saml.o
  "_ap_log_rerror", referenced from:
      _read_post in mod_auth_saml.o
  "_ap_rputs", referenced from:
      _send_res in mod_auth_saml.o
  "_ap_set_content_length", referenced from:
      _send_res in mod_auth_saml.o
  "_ap_set_content_type", referenced from:
      _send_res in mod_auth_saml.o
  "_ap_setup_client_block", referenced from:
      _read_post in mod_auth_saml.o
  "_ap_should_client_block", referenced from:
      _read_post in mod_auth_saml.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [mod_auth_saml.so] Error 1