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 *