curl / Mailing Lists / curl-library / Single Mail

curl-library

RE: Problem building curl 7.64.0 on AIX 7.2 using xlc 13.1.0

From: Michael Schultz via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 14 Mar 2019 15:20:00 +0000

-----Original Message-----
From: Michael [mailto:aixtools_at_felt.demon.nl]
Sent: Thursday, March 14, 2019 2:01 AM
To: libcurl development <curl-library_at_cool.haxx.se>
Cc: Michael Schultz <Michael.Schultz_at_microfocus.com>
Subject: Re: Problem building curl 7.64.0 on AIX 7.2 using xlc 13.1.0

On 13/03/2019 00:06, Michael Schultz via curl-library wrote:
> I have built a previous version of curl on this AIX 7.2 machine without incident, but I'm having trouble with curl 7.64.0. It may be due to the version of the xlc compiler, but since I've built with this C compiler before, it may also be a bug in 7.64.0, so it's worth reporting it.
>
> My configure is:
>
> ./configure --disable-shared --disable-ipv6 --disable-ldap
> --without-zlib --without-libidn --with-ssl=/usr/local/openssl-1.1.1a
> --prefix=/usr/local/curl-7.64.0

I sent a longer reply - and my local mail shows two versions - from before I pressed send, and not the final version.

Summary: I think your issue is your "local" openssl. Use -bloadmap or -bnoquiet. I think you will find something unresolved coming from them.

e.g. use:

xlc -O2 -pthread -o curl curl-slist_wc.o curl-tool_binmode.o curl-tool_bname.o curl-tool_cb_dbg.o curl-tool_cb_hdr.o curl-tool_cb_prg.o curl-tool_cb_rea.o curl-tool_cb_see.o curl-tool_cb_wrt.o curl-tool_cfgable.o curl-tool_convert.o curl-tool_dirhie.o curl-tool_doswin.o curl-tool_easysrc.o curl-tool_filetime.o curl-tool_formparse.o curl-tool_getparam.o curl-tool_getpass.o curl-tool_help.o curl-tool_helpers.o curl-tool_homedir.o curl-tool_hugehelp.o curl-tool_libinfo.o curl-tool_main.o curl-tool_metalink.o curl-tool_msgs.o curl-tool_operate.o curl-tool_operhlp.o curl-tool_panykey.o curl-tool_paramhlp.o curl-tool_parsecfg.o curl-tool_strdup.o curl-tool_setopt.o curl-tool_sleep.o curl-tool_urlglob.o curl-tool_util.o curl-tool_vms.o curl-tool_writeout.o curl-tool_xattr.o ../lib/curl-strtoofft.o ../lib/curl-nonblock.o ../lib/curl-warnless.o ../lib/curl-curl_ctype.o -L/usr/local/openssl-1.1.1a/lib ../lib/.libs/libcurl.a -lssl -lcrypto -pthread -bnoquiet

or

xlc -O2 -pthread -o curl curl-slist_wc.o curl-tool_binmode.o curl-tool_bname.o curl-tool_cb_dbg.o curl-tool_cb_hdr.o curl-tool_cb_prg.o curl-tool_cb_rea.o curl-tool_cb_see.o curl-tool_cb_wrt.o curl-tool_cfgable.o curl-tool_convert.o curl-tool_dirhie.o curl-tool_doswin.o curl-tool_easysrc.o curl-tool_filetime.o curl-tool_formparse.o curl-tool_getparam.o curl-tool_getpass.o curl-tool_help.o curl-tool_helpers.o curl-tool_homedir.o curl-tool_hugehelp.o curl-tool_libinfo.o curl-tool_main.o curl-tool_metalink.o curl-tool_msgs.o curl-tool_operate.o curl-tool_operhlp.o curl-tool_panykey.o curl-tool_paramhlp.o curl-tool_parsecfg.o curl-tool_strdup.o curl-tool_setopt.o curl-tool_sleep.o curl-tool_urlglob.o curl-tool_util.o curl-tool_vms.o curl-tool_writeout.o curl-tool_xattr.o ../lib/curl-strtoofft.o ../lib/curl-nonblock.o ../lib/curl-warnless.o ../lib/curl-curl_ctype.o -L/usr/local/openssl-1.1.1a/lib ../lib/.libs/libcurl.a -lssl -lcrypto -pthread -bloadmap:curl.map

And read the contents of curl.map.

Michael

p.s. I have a pre-packaged version, if you want to test-drive it, in installp format. Installs to /opt/bin/curl so it should not step on anything "local". See http://www.aixtools.net/index.php/curl (wiki page) or just grab it from http://download.aixtools.net/tools/aixtools.curl.7.64.0.0.I

=======
Michael,

Thanks for your response, but I really think that the issue is a missing -l for the pthread library. It could be that you have a later xlc compiler than I have, but the one that I've got complains about the option t containing an incorrect subargument. The problem with that statement is that there is no -t argument on the xlc command line. However, when I look at the xlc documentation, the -p option has nothing to do with threads, and so I'm thinking that the C compiler is complaining about an unknown subargument t to the -p option. I'm not an AIX expert, so I'll willing to be wrong about this, but it's a working theory for now. It may be that I need to build openssl such that it already includes a reference to the pthread library. I can try that.

Mike S

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-03-14