bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] pkg-config, openssl


From: Michael Felt
Subject: Re: [Bug-wget] pkg-config, openssl
Date: Tue, 7 Jun 2016 23:34:46 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1



On 07-Jun-16 09:52, Tim Ruehsen wrote:
Hi Michael,

Unknown option: utf8
make: 1254-004 The error code from the last command is 1.
This should be solved by commit 302aa79abb17a2b621e2191723e5e2cf3ebc5dbb from
May 27. (Did you pull in the latest changes ?)
No. As a packager I try to work only from the distributions. If a patch is simple I apply it manually and then update the versioning, e.g., I would renumber to 1.17.1.X where X > 0 (when X==0 it is the original sources)
####
Author: Tim Rühsen <address@hidden>
Date:   Fri May 27 16:44:50 2016 +0200

     Fallback to pod2man without utf-8 on error

     * doc/Makefile.am: Fallback to pod2man without utf-8 on error
####

"/usr/include/sys/mman.h", line 115.9: 1506-236 (W) Macro name
MAP_FAILED has been redefined.
"/usr/include/sys/mman.h", line 115.9: 1506-358 (I) "MAP_FAILED" is
defined on line 156 of ../../src/wget-1.17.1/src/sysdep.h.
This is just a warning, but I'll push a fix soon.
I will send the "lines" from AIX so you know what it is redefining it to :)
"../../src/wget-1.17.1/src/html-url.c", line 632.16: 1506-068 (W)
Operation between types "char*" and "int" is not allowed.
"../../src/wget-1.17.1/src/http.c", line 3437.19: 1506-068 (W) Operation
between types "char*" and "int" is not allowed.
Also just warnings. These come if you have IRI support disabled. This happens
(if not requested manually) when libiconv and/or libidn are missing.
You should get IRI working - in the future, wget might not be compilable
without international URL support.
I will have to dig to see how AIX is providing IRI support. I know that there is iconv() support - but also that the GNU tests do not like the AIX implementation choices (they decided to call something invalid where the standard says it is "up to the implementation" - and AIX converts a legal input character to a space (ASC 32) when there is not a valid output character - (this is a choice conform with the standard) - while the GNU iconv() tests wants it to fail (also a valid choice conform with the IEEE standard). Equally often though, autotools are just looking for an include file that isn't there - and concludes there is no support (e.g., for bzip2 and/or zlib).

Many thanks for the fair warning!
Tim

On Tuesday 07 June 2016 00:21:03 Michael Felt wrote:
Hello Giuseppe,

Many thanks for your work and attention re: wget.

As you asked for "issues", I have one re: the hardness of wget relying
on pkg-config with regard to openssl. I have openssl installed, and I
even installed on older version of pkg-config to pass-by other tests.
But for AIX - pkg-config is not ever going to be reliable.

Using ./configure --with-ssl=openssl I end with:

configure: error: Package requirements (openssl) were not met:

No package 'openssl' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
buildaix: ${CONFIGURE} ... returned an error

+ grep configure: config.log
+ tail
configure:37284: $? = 0
configure:37293: result: yes
configure:37376: checking for OPENSSL
configure:37383: $PKG_CONFIG --exists --print-errors "openssl"
configure:37386: $? = 1
configure:37400: $PKG_CONFIG --exists --print-errors "openssl"
configure:37403: $? = 1
configure:37417: result: no
configure:37433: error: Package requirements (openssl) were not met:
configure: exit 1

Fortunately, this seems to be working:
xlc is /usr/vacpp/bin/xlc
          ../src/wget-1.17.1/configure\
                  --prefix=/opt \
                  --sysconfdir=/var/wget/etc\
                  --sharedstatedir=/var/wget/com\
                  --localstatedir=/var/wget\
                  --mandir=/usr/share/man\
                  --infodir=/opt/share/info/wget --with-ssl=openssl
--with-libssl-prefix=/usr

But it takes me three tries to get it right (first GNUTLS fails, :) )

So, nothing major, but pkg-config is not a guarantee for anything - and,
imho, installing it only disturbs my "generic" platform (i.e., I
reinstall AIX for each package to remove what becomes an unexpected
dependency).

Later - make fails with:
(stderr only)
+ make > .buildaix/make.out
"../../src/wget-1.17.1/src/html-url.c", line 632.16: 1506-068 (W)
Operation between types "char*" and "int" is not allowed.
"../../src/wget-1.17.1/src/http.c", line 3437.19: 1506-068 (W) Operation
between types "char*" and "int" is not allowed.
"/usr/include/sys/mman.h", line 115.9: 1506-236 (W) Macro name
MAP_FAILED has been redefined.
"/usr/include/sys/mman.h", line 115.9: 1506-358 (I) "MAP_FAILED" is
defined on line 156 of ../../src/wget-1.17.1/src/sysdep.h.
Unknown option: utf8
make: 1254-004 The error code from the last command is 1.

In closing - wget-1.16.3 I have packaged successfully - was requested to
package wget-1.17.1 - but not working yet. Maybe there is an additional
dependency that configure is not looking for (e.g., libiconv.so.X)

I do not expect you to know AIX and the AIX Toolbox - but I have none of
the RPMs from AIX Toolbox installed as that requires supporting 2
run-time environments in parallel (GNU and POSIX). I consider it too
hard to do both well.

address@hidden:[/data/prj/gnu/wget-1.17.1]rpm -qa
AIX-rpm-5.3.7.0-1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]