List:Packagers« Previous MessageNext Message »
From:Maciej (Matchek) Bliziński Date:October 9 2011 9:46am
Subject:Finding system SSL
View as plain text  
Hello,

I'm working on a MySQL 5.5 build. When I'm building the 64-bit
version, it fails to find the system SSL libraries.  I'm setting
LDFLAGS to "-m64 -xarch=sparc -L/opt/csw/lib/64", which should help
the build system find the 64-bit library which lives in the
/opt/csw/lib/64 directory (it's a symlink to /opt/csw/lib/sparcv9).
But the build system is unable to find the library.  How can I hint
the build system as to where the library is?

(cd work/solaris9-sparc/build-isa-sparcv9/mysql-5.5.16 && \
        /usr/bin/env -i \
         
PATH="/opt/csw/gnu:/home/maciej/src/opencsw/.buildsys/v2/gar/bin/sos12-wrappers:/home/maciej/src/opencsw/pkg/mysql5/branches/mysql-5.5.x/work/solaris9-sparc/
install-isa-sparcv9/opt/csw/bin/sparcv9:/home/maciej/src/opencsw/pkg/mysql5/branches/mysql-5.5.x/work/solaris9-sparc/install-isa-sparcv9/opt/csw/bin:/home/maciej/src/o
pencsw/pkg/mysql5/branches/mysql-5.5.x/work/solaris9-sparc/install-isa-sparcv9/opt/csw/sbin/sparcv9:/home/maciej/src/opencsw/pkg/mysql5/branches/mysql-5.5.x/work/solar
is9-sparc/install-isa-sparcv9/opt/csw/sbin:/opt/csw/bin/sparcv9:/opt/csw/bin:/opt/csw/sbin/sparcv9:/opt/csw/sbin:/opt/SUNWspro/bin:/home/maciej/src/opencsw/.buildsys/v
2/gar/bin:/usr/bin:/usr/sbin:/usr/java/bin:/usr/ccs/bin:/usr/openwin/bin"
prefix="/opt/csw" exec_prefix="/opt/csw" bindir="/opt/csw/bin/sparcv9"
sbindir="/opt/csw/sbin
/sparcv9" libexecdir="/opt/csw/libexec/sparcv9"
datadir="/opt/csw/share/mysql/5.5" sysconfdir="/etc/opt/csw"
sharedstatedir="/opt/csw/share" localstatedir="/var/opt/cs
w/mysql55" libdir="/opt/csw/lib/64" infodir="/opt/csw/share/info"
lispdir="/opt/csw/share/emacs/site-lisp" includedir="/opt/csw/include"
mandir="/opt/csw/share/man" do
cdir="/opt/csw/share/doc" sourcedir="/opt/csw/src"
CPPFLAGS="-I/opt/csw/include" CFLAGS="-xO3 -m64 -xarch=sparc"
CXXFLAGS="-xO3 -m64 -xarch=sparc" LDFLAGS="-m64 -xarch
=sparc -L/opt/csw/lib/64" FFLAGS="-xO3 -m64 -xarch=sparc"
FCFLAGS="-xO3 -m64 -xarch=sparc" ASFLAGS="" OPTFLAGS="-xO3 -m64
-xarch=sparc" CC="/opt/SUNWspro/bin/cc" CXX="
/opt/SUNWspro/bin/CC" CC_HOME="/opt/SUNWspro" CC_VERSION="Sun C 5.9
SunOS_sparc Patch 124867-16 2010/08/11" CXX_VERSION="Sun C++ 5.9
SunOS_sparc Patch 124863-27 2011/0
8/09" GARCH="sparc" GAROSREL="5.9" GARPACKAGE="mysql-5.5.x"
LD_OPTIONS="-R/opt/csw/lib/\$ISALIST -R/opt/csw/lib/64"
PKG_CONFIG_PATH="/opt/csw/lib/64/pkgconfig" DESTDIR
="/home/maciej/src/opencsw/pkg/mysql5/branches/mysql-5.5.x/work/solaris9-sparc/install-isa-sparcv9"
\
                cmake . \
                -DCMAKE_INSTALL_PREFIX=/opt/csw
-DMYSQL_DATADIR=/var/opt/csw/mysql55 -DSYSCONFDIR=/etc/opt/csw
-DINSTALL_BINDIR=bin/sparcv9 -DINSTALL_SBINDIR=libexec/s
parcv9 -DINSTALL_MANDIR=share/man -DINSTALL_LIBDIR=lib/64
-DINSTALL_PLUGINDIR=lib/64/mysql55/64/plugin -DWITH_READLINE=1
-DWITH_SSL=system -DWITH_ZLIB=system -DDEFAULT
_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
-DWITH_COMMENT='OpenCSW' -DCMAKE_C_FLAGS="-xO3 -m64 -xarch=sparc"
-DCMAKE_CXX_FLAGS="-xO3 -m64 -xarch=sparc" -DBUILD_
CONFIG=mysql_release)
-- MySQL 5.5.16
CMake Error at cmake/ssl.cmake:83 (MESSAGE):
  Cannot find appropriate system libraries for SSL.  Use WITH_SSL=bundled to
  enable SSL support
Call Stack (most recent call first):
  CMakeLists.txt:255 (MYSQL_CHECK_SSL)

I don't want to use the bundled SSL.  The SSL library is already
compiled for OpenCSW, and in case there is a security update, we don't
want to have two SSL libraries to upgrade.

To help with the linking, all that is needed, is passing
-L/opt/csw/lib/64 to the linker.  Do you have any advice?

Maciej
Thread
Finding system SSLMatchek) Bliziński9 Oct