On 3/12/2019 7:06 PM, 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
>
> The output from the configure is:
>
>   Host setup:       powerpc-ibm-aix7.2.0.0
>   Install prefix:   /usr/local/curl-7.64.0
>   Compiler:         xlc
>    CFLAGS:          -O2 -pthread
>    CPPFLAGS:        -qthreaded -qnoansialias -qhalt=e 
> -I/usr/local/openssl-1.1.1a/include 
> -I/usr/local/openssl-1.1.1a/include/openssl
>    LDFLAGS:         -L/usr/local/openssl-1.1.1a/lib
>    LIBS:            -lssl -lcrypto
>
>   curl version:     7.64.0
>   SSL support:      enabled (OpenSSL)
>   SSH support:      no      (--with-libssh2)
>   zlib support:     no      (--with-zlib)
>   brotli support:   no      (--with-brotli)
>   GSS-API support:  no      (--with-gssapi)
>   TLS-SRP support:  enabled
>   resolver:         POSIX threaded
>   IPv6 support:     no      (--enable-ipv6)
>   Unix sockets support: enabled
>   IDN support:      no      (--with-{libidn2,winidn})
>   Build libcurl:    Shared=no, Static=yes
>   Built-in manual:  enabled
>   --libcurl option: enabled (--disable-libcurl-option)
>   Verbose errors:   enabled (--disable-verbose)
>   Code coverage:    disabled
>   SSPI support:     no      (--enable-sspi)
>   ca cert bundle:   no
>   ca cert path:     no
>   ca fallback:      no
>   LDAP support:     no      (--enable-ldap / --with-ldap-lib / 
> --with-lber-lib)
>   LDAPS support:    no      (--enable-ldaps)
>   RTSP support:     enabled
>   RTMP support:     no      (--with-librtmp)
>   metalink support: no      (--with-libmetalink)
>   PSL support:      no      (libpsl not found)
>   HTTP2 support:    disabled (--with-nghttp2)
>   Protocols:        DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS POP3 
> POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP
>
> All throughout the build, I see these messages:
>
>   CC       ../../lib/tftpd-memdebug.o
> /opt/IBM/xlC/13.1.0/bin/.orig/cc: 1501-210 (W) command option t contains an 
> incorrect subargument
>
> And finally the build fails with:
>
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
> ld: 0711-317 ERROR: Undefined symbol: .pthread_join
> ld: 0711-317 ERROR: Undefined symbol: .pthread_create
> ld: 0711-317 ERROR: Undefined symbol: .pthread_detach
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> make: The error code from the last command is 8.
>
> Any advice?


For verbose run make V=1

Possibly some bug with -pthread being used instead of -lpthread and some
library needs the latter (but didn't specify it for some reason? what?)?
I don't know...




-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to