Moreover, since you're on AIX, adding -lsomelib as a XLC argument expects to 
find an archive libsomelib.a and not an object file.
So you will have to archive the shared libraries with ar.

F.e.
The built created the shared library gssapi_krb5.so (which is in AIX a bad name 
for a shared library, all libraries (static/shared) should end with .o)
Archive it:
# ar -v -q gssapi_krb5.a gssapi_krb5.so


Met vriendelijke groet
Best regards
Bien à vous

Miguel SANDERS
ArcelorMittal Gent

UNIX Systems & Storage
IT Supply Western Europe | John Kennedylaan 51
B-9042 Gent

T +32 9 347 3538 | F +32 9 347 4901 | M +32478 805 023
E miguel.sand...@arcelormittal.com
www.arcelormittal.com/gent

-----Oorspronkelijk bericht-----
Van: kerberos-boun...@mit.edu [mailto:kerberos-boun...@mit.edu] Namens 
miguel.sand...@arcelormittal.com
Verzonden: vrijdag 15 mei 2009 13:04
Aan: luke.sch...@clusterbee.net; kerberos@mit.edu
Onderwerp: RE: Kerberos linking on AIX 6.1

Luke

The problem here lies in the fact that the libraries you build before you run 
into the error are not included in the libpath (-L).
Could you try added the folder that contains the libraries as an addional 
CFLAGS argument?

Met vriendelijke groet
Best regards
Bien à vous

Miguel SANDERS
ArcelorMittal Gent

UNIX Systems & Storage
IT Supply Western Europe | John Kennedylaan 51
B-9042 Gent

T +32 9 347 3538 | F +32 9 347 4901 | M +32478 805 023 E 
miguel.sand...@arcelormittal.com www.arcelormittal.com/gent

-----Oorspronkelijk bericht-----
Van: kerberos-boun...@mit.edu [mailto:kerberos-boun...@mit.edu] Namens Luke 
Scharf
Verzonden: donderdag 14 mei 2009 17:24
Aan: kerberos@mit.edu
Onderwerp: Kerberos linking on AIX 6.1

I'm attempting to build Kerberos on AIX 6.1.  This list provided a couple of 
great workarounds for issues that I've encountered, but I was hoping to submit 
one more (like editing krb5-1.6.3/src/config/shlib.conf:410 so that "aix6" can 
be recognized as aix -- and also using xlc as the compiler instead of gcc).

I'm running with the following configure command:
./configure --prefix=/usr/local/krb5-1.6.3 --enable-log-preauth-logins 
--enable-login-print-issue --with-multihomed-fixes --enable-app-proxy 
--with-passive-mode-off --without-anonymous-ftp --without-server And with 
CC=xlc.

The configure completes nicely, I get through a large portion of the "make".  
However, Make fails with the following error:

    xlc -L../../../lib -blibpath:/usr/local/krb5-1.6.3/lib::/usr/lib:/lib -g 
-qhalt=e -O -D_THREAD_SAFE   -o server server.o rpc_test_svc.o \
        -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support  
-lpthreads 
    ld: 0706-006 Cannot find or open library file: -l gssrpc
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l gssapi_krb5
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l krb5
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l k5crypto
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l com_err
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l krb5support
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l gssrpc
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l gssapi_krb5
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l krb5
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l k5crypto
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l com_err
        ld:open(): A file or directory in the path name does not exist.
    ld: 0706-006 Cannot find or open library file: -l krb5support
        ld:open(): A file or directory in the path name does not exist.
    make[3]: *** [client] Error 255
    make[3]: *** Waiting for unfinished jobs....
    make[3]: *** [server] Error 255
    make[3]: Leaving directory 
`/home/home/ac/lscharf/krb5/krb5-1.6.3/src/lib/rpc/unit-test'
    make[2]: *** [all-recurse] Error 1
    make[2]: Leaving directory 
`/home/home/ac/lscharf/krb5/krb5-1.6.3/src/lib/rpc'
    make[1]: *** [all-recurse] Error 1
    make[1]: Leaving directory `/home/home/ac/lscharf/krb5/krb5-1.6.3/src/lib'
    make: *** [all-recurse] Error 1

      


I've mucked around with LDFLAGS and -blibpath, attempting to include the 
src/lib/ directory in my build-environment, and I've gone as far as hard-coding 
the path into krb5-1.6.3/src/config/shlib.conf.  But that hasn't seemed to had 
any effect on the linking errors.

Does this ring a bell for anyone?

Thanks,
-Luke

________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

****
This message and any attachment are confidential, intended solely for the use 
of the individual or entity to whom it is addressed and may be protected by 
professional secrecy or intellectual property rights. 
If you have received it by mistake, or are not the named recipient(s), please 
immediately notify the sender and delete the message. You are hereby notified 
that any unauthorized use, copying or dissemination of any or all information 
contained in this message is prohibited. 
Arcelormittal shall not be liable for the message if altered, falsified, or in 
case of error in the recipient. 
This message does not constitute any right or commitment for ArcelorMittal 
except when expressly agreed otherwise in writing in a separate agreement.  
****  


________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

**** 
This message and any attachment are confidential, intended solely for the use 
of the individual or entity to whom it is addressed and may be protected by 
professional secrecy or intellectual property rights. 
If you have received it by mistake, or are not the named recipient(s), please 
immediately notify the sender and delete the message. You are hereby notified 
that any unauthorized use, copying or dissemination of any or all information 
contained in this message is prohibited. 
Arcelormittal shall not be liable for the message if altered, falsified, or in 
case of error in the recipient. 
This message does not constitute any right or commitment for ArcelorMittal 
except when expressly agreed otherwise in writing in a separate agreement.  
****  


________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

Reply via email to