Subject: dlopen and mod_aolserver
To: None <port-sparc@netbsd.org>
From: Chris Jones <chris@cjones.org>
List: port-sparc
Date: 08/16/2001 10:16:47
--1UWUbFP1cBYEclgG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

So, my ap-aolserver pkg works fine on i386, but it doesn't work on
sparc.  Specifically, when apache tries to load mod_aolserver.so, it
says:

Syntax error on line 19 of /usr/local/etc/httpd/httpd.conf:
Cannot load /usr/local/lib/httpd/mod_aolserver.so into server: /usr/local/l=
ib/httpd/mod_aolserver.so: Undefined symbol "" (reloc type =3D 12, symnum =
=3D 2)
/usr/local/sbin/apachectl start: httpd could not be started

Am I building the .so file wrong?  Here are the lines that accomplish
this:

/usr/local/sbin/apxs -c -o mod_aolserver.so mod_aolserver.o ns_set.o tclset=
.o dstring.o tls.o modlog.o conn.o misc.o adp.o adpfancy.o str.o tclcmds.o =
tclmisc.o crypt.o htuu.o tclfile.o tclsock.o sock.o urlencode.o dbinit.o db=
drv.o dbutil.o dbtcl.o config.o quotehtml.o random.o mm_hash.o nsv.o postgr=
es.o `echo -L/usr/local/lib -lmm -lpq -L/usr/local/lib -Wl,-R/usr/local/lib=
 -ltcl83   -lm | sed 's/-Wl,//'`
ld -shared -o mod_aolserver.so mod_aolserver.o ns_set.o tclset.o dstring.o =
tls.o modlog.o conn.o misc.o adp.o adpfancy.o str.o tclcmds.o tclmisc.o cry=
pt.o htuu.o tclfile.o tclsock.o sock.o urlencode.o dbinit.o dbdrv.o dbutil.=
o dbtcl.o config.o quotehtml.o random.o mm_hash.o nsv.o postgres.o -L/usr/l=
ocal/lib -lmm -lpq -L/usr/local/lib -R/usr/local/lib -ltcl83 -lm=20

Ldd says that mod_proxy.so, which comes with apache and works, doesn't
load any additional libraries.  Mod_aolserver.so, on the other hand,
loads a bunch; could this be related to the problem?

Thanks in advance for any advice.

Chris

--=20
---------------------------------------------------- chris@cjones.org
Chris Jones                                          Mad scientist at large
  www.netbsd.org www.postgresql.org www.schemers.org www.python.org

--1UWUbFP1cBYEclgG
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (NetBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjt78e8ACgkQDPY2T8RzaD88ygCggvQ2luVvkDj5hZOcJBNRym/X
FokAn2rNTl+QD8/j2fKXbR8C81p3n/fV
=f6lQ
-----END PGP SIGNATURE-----

--1UWUbFP1cBYEclgG--