HP3000-L Archives

October 2001, 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:
Gavin Scott <[log in to unmask]>
Reply To:
Gavin Scott <[log in to unmask]>
Date:
Thu, 25 Oct 2001 14:45:35 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
Richard writes:
> I have tried the following:
>
> gcc-2.95.2 -o ldapauth ldapauth.c -DMPE -D_SOCKET_SOURCE -D_MPEXL_SOURCE
> -D_POSIX_SOURCE -I../include -L../lib -lldap -llber
>
> This will build the file ldapauth as NMPRG as expected.  What I really
> need is an NMXL.
>
> so, if change the comiple to
>
> gcc-2.95.2 -c ldapauth.c -DMPE -D_SOCKET_SOURCE -D_MPEXL_SOURCE
> -D_POSIX_SOURCE -I../include -L../lib -lldap -llber
>
> I get the following warning - which are expected.
> gcc-2.95.2: -lldap: linker input file unused since linking not done
> gcc-2.95.2: -llber: linker input file unused since linking not done

Right, since you're asking for only a .o file (via -c) which suppresses any
linking step.

Try this variant of your original command:

gcc-2.95.2 -shared -o ldapauth.sl -DMPE -D_SOCKET_SOURCE \
-D_MPEXL_SOURCE -D_POSIX_SOURCE -I../include -L../lib \
--for-linker="-b -ashared" ldapauth.c -lldap -llber

Which should produce an XL file named "ldapauth.sl".  Ignore the error about
"-shared" not being recognized.

G.

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

ATOM RSS1 RSS2