Bug 227909 - ftp/curl: configuration of curl fails
Summary: ftp/curl: configuration of curl fails
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-01 19:43 UTC by Leon Dietrich
Modified: 2018-05-11 18:15 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
The build log (33.66 KB, text/plain)
2018-05-01 19:43 UTC, Leon Dietrich
no flags Details
The requested config.log (236.85 KB, text/plain)
2018-05-05 08:25 UTC, Leon Dietrich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leon Dietrich 2018-05-01 19:43:20 UTC
Created attachment 192981 [details]
The build log

Configuration of curl fails. Not all required libraries are available at runtime. See the attached log for further details.
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2018-05-02 17:04:22 UTC
Please provide config.log for the investigation of missing library.

===>  Script "configure" failed unexpectedly.
Please report the problem to sunpoet@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/ftp/curl/work/curl-7.59.0/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1
Comment 2 Leon Dietrich 2018-05-02 18:57:34 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #1)
Im sorry. Due to me using poudriere there's no such file.
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2018-05-02 19:08:21 UTC
When there's an error, poudriere packed the wrkdir as a tarball. You could see the path on the console while running poudriere. You have to find the tarball and extract config.log from it.
Comment 4 Leon Dietrich 2018-05-02 19:29:20 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #3)
My poudriere wasn't configured to store the WRKDIR's. It's set to do so now. I'll let it rebuild everything and upload the log tomorrow.
Comment 5 Leon Dietrich 2018-05-05 08:25:29 UTC
Created attachment 193056 [details]
The requested config.log

Please respond if you need further files.
Comment 6 Po-Chuan Hsieh freebsd_committer freebsd_triage 2018-05-05 08:46:37 UTC
Please check your dns/libpsl.

configure:28554: checking run-time libs availability
configure:28571: cc -o conftest -isystem /usr/include -O2 -pipe -fstack-protector -DLDAP_DEPRECATED -isystem /usr/local/include -fno-strict-aliasing -Qunused-arguments -isystem /usr/include -isystem /usr/include -isystem /usr/local/include  -I/usr/include   -I/usr/include/openssl -I/usr/local/include  -I/usr/local/include  -I/usr/local/include  -I/usr/local/include  -L/usr/lib  -L/usr/lib -L/usr/lib -L/usr/lib -fstack-protector   -L/usr/local/lib  -L/usr/local/lib  -L/usr/local/lib  -L/usr/local/lib  conftest.c -lnghttp2  -lidn2  -lrtmp -lz  -lssh2 -lssh2  -lpsl -lssl -lcrypto -L/usr/lib -lgssapi -lgssapi_krb5 -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lwind -lheimbase -lroken -lcrypt -pthread -lldap -llber -lz -lkrb5 -lgssapi -lgssapi_krb5 -lcrypto -lkrb5 -lgssapi -lgssapi_krb5 -L/usr/local/lib >&5
conftest.c:120:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main()
^
1 warning generated.
/usr/bin/ld: warning: libintl.so.8, needed by /usr/local/lib/libpsl.so, not found (try using -rpath or -rpath-link)
configure:28571: $? = 0
configure:28571: ./conftest
Shared object "libintl.so.8" not found, required by "libpsl.so.5"
configure:28571: $? = 1
configure: program exited with status 1
Comment 7 Po-Chuan Hsieh freebsd_committer freebsd_triage 2018-05-05 08:47:33 UTC
It should be similar as follows:

% ldd /usr/local/lib/libpsl.so
/usr/local/lib/libpsl.so:
        libidn2.so.0 => /usr/local/lib/libidn2.so.0 (0x801210000)
        libunistring.so.2 => /usr/local/lib/libunistring.so.2 (0x80142d000)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x8017dd000)
        libc.so.7 => /lib/libc.so.7 (0x800824000)
Comment 8 Leon Dietrich 2018-05-05 10:20:33 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #7)

The installation of that library seems fine. ldd outputs the following:

/usr/local/lib/libpsl.so:
	libicuuc.so.61 => /usr/local/lib/libicuuc.so.61 (0x801210000)
	libicudata.so.61 => /usr/local/lib/libicudata.so.61 (0x8015e2000)
	libintl.so.8 => /usr/local/lib/libintl.so.8 (0x8017e3000)
	libc.so.7 => /lib/libc.so.7 (0x800824000)
	libthr.so.3 => /lib/libthr.so.3 (0x8019ee000)
	libm.so.5 => /lib/libm.so.5 (0x801c16000)
	libc++.so.1 => /usr/lib/libc++.so.1 (0x801e41000)
	libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x802108000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x802326000)
Comment 9 Po-Chuan Hsieh freebsd_committer freebsd_triage 2018-05-05 17:49:26 UTC
Please update your ports tree and rebuild dns/libpsl. It should be fixed now.
Comment 10 Leon Dietrich 2018-05-11 18:15:07 UTC
(In reply to Sunpoet Po-Chuan Hsieh from comment #9)

FIXED: I can confirm: The bug is fixed and it's working fine.