Re: mod_ssl and pkg-config on AIX (Re: [Vote] httpd 2.2.23 release)
Hi. Thanks for the answer. AIX does not have pkg-config standard. There is a version you can download from IBM (AIX Toolbox) in RPM format, but those tend to be old. I hear the main reason for not updating quickly is bedded in legal concerns. fyi - pkg-config new version is not a simple build. Has a dependency on a library and the embedded version does not compile with the IBM compiler. Feels like there is a dependency on gcc. I have not had the time to build a load a new sandbox to test that. Maybe this week. On Mon, Sep 3, 2012 at 7:11 AM, Kaspar Brand httpd-dev.2...@velox.chwrote: On 02.09.2012 14:04, Michael Felt wrote: The simple part first. AIX has a default install of openssl. -- however, the name of the library is libssl.a - see attachment for a filelist of what is included in openssl.base Ok, this also shows that the AIX package does not include a pkg-config file for OpenSSL (openssl.pc). There's nothing wrong with that, as long as AIX does not come with a bundled version of pkg-config, there's no strong argument to provide this file in the openssl.base package. running the pkg-config command by hand (not the newest version (0.25), so I will try updating that asap it gives the same error. I could not find a pkg-config command to tell me it's default search path - maybe it is not looking in /usr/include/openssh. By default it's looking for openssl.pc in the directories /usr/lib/pkgconfig or /usr/share/pkgconfig (or whatever was specified for libdir and datadir when pkg-config was compiled). Thanks for the reply - I'll update pkg-config and see it that helps. This won't change anything, I guess. As mentioned before, what you're seeing is pretty much the expected behavior (the stderr output could also be silenced by adding --silence-errors to the first $PKGCONFIG command in acinclude.m4/configure). Kaspar
Re: mod_ssl and pkg-config on AIX (Re: [Vote] httpd 2.2.23 release)
The simple part first. AIX has a default install of openssl. -- however, the name of the library is libssl.a - see attachment for a filelist of what is included in openssl.base running the pkg-config command by hand (not the newest version (0.25), so I will try updating that asap it gives the same error. I could not find a pkg-config command to tell me it's default search path - maybe it is not looking in /usr/include/openssh. Thanks for the reply - I'll update pkg-config and see it that helps. On Sat, Sep 1, 2012 at 8:29 AM, Kaspar Brand httpd-dev.2...@velox.chwrote: On 27.08.2012 15:42, Michael Felt wrote: FYI: I get an error message from configure that I do not understand. + ./configure --enable-layout=AIX --with-apr=/opt/bin/apr-1-config --with-apr-util=/opt/bin/apu-1-config --with-mpm=worker --enable-ssl --enable-mods-shared=all build/aix/configure.out Package openssl was not found in the pkg-config search path. Perhaps you should add the directory containing `openssl.pc' to the PKG_CONFIG_PATH environment variable No package 'openssl' found Does AIX come with a bundled version of OpenSSL (under /usr or similar)? How does the configure output look like after the checking whether to enable mod_ssl... line (up to checking whether to enable mod_optional_hook_export...)? With 2.2.x, configure will try pkg-config for figuring out the -l, -I and -L flags - and fall back to -lssl -lcrypto if pkg-config fails for some reason: if test $ap_ssltk_type = openssl; then if test x$ap_ssltk_base != x -a \ -f ${ap_ssltk_base}/lib/pkgconfig/openssl.pc; then dnl Ensure that the given path is used by pkg-config too, otherwise dnl the system openssl.pc might be picked up instead. PKG_CONFIG_PATH=${ap_ssltk_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH} export PKG_CONFIG_PATH fi if test -n $PKGCONFIG; then ap_ssltk_libs=`$PKGCONFIG --libs-only-l openssl` if test $? -eq 0; then pkglookup=`$PKGCONFIG --cflags-only-I openssl` APR_ADDTO(CPPFLAGS, [$pkglookup]) APR_ADDTO(INCLUDES, [$pkglookup]) pkglookup=`$PKGCONFIG --libs-only-L --libs-only-other openssl` APR_ADDTO(LDFLAGS, [$pkglookup]) else ap_ssltk_libs=-lssl -lcrypto `$apr_config --libs` fi else ap_ssltk_libs=-lssl -lcrypto `$apr_config --libs` fi fi However, the packaging proceeds fine. It's kind of expected behavior, yes. Replacing ap_ssltk_libs=`$PKGCONFIG --libs-only-l openssl` by ap_ssltk_libs=`$PKGCONFIG --libs-only-l openssl 2/dev/null` would suppress the (perhaps confusing) message. Kaspar openssl filelist.text Description: Binary data
Re: mod_ssl and pkg-config on AIX (Re: [Vote] httpd 2.2.23 release)
On 02.09.2012 14:04, Michael Felt wrote: The simple part first. AIX has a default install of openssl. -- however, the name of the library is libssl.a - see attachment for a filelist of what is included in openssl.base Ok, this also shows that the AIX package does not include a pkg-config file for OpenSSL (openssl.pc). There's nothing wrong with that, as long as AIX does not come with a bundled version of pkg-config, there's no strong argument to provide this file in the openssl.base package. running the pkg-config command by hand (not the newest version (0.25), so I will try updating that asap it gives the same error. I could not find a pkg-config command to tell me it's default search path - maybe it is not looking in /usr/include/openssh. By default it's looking for openssl.pc in the directories /usr/lib/pkgconfig or /usr/share/pkgconfig (or whatever was specified for libdir and datadir when pkg-config was compiled). Thanks for the reply - I'll update pkg-config and see it that helps. This won't change anything, I guess. As mentioned before, what you're seeing is pretty much the expected behavior (the stderr output could also be silenced by adding --silence-errors to the first $PKGCONFIG command in acinclude.m4/configure). Kaspar
mod_ssl and pkg-config on AIX (Re: [Vote] httpd 2.2.23 release)
On 27.08.2012 15:42, Michael Felt wrote: FYI: I get an error message from configure that I do not understand. + ./configure --enable-layout=AIX --with-apr=/opt/bin/apr-1-config --with-apr-util=/opt/bin/apu-1-config --with-mpm=worker --enable-ssl --enable-mods-shared=all build/aix/configure.out Package openssl was not found in the pkg-config search path. Perhaps you should add the directory containing `openssl.pc' to the PKG_CONFIG_PATH environment variable No package 'openssl' found Does AIX come with a bundled version of OpenSSL (under /usr or similar)? How does the configure output look like after the checking whether to enable mod_ssl... line (up to checking whether to enable mod_optional_hook_export...)? With 2.2.x, configure will try pkg-config for figuring out the -l, -I and -L flags - and fall back to -lssl -lcrypto if pkg-config fails for some reason: if test $ap_ssltk_type = openssl; then if test x$ap_ssltk_base != x -a \ -f ${ap_ssltk_base}/lib/pkgconfig/openssl.pc; then dnl Ensure that the given path is used by pkg-config too, otherwise dnl the system openssl.pc might be picked up instead. PKG_CONFIG_PATH=${ap_ssltk_base}/lib/pkgconfig${PKG_CONFIG_PATH+:}${PKG_CONFIG_PATH} export PKG_CONFIG_PATH fi if test -n $PKGCONFIG; then ap_ssltk_libs=`$PKGCONFIG --libs-only-l openssl` if test $? -eq 0; then pkglookup=`$PKGCONFIG --cflags-only-I openssl` APR_ADDTO(CPPFLAGS, [$pkglookup]) APR_ADDTO(INCLUDES, [$pkglookup]) pkglookup=`$PKGCONFIG --libs-only-L --libs-only-other openssl` APR_ADDTO(LDFLAGS, [$pkglookup]) else ap_ssltk_libs=-lssl -lcrypto `$apr_config --libs` fi else ap_ssltk_libs=-lssl -lcrypto `$apr_config --libs` fi fi However, the packaging proceeds fine. It's kind of expected behavior, yes. Replacing ap_ssltk_libs=`$PKGCONFIG --libs-only-l openssl` by ap_ssltk_libs=`$PKGCONFIG --libs-only-l openssl 2/dev/null` would suppress the (perhaps confusing) message. Kaspar