Subject: broken (from openldap) under Solaris/zoularis
To: None <>
From: Pierre Bourgin <>
List: tech-pkg
Date: 09/19/2002 11:24:10
Hi everyone,

I've got a *really* annoying problem with the zoularis package

this package is built and installed succefully, but when I try to use the of this package (with ap-auth-ldap for instance), my apache
server is unable to start:

--------- httpd error message ------------------------------------------
Syntax error on line 1235 of /u_dev01/pbo/apache/conf/httpd.conf:
Cannot load /usr/pkg/lib/httpd/ into server:
/usr/pkg/sbin/httpd: fatal:
 relocation error: file /usr/pkg/lib/ symbol inet_aton:
referenced symbol not found
--------- httpd error message ------------------------------------------

the apache module is (really) linked against

% ldd /usr/pkg/lib/httpd/ =>  /usr/pkg/lib/ =>  /usr/pkg/lib/ =>       /usr/pkg/lib/ =>    /usr/pkg/lib/ =>     /usr/lib/ =>        /usr/lib/ =>   /usr/lib/ =>    /usr/lib/ =>    /usr/lib/

and ths has something wrong:

% nm /usr/pkg/lib/ |grep inet_aton
[1186]  |         0|       0|NOTY |GLOB |0    |UNDEF  |inet_aton

I found that /usr/lib/ has the missing symbol:

% nm /usr/lib/ |grep inet_aton
[1055]  |     25164|     632|FUNC |GLOB |0    |12     |inet_aton

So I modified the pkgsrc' Makefile of openldap in order to link with this

% cd /..../pkgsrc/database/openldap
% gdiff -bu Makefile.orig Makefile
--- Makefile.orig       Mon Aug 26 12:08:02 2002
+++ Makefile    Thu Sep 19 09:06:02 2002
@@ -35,7 +35,7 @@
 .if ${OPSYS} == "SunOS"
 .include "../../databases/db/"
 CPPFLAGS+=     -I${BUILDLINK_PREFIX.db}/include/db2
-LIBS=          -ldb2 -lpthread -lrt
+LIBS=          -ldb2 -lpthread -lrt -lresolv

Unfortunalty, after built and installed again the openldap & ap-auth-ldap
packages, I've got the same errors, and the is *not* build
againt, so the same error appears.

I also checked the file
but it contains effectivly the '-lresolv' flag:

# Libraries that this one depends upon.
dependency_libs=' -L/d_dev01/admin/14sept02/pkgsrc/databases/openldap/work/openldap-2.0.25/li
braries -L/admin/14sept02/pkgsrc/databases/openldap/work/.buildlink/lib
-lssl -lcrypto -lresolv'

Did I do something wrong ? Forgot something ?

Thanks for any clue !


Pierre Bourgin