HP3000-L Archives

September 1999, 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:
Joseph Whitlock <[log in to unmask]>
Reply To:
Joseph Whitlock <[log in to unmask]>
Date:
Wed, 29 Sep 1999 00:55:28 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (235 lines)
HP LDAP Folks and Mark Bixby,

The loader was the problem!

It would help me if anyone could explain why
the /bin/ld was a symbolic link to /SYS/HPBIN/C89?

Also could you please contrast ld in GNU and ld in C89 and what happens
when you mix GNU gcc compliler with a C89 ld loader.

Anyway once I renamed the old /bin/ld to /bin/ldhold and
copied the ld2 shell script from the HP LDAP Folks  to /bin/ld,
I proceeded to do the make again.  Here are the blow by blow
results;

P.S. I set a variable export ECHO=1 that Mark Bixby suggested to see the link process.

*******************************************************************************


SITE133 MGR.PERL /tmp/perldap-1.4>export ECHO=1
SITE133 MGR.PERL /tmp/perldap-1.4>perl Makefile.PL

PerLDAP - Perl 5 Module for LDAP
================================
Directory containing 'include' and 'lib' directory of the Netscape
LDAP Software Developer Kit (default: /usr): /usr/local/ldapsdk
Using LDAPv3 Developer Kit (default: yes)?  yes
Include SSL Support (default: yes)?  no
Libraries to link with (default: -L/usr/local/ldapsdk/lib -lldap -llber):
Writing Makefile for Mozilla::LDAP::API
SITE133 MGR.PERL /tmp/perldap-1.4>make test
gcc -c -I/usr/local/ldapsdk/include -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE
-D_POSIX_JOB_CONTROL -I/usr/local/include -I/usr/contrib/
include -O2    -DVERSION=\"1.4\" -DXS_VERSION=\"1.4\"
-I/PERL/PUB/lib/perl5/PA-RISC1.1/5.00404/CORE -DLDAPV3  API.c
Running Mkbootstrap for Mozilla::LDAP::API ()
chmod 644 API.bs
LD_RUN_PATH="/usr/local/ldapsdk/lib" ld -o blib/arch/auto/Mozilla/LDAP/API/API.sl  -b
-L/usr/local/lib -L/usr/contrib/lib API.o    -
L/usr/local/ldapsdk/lib -lldap -llber
ld: WARNING: API.o HAS FILECODE 0
HP Link Editor/iX (HP30315A.06.10) Copyright Hewlett-Packard Co 1986

LinkEd> buildxl ./blib/arch/auto/Mozilla/LDAP/API/API.sl ;limit=12

CONTENTS OF RL INDIRECT FILE /tmp/ld_27805_rlIF:
/usr/local/ldapsdk/lib/libldap.a
/usr/local/ldapsdk/lib/liblber.a
END OF RL INDIRECT FILE

CONTENTS OF LINKEDIT INDIRECT FILE /tmp/ld_27805_in:
:file ld2RL=/tmp/ld_27805_rlIF
addxl from=./API.o ;to=./blib/arch/auto/Mozilla/LDAP/API/API.sl ;rl=^*ld2RL
;merge;replace;share
:reset ld2RL
cleanxl ./blib/arch/auto/Mozilla/LDAP/API/API.sl;compact
END OF INDIRECT FILE

HP Link Editor/iX (HP30315A.06.10) Copyright Hewlett-Packard Co 1986


LinkEd> :file ld2RL=/tmp/ld_27805_rlIF

LinkEd> addxl from=./API.o ;to=./blib/arch/auto/Mozilla/LDAP/API/API.sl ;rl=^*l
d2RL ;merge;replace;share
WARNING: ./API.o HAS FILECODE 0
1 OBJECT FILE HAS BEEN ADDED.

LinkEd> :reset ld2RL

LinkEd> cleanxl ./blib/arch/auto/Mozilla/LDAP/API/API.sl;compact

LinkEd> exit

chmod 755 blib/arch/auto/Mozilla/LDAP/API/API.sl
cp API.bs ./blib/arch/auto/Mozilla/LDAP/API/API.bs
chmod 644 blib/arch/auto/Mozilla/LDAP/API/API.bs
PERL_DL_NONLAZY=1 /usr/local/bin/perl -I./blib/arch -I./blib/lib
-I/PERL/PUB/lib/perl5/PA-RISC1.1/5.00404 -I/PERL/PUB/lib/perl5 -e '
use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/api...............ok
t/conn..............ok
t/entry.............ok
t/ldif..............ok
t/utils.............ok
All tests successful.
Files=5,  Tests=5,  2 secs ( 0.61 cusr  0.61 csys =  1.22 cpu)
SITE133 MGR.PERL /tmp/perldap-1.4>make install
Manifying ./blib/man3/Mozilla::LDAP::Conn.3
Manifying ./blib/man3/Mozilla::LDAP::LDIF.3
Manifying ./blib/man3/Mozilla::LDAP::Utils.3
Manifying ./blib/man3/Mozilla::LDAP::Entry.3
Manifying ./blib/man3/Mozilla::LDAP::API.3
Skipping /PERL/PUB/lib/perl5/site_perl/PA-RISC1.1/./auto/Mozilla/LDAP/API/API.bs
(unchanged)
Installing /PERL/PUB/lib/perl5/site_perl/PA-RISC1.1/./auto/Mozilla/LDAP/API/API.sl
Skipping /PERL/PUB/lib/perl5/site_perl/./Mozilla/LDAP/API.pm (unchanged)
Skipping /PERL/PUB/lib/perl5/site_perl/./Mozilla/LDAP/Conn.pm (unchanged)
Skipping /PERL/PUB/lib/perl5/site_perl/./Mozilla/LDAP/Entry.pm (unchanged)
Skipping /PERL/PUB/lib/perl5/site_perl/./Mozilla/LDAP/LDIF.pm (unchanged)
Skipping /PERL/PUB/lib/perl5/site_perl/./Mozilla/LDAP/Utils.pm (unchanged)
Skipping /PERL/PUB/lib/perl5/site_perl/./Mozilla/LDAP/oldtest.pl (unchanged)
Skipping /PERL/PUB/lib/perl5/site_perl/./auto/Mozilla/LDAP/API/autosplit.ix (unchanged)
Skipping /PERL/PUB/man/man3/./Mozilla::LDAP::API.3 (unchanged)
Skipping /PERL/PUB/man/man3/./Mozilla::LDAP::Conn.3 (unchanged)
Skipping /PERL/PUB/man/man3/./Mozilla::LDAP::Entry.3 (unchanged)
Skipping /PERL/PUB/man/man3/./Mozilla::LDAP::LDIF.3 (unchanged)
Skipping /PERL/PUB/man/man3/./Mozilla::LDAP::Utils.3 (unchanged)
Writing /PERL/PUB/lib/perl5/site_perl/PA-RISC1.1/auto/Mozilla/LDAP/API/.packlist
Appending installation info to /PERL/PUB/lib/perl5/PA-RISC1.1/5.00404/perllocal.pod

*******************************************************************************


SITE133 MGR.PERL /tmp/perldap-1.4>perl oldtest.pl
1..8
modinit  - ok

Enter LDAP Server: fakeldapdb.boeing.com
Enter Search Filter (ex. uid=abc123): surname=whitlock
Enter LDAP Search Base (ex. o=Org, c=US): ou=people,o=boeing,c=us

open     - ok
bind     - ok
search   - ok
count    - ok   - 24
getdn    - ok   - cn=6945, ou=people, o=boeing, c=us
firstatt - ok   - objectclass

...snip...

*******************************************************************************

Trust me this perlscript does work.

The ld2 script that I am now using from /bin/ld
was sent to me from the LDAP folks.

May be this can be made available
from jazz.

Thanks to all of you : )

-Joseph Whitlock
        [log in to unmask]
        Boeing Commericial Airplane Group (BCAG)
        P.O. Box 3707 MS 6C-LU
        Seattle, WA. 98124
        Phone (425) 234-1478
        Pager  (206) 416-5113

----------
From:  ldapix[SMTP:[log in to unmask]]
Sent:  Tuesday, September 28, 1999 3:07 PM
To:  Whitlock, Joseph L
Subject:  Re: Posix libraries and Perl make utility

<<File: ld2.txt>>
Joe, sorry, can you try this again?
------------------------------------------------


Whitlock, Joseph L wrote:

> LDAP Folks,
>
> Could you send the ld2 file as text and not an attachment.
> I'm having problems with this file.
>
> Thanks
>
> *Joseph Whitlock
>         [log in to unmask]
>         Boeing Commericial Airplane Group (BCAG)
>         P.O. Box 3707 MS 6C-LU
>         Seattle, WA. 98124
>         Phone (425) 234-1478
>         Pager  (206) 416-5113
>
> > ----------
> > From:         ldapix[SMTP:[log in to unmask]]
> > Sent:         Tuesday, September 28, 1999 1:22 PM
> > To:   [log in to unmask]
> > Cc:   [log in to unmask]; [log in to unmask];
> [log in to unmask]; [log in to unmask]
> > Subject:      RE: Posix libraries and Perl make utility
> >
> > <<File: ld2.txt>>
> > Joe, after experimenting GNU ld and the C89 ld, we have determined
> that
> > -L and -l options do not work correctly for linking a share library
> " ld
> > -b -L -l" .  ld doesn't recognize -L and -l, therefore does not link
> the
> > specified archive libraries  to the share library being built. This
> is
> > why when you did:
> >         ld -o  blib/arch/auto/Mozilla/LDAP/API/API.sl  -b
> > -L/usr/local/lib -L/usr/contrib/lib API.o
> >         -L/usr/local/ldapsdk/lib -llibldap -lliblber
> > libldap.a and liblber.a were not linked to API.sl.
> >
> > We are investigating a solution to this ld defect. In the mean time,
> the
> > attached is a workaround ld2 script developed by Steve Hoogheem.
> This ld
> > should pick up entries in the specified archive library to satisfy
> the
> > external calls made in the object files. All you need to do is
> having
> > your default ld point to this new ld2 script. Please let us know how
> it
> > works for you.
> >
> >
> > Hewlett-Packard Company
> >
> > LDAP C-SDK/iX Project Team
> >
> > [log in to unmask]
> >
> >


--
                                  Respectfully,
                                  Joe

  Joe Whitlock                  | Work Email: [log in to unmask]
  The Boeing Company            | Home Email: [log in to unmask]
  P.O. Box 3707                 | Tel:      425-234-1478
  MS 6C-LU                      | Fax:      425-237-7230
  Seattle, WA 98124-2207        |

ATOM RSS1 RSS2