New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #18276 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

wget: locale and ssl support missing with +universal variant

Reported by: ryandesign@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: wget

Description

When installed with the +universal variant, wget is missing the message catalogs in the locale directory and wget doesn't link with libintl, libssl or libcrypto.

Here's the non-universal build which works:

$ sudo port -d install wget > wget.txt 2>&1
$ wget https://trac.macports.org/
--2009-01-29 21:17:56--  https://trac.macports.org/
Resolving trac.macports.org... 17.254.17.55
Connecting to trac.macports.org|17.254.17.55|:443... connected.
ERROR: cannot verify trac.macports.org's certificate, issued by `/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287':
  Self-signed certificate encountered.
To connect to trac.macports.org insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
$ LANG=de wget
wget: URL fehlt
Syntax: wget [OPTION]... [URL]...

>>wget --help<< gibt weitere Informationen.
$

Here's the universal build which is broken:

$ sudo port deactivate wget
--->  Deactivating wget
$ sudo port -d install wget +universal > wget-universal.txt 2>&1
$ wget https://trac.macports.org/
https://trac.macports.org/: Unsupported scheme.
$ LANG=de wget
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
$

Note the differences in what libraries are being linked with:

$ cd /opt/local/var/macports/software/wget
$ diff -rq 1.11.4_2 1.11.4_2+universal 
Files 1.11.4_2/opt/local/bin/wget and 1.11.4_2+universal/opt/local/bin/wget differ
Only in 1.11.4_2/opt/local/share: locale
Files 1.11.4_2/opt/local/share/man/man1/wget.1.gz and 1.11.4_2+universal/opt/local/share/man/man1/wget.1.gz differ
$ otool -L 1.11.4_2/opt/local/bin/wget
1.11.4_2/opt/local/bin/wget:
        /opt/local/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11)
        /opt/local/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
        /opt/local/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
$ otool -L 1.11.4_2+universal/opt/local/bin/wget
1.11.4_2+universal/opt/local/bin/wget:
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.9)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
$ 

Attachments

wget.txt Download (75.0 KB) - added by ryandesign@… 3 years ago.
wget-universal.txt Download (41.9 KB) - added by ryandesign@… 3 years ago.

Change History

Changed 3 years ago by ryandesign@…

Changed 3 years ago by ryandesign@…

Changed 3 years ago by ryandesign@…

Could be related to problems building recode +universal in #17925.

Changed 3 years ago by ryandesign@…

As was the case with recode, this appears to be Tiger-specific; on Leopard, it builds universal correctly without help.

Changed 3 years ago by ryandesign@…

The gettext issue can be fixed by adding -liconv to configure.ldflags, as was done for recode in r46175. That still leaves the ssl issue.

Changed 3 years ago by ryandesign@…

openssl needs zlib, so we need to add -lz to get that to work.

Changed 3 years ago by ryandesign@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r46176. I used pkgconfig to read openssl's ldflags rather than just adding -lz. gettext doesn't install a pkgconfig file so I couldn't use that strategy there.

Changed 3 years ago by ryandesign@…

r46176 broke the portindex because it called pkg-config even before it had (definitely) been installed. Fixed in r46216.  Thanks to Rainer for noticing.

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.