HP3000-L Archives

April 2002, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Rose, Robert" <[log in to unmask]>
Reply To:
Rose, Robert
Date:
Mon, 22 Apr 2002 18:40:08 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (308 lines)
Mark,

  I've removed the .so a few times and rebuilt it.  Doesn't seem to be
having an effect.  I've been wondering about the linker, myself.  For fun, I
downloaded the latest OpenLDAP from the U of Mich and tried to configure it.

/OPENLDAP/PUB/src/openldap-2.0.23>CC=gcc ./configure
Copyright 1998-2002 The OpenLDAP Foundation,  All Rights Reserved.
Restrictions apply, see COPYRIGHT and LICENSE files.
Configuring OpenLDAP 2.0.23-Release ...
checking host system type... hppa1.0-hp-mpeix
checking target system type... hppa1.0-hp-mpeix
checking build system type... hppa1.0-hp-mpeix
checking for a BSD compatible install... /usr/local/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gnutar... no
checking for gtar... no
checking for tar... tar
checking configure arguments... done
checking for ar... ar
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc   ) works... yes
checking whether the C compiler (gcc   ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/local/bin/nm -B
checking whether ln -s works... yes
checking for gcc... gcc
checking whether we are using GNU C... yes
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking whether ln -s works... yes
checking for ld used by GCC... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... no
checking whether the linker (/usr/local/bin/ld) supports shared libraries...
no
checking for BSD-compatible nm... /usr/local/bin/nm -B
checking command to parse /usr/local/bin/nm -B output... ok
checking how to hardcode library paths into programs... unsupported
checking for /usr/local/bin/ld option to reload object files... -r
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
checking for dlopen in -ldl... no
checking for dlopen... yes
checking for dlfcn.h... no
checking whether a program can dlopen itself... UNRESOLVED EXTERNALS: dlsym
(LDRERR 512)
UNRESOLVED EXTERNALS: dlclose  (LDRERR 512)
UNRESOLVED EXTERNALS: dlopen  (LDRERR 512)

**** EXEC FUNCTION FAILED; subsys =517; info = 48
ABORT: /OPENLDAP/PUB/src/openldap-2.0.23/conftest
NM SYS   a.01004770 dbg_abort_trace+$28
no
creating libtool
not updating unwritable cache ./config.cache
checking for mawk... (cached) gawk
checking whether ln works... no
checking whether ln -s works... (cached) yes
checking for sendmail... /usr/lib/sendmail
checking for vi... /bin/vi
checking for finger... /usr/ucb/finger
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for POSIXized ISC... no
checking for minix/config.h... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for EMX OS/2 environment... no
checking for executable suffix... no
checking for object suffix... o
checking for be_app in -lbe... no
checking for gcc option to accept ANSI C... none needed
checking for gcc depend flag... -M
checking for afopen in -ls... no
checking for EBCDIC... no
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for opendir in -lx... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking POSIX termios... yes
checking whether use of TIOCGWINSZ requires sys/ioctl.h... no
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for assert.h... yes
checking for conio.h... no
checking for crypt.h... no
checking for direct.h... no
checking for errno.h... yes
checking for fcntl.h... yes
checking for filio.h... no
checking for getopt.h... no
checking for grp.h... yes
checking for io.h... no
checking for libutil.h... no
checking for limits.h... yes
checking for locale.h... yes
checking for netinet/tcp.h... yes
checking for malloc.h... yes
checking for memory.h... yes
checking for psap.h... no
checking for pwd.h... yes
checking for process.h... no
checking for resolv.h... no
checking for sgtty.h... no
checking for shadow.h... no
checking for stddef.h... yes
checking for string.h... yes
checking for strings.h... no
checking for sysexits.h... no
checking for sys/file.h... no
checking for sys/filio.h... no
checking for sys/errno.h... no
checking for sys/ioctl.h... yes
checking for sys/param.h... yes
checking for sys/resource.h... no
checking for sys/select.h... no
checking for sys/socket.h... yes
checking for sys/syslog.h... no
checking for sys/time.h... no
checking for sys/types.h... yes
checking for syslog.h... no
checking for termios.h... yes
checking for unistd.h... yes
checking for winsock.h... no
checking for dlopen... yes
checking for sigset in -lV3... no
checking for socket... yes
checking for select... yes
checking types of arguments for select()... int,int *,struct timeval *
checking for regex.h... yes
checking for regfree... yes
checking for compatible POSIX regex... yes
checking for res_query... yes
checking for getaddrinfo... yes
checking for gai_strerror... yes
checking for inet_ntop... yes
checking INET6_ADDRSTRLEN... no
checking for sys/un.h... yes
checking for openssl/ssl.h... no
checking for ssl.h... no
configure: warning: Could not locate TLS/SSL package
configure: warning: TLS privacy protection not supported!
checking for ctime_r... yes
checking for gethostbyname_r... yes
checking for gethostbyaddr_r... yes
checking number of arguments of ctime_r... 0
checking number of arguments of gethostbyname_r... 0
checking number of arguments of gethostbyaddr_r... 0
checking for _beginthread... yes
checking for pthread.h... no
checking for mach/cthreads.h... no
checking for cthreads.h... no
checking for pth.h... no
checking for thread.h... no
checking for synch.h... no
checking for lwp/lwp.h... no
configure: warning: no suitable thread support, disabling threads
checking for db.h... no
checking for MDBM library... checking for mdbm_set_chain... yes
yes
checking for mdbm.h... no
checking for db... no
checking for GDBM library... checking for gdbm_open... yes
yes
checking for gdbm.h... no
checking for db... no
configure: warning: could not find suitable LDBM backend
configure: error: select appropriate LDBM options or disable

There are some linker related messages in there.  Also, unresolved externals
dlopen, dlclose and dlsym.  This configure script claims that it's not the
GNU ld.  Here's what my system is sporting.

/OPENLDAP/PUB/src/openldap-2.0.23>ls -al /usr/local/bin/ld*
-rwxr-xr-x   1 MANAGER.SYS       SYS           64 Jul 14  2001
/usr/local/bin/ld
-rwxrwxr-x   1 MANAGER.SYS       SYS       177664 Oct 29 09:08
/usr/local/bin/ld-
/OPENLDAP/PUB/src/openldap-2.0.23>file /usr/local/bin/ld
/usr/local/bin/ld:      sh commands text
/OPENLDAP/PUB/src/openldap-2.0.23>cat /usr/local/bin/ld
#! /bin/sh
# /usr/local/bin/ld- -debug $@
/usr/local/bin/ld- $@
/OPENLDAP/PUB/src/openldap-2.0.23>file /usr/local/bin/ld-
/usr/local/bin/ld-:     MPE/iX 256-byte fixed length binary (filecode:NMPRG)
/OPENLDAP/PUB/src/openldap-2.0.23>/usr/local/bin/ld-
ld (c) 2000-2001 DIS International, Ltd. Version: 0.19
This software is freely distributable under the GPL
so long as the above notification is preserved.

ld: usage [switches] object [object ...]
  switches:
    -aarchive   Search .a files only
    -ashared    Search .sl files only
                  These can be interspersed with -l
    -b          Create a shared library (.sl)
    -g          Create debugging symbols
    -mpelink    Backward bind (6.5 and later)
    -nostdlib   Do not include standard libs
    -s          Strip the resulting object
    -l<lib>     Search library <lib>
    -shared     Ignored, but needed for gcc
    -WL,<args>  Provide special args to LINKEDIT
       e.g        -WL,xl=javaxl.pub.sys
                  -WL,nmstack=100000000
                  -WL,cap=ia,ba,ph,pm
                  -WL,-flag
                    Pass -flag to LINKEDIT
  environment variables:
    LKEDSTACK   Specifies LINKEDIT's own stack
    LDEDHEAP    Specifies LINKEDIT's own heap
    MPEAUTOCONF When set, this will cause programs
                  to be run in order to check for
                  unresolved externals.
    MPESTDPATH  Specifies default paths to prepend
                  to the standard default paths:
                  "/usr/mylib:/some/other/lib"
/OPENLDAP/PUB/src/openldap-2.0.23>

This appears to be the linker Mark Klein has ported.  I'm a bit lost as to
what to look at.  I was thinking about stripping the LDAP code from these
libraries and adding it to my mod_auth_ldap.c so it wouldn't have a problem,
but if possible, I'd sure like to get this working.  I appreciate your
efforts.

Thanks, Bob

-----Original Message-----
From: Mark Bixby [mailto:[log in to unmask]]
Sent: Monday, April 22, 2002 4:59 PM
To: Rose, Robert
Cc: [log in to unmask]; [log in to unmask]
Subject: Re: DSO mod_auth_ldap on iX 7.0 (LONG)


Hi Bob,

I don't understand how mod_auth_ldap.so is ending up with stuff from
-lsocket
since you are clearly not specifying -lsocket on the ld command invoked by
apxs.

I recommend purging mod_auth_ldap.so and then rebuilding it.  Maybe you have

residue from previous attempts.  Or maybe Mark Klein has modified the latest

gcc ld in ways that I am not yet aware of.

- Mark B.

Rose, Robert wrote:

> Sure, Mark.  Thanks for taking a look.  I left the line breaks in.
>
> Bob Rose
>
>
> /APACHE/PUB/src/modules/modauthldap> apxs \
>
>>-I/usr/local/ldapsdk/include \
>>-L/usr/local/ldapsdk/lib \
>>-lldap \
>>-llber \
>>-c mod_auth_ldap.c
>>
> gcc -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -DNO_DBM_REWRITEMAP
-DUSE_HSREGEX
> -DE
> API -DUSE_EXPAT -I../lib/expat-lite -DSHARED_MODULE -I/APACHE/PUB/include
> -I/usr
> /local/ldapsdk/include  -c mod_auth_ldap.c
> ld -b -a archive -o mod_auth_ldap.so mod_auth_ldap.o
> -L/usr/local/ldapsdk/lib -l
> ldap -llber


--
[log in to unmask]
Remainder of .sig suppressed to conserve expensive California electrons...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2