Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2003 15:34:20 -0800
From:      Doug Silver <dsilver@urchin.com>
To:        freebsd-ports@freebsd.org
Subject:   Clarification on ports openssl
Message-ID:  <200303211533.58366.dsilver@urchin.com>

next in thread | raw e-mail | index | archive | help
I have the latest openssl port installed and the following in make.conf b=
ut it=20
seemed to get ignored during the build:
[mod_php4]# egrep -i openssl /etc/make.conf
USE_OPENSSL_PORT=3Dyes
OPENSSLBASE=3D    /usr/local
OPENSSLDIR=3D     /usr/local/etc/ssl

So I forced the issue:

< CONFIGURE_ENV+=3D       LIBS=3D' -L${OPENSSLBASE}/lib -lcrypto -lssl'
---
> #CONFIGURE_ENV+=3D      LIBS=3D' -L${OPENSSLBASE}/lib -lcrypto -lssl'
> CONFIGURE_ENV+=3D       LIBS=3D' -L/usr/local/lib -lcrypto -lssl'

However even that doesn't seem to work:
[snip from end of "make" ]
/usr/local/lib/libc-client4.so: warning: tmpnam() possibly used unsafely;=
=20
consider using mkstemp()
/usr/libexec/elf/ld: warning: libcrypto.so.2, needed by=20
/usr/local/lib/libc-client4.so, may conflict with libcrypto.so.3

# ldd work/php-4.3.1/.libs/libphp4.so
work/php-4.3.1/.libs/libphp4.so:
        libcrypto.so.2 =3D> /usr/lib/libcrypto.so.2 (0x2825a000)
        libssl.so.2 =3D> /usr/lib/libssl.so.2 (0x28313000)
        libc-client4.so.8 =3D> /usr/local/lib/libc-client4.so.8 (0x2833f0=
00)
        libpspell.so.15 =3D> /usr/local/lib/libpspell.so.15 (0x283f0000)
        libpq.so.3 =3D> /usr/local/lib/libpq.so.3 (0x283f2000)
        libcrypt.so.2 =3D> /usr/lib/libcrypt.so.2 (0x28407000)
        libpam.so.1 =3D> /usr/lib/libpam.so.1 (0x28420000)
        libiconv.so.3 =3D> /usr/local/lib/libiconv.so.3 (0x28429000)
        libintl.so.4 =3D> /usr/local/lib/libintl.so.4 (0x28504000)
        libz.so.2 =3D> /usr/lib/libz.so.2 (0x2850c000)
        libm.so.2 =3D> /usr/lib/libm.so.2 (0x28519000)
        libxml2.so.5 =3D> /usr/local/lib/libxml2.so.5 (0x28535000)
        libc.so.4 =3D> /usr/lib/libc.so.4 (0x28069000)
        libssl.so.3 =3D> /usr/local/lib/libssl.so.3 (0x28612000)
        libaspell.so.15 =3D> /usr/local/lib/libaspell.so.15 (0x28640000)
        libstdc++.so.3 =3D> /usr/lib/libstdc++.so.3 (0x2870b000)
        libcrypto.so.3 =3D> /usr/local/lib/libcrypto.so.3 (0x28750000)

# ldd /usr/local/lib/libc-client4.so.8
/usr/local/lib/libc-client4.so.8:
        libpam.so.1 =3D> /usr/lib/libpam.so.1 (0x281b5000)
        libssl.so.3 =3D> /usr/local/lib/libssl.so.3 (0x281be000)
        libcrypto.so.2 =3D> /usr/lib/libcrypto.so.2 (0x281ec000)
        libcrypt.so.2 =3D> /usr/lib/libcrypt.so.2 (0x282a5000)

I realize the cclient is the problem, but beyond hacking the code to link=
=20
libcrypto to /usr/local I wanted to check here first.  Am I missing somet=
hing=20
that should be set in /etc/make.conf or elsewhere?  I see from a January=20
thread that Dirk wrote:
Subject:   Re: USE_OPENSSL and openssl from ports...
right...

USE_OPENSSL is defunct, see PR from June 2002:
http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/39054

--=20

But from that PR it seems like there should be a Mk/bsd.openssl.mk file, =
or=20
perhaps it was merged into the main bsd.port.mk?  Even so, how should the=
=20
openssl port be maintened so other ports link against it instead of the b=
ase=20
one?  I hope the answer isn't to overwrite the base ;)


TIA.

-Doug

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303211533.58366.dsilver>