[20155] in Kerberos_V5_Development
Re: Compiling krb5 1.18.2 on AIX 7.1
daemon@ATHENA.MIT.EDU (Norm Green)
Fri Aug 21 15:38:32 2020
To: krbdev@mit.edu
From: Norm Green <norm.green@gemtalksystems.com>
Message-ID: <a488bcbf-d334-dec7-cce7-a14850d1512b@gemtalksystems.com>
Date: Fri, 21 Aug 2020 12:38:15 -0700
MIME-Version: 1.0
In-Reply-To: <DM6PR17MB3563F5087F3194A9638C7607B25B0@DM6PR17MB3563.namprd17.prod.outlook.com>
Content-Language: en-US
Content-Type: text/plain; charset="utf-8"
Errors-To: krbdev-bounces@mit.edu
Content-Transfer-Encoding: 8bit
On AIX, you should always link with the compiler, in this case, xlc_r .
Calling ld directly is a bad idea. Not sure if this is causing your
problem.
Norm Green
On 8/21/20 12:30 PM, Louis Fernandez wrote:
> Hello,
> This topic has come up a few times in the past over the years, most recently (that I saw) was this thread: http://mailman.mit.edu/pipermail/krbdev/2019-April/013091.html. I am seeing an error that hasn't been documented in these threads, so far as I can tell.
>
> When running the make on AIX 7.1, I get the following error:
>
> + /bin/ld -o k5tls.so openssl.o notls.o -H512 -T512 -bnoentry -bgcbypass:1 -bnodelcsect -bfilelist -bM:SRE -bE:./k5tls.exports -bernotok -brtl -L../../../lib -lkrb5 -lkrb5support -lssl -lcrypto -pthread -brtl -lc
> ld: 0706-026 The -b filelist option is ignored.
> ld: 0706-012 The -p flag is not recognized.
> ld: 0706-012 The -t flag is not recognized.
> ld: 0706-012 The -h flag is not recognized.
> make: The error code from the last command is 255.
> Stop.
> make: The error code from the last command is 1.
> Stop.
>
> The steps I've taken so far:
>
> Update krb5-1.18.2\src\config\shlib.conf
> *-*-aix5*)
> ->
> *-*-aix[567]*)
>
> Update krb5-1.18.2\src\configure
> TLS_IMPL_LIBS="-lssl -lcrypto"
> ->
> TLS_IMPL_LIBS="-lssl -lcrypto -pthread"
>
> Run
> export CC="xlc_r"
> ./configure CFLAGS="-qlanglvl=extc99" LDFLAGS=-brtl
>
>
> I rarely run C builds, and even less frequently on AIX, so I'm not sure if I'm missing something obvious. Any advice would be appreciated.
>
> --Louis Fernandez
> _______________________________________________
> krbdev mailing list krbdev@mit.edu
> https://mailman.mit.edu/mailman/listinfo/krbdev
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev