Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jul 2023 17:09:36 +0200
From:      Moin Rahman <bofh@freebsd.org>
To:        KIRIYAMA Kazuhiko <kiri@truefc.org>
Cc:        Hiroo Ono <hiroo@oikumene.net>, Yasuhiro Kimura <yasu@FreeBSD.org>, yuri@aetern.org, ports@freebsd.org
Subject:   Re: devel/mongo-c-driver failed with undefined reference due to --no-allow-shlib-undefined: ERR_load_BIO_strings
Message-ID:  <8F8316AA-BC36-40CB-9D98-28BFAC99AFB8@freebsd.org>
In-Reply-To: <202307271311.36RDBt6h090830@kx.truefc.org>
References:  <20230727110225.6cc13af4@nowhere.oikumene.ukehi.net> <20230727.141523.508759182737262133.yasu@FreeBSD.org> <20230727.145511.1697988446343021363.yasu@FreeBSD.org> <20230727.170728.1696216470137112287.yasu@FreeBSD.org> <20230727213020.2601092a@nowhere.oikumene.ukehi.net> <202307271311.36RDBt6h090830@kx.truefc.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_808CF249-7108-43B3-BB49-51671B27E7AE
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii



> On Jul 27, 2023, at 3:11 PM, KIRIYAMA Kazuhiko <kiri@truefc.org> =
wrote:
>=20
> On Thu, 27 Jul 2023 21:30:20 +0900,
> Hiroo Ono wrote:
>>=20
>> On Thu, 27 Jul 2023 17:07:28 +0900 (JST)
>> Yasuhiro Kimura <yasu@FreeBSD.org> wrote:
>>=20
>>> From: Yasuhiro Kimura <yasu@FreeBSD.org>
>>> Subject: Re: devel/mongo-c-driver failed with undefined reference =
due
>>> to --no-allow-shlib-undefined: ERR_load_BIO_strings Date: Thu, 27 =
Jul
>>> 2023 14:55:11 +0900 (JST)
>>>=20
>>>>> I tried build with poudriere and following 2 jails.
>>>>>=20
>>>>> * 13.2-RELEASE-p1 amd64
>>>>> * 14.0-CURRENT main-n264279-92fd2f39e5b amd64
>>>>>=20
>>>>> And build with the former succeeds but build with the latter fails
>>>>> with same error as KIRIYAMA-san.
>>>>=20
>>>> I added 'DEFAULT_VERSIONS+=3Dssl=3Dopenssl30' and tried build with
>>>> poudriere and 13.2-RELEASE-p1 amd64 jail. Then build fails with =
same
>>>> error as 14-CURRENT. So it seems the error is related with OpenSSL
>>>> 3.0.
>>>=20
>>> If I remove following 3 lines from Makefile, then build succeeds =
with
>>> OpenSSL 3.0.
>>>=20
>>> =
----------------------------------------------------------------------
>>> .if ( ${OPSYS} =3D=3D FreeBSD && ${OSVERSION} >=3D 1400092 &&
>>> ${SSL_DEFAULT} =3D=3D base ) || ${SSL_DEFAULT:Mopenssl3*} CFLAGS+=3D
>>> -DOPENSSL_API_COMPAT=3D0x30000000L" .endif
>>> =
----------------------------------------------------------------------
>>=20
>> OK. The trailing double quote after 0x30000000L is the suspect.
>=20
> I removed above trailing double quate and then compiled done
> completeley !
>=20
> Thanx for your efforts and thanx correct identification > Kimura san =
:-)
>=20
>> See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272753 for =
the patch.
>>=20
>> There are other ports with this mistake.
>>=20
>> ./mail/datovka/Makefile:CXXFLAGS+=3D      =
-DOPENSSL_API_COMPAT=3D0x30000000L"
Ouch it hurts and I am sorry for that. I will try to fix this at the =
latest on next Monday.


>> ./mail/archiveopteryx/Makefile:CXXFLAGS+=3D       =
-DOPENSSL_API_COMPAT=3D0x30000000L
>> "
>> ./news/nzbget/Makefile:CXXFLAGS+=3D       =
-DOPENSSL_API_COMPAT=3D0x30000000L"
>> ./devel/ucommon/Makefile:CXXFLAGS+=3D      =
-DOPENSSL_API_COMPAT=3D0x30000000L"
>> ./devel/thrift-c_glib/Makefile:CXXFLAGS+=3D       =
-DOPENSSL_API_COMPAT=3D0x30000000L
>> "
>> ./security/git-crypt/Makefile:CXXFLAGS+=3D        =
-DOPENSSL_API_COMPAT=3D0x30000000L
>> "
>> ./databases/xrootd/Makefile:CXXFLAGS+=3D  =
-DOPENSSL_API_COMPAT=3D0x30000000L"
>> ./lang/php80/Makefile:CXXFLAGS+=3D        =
-DOPENSSL_API_COMPAT=3D0x30000000L"
>> ./net/asterisk18/Makefile:CFLAGS+=3D      =
-DOPENSSL_API_COMPAT=3D0x30000000L"
>> ./sysutils/istatserver/Makefile:CXXFLAGS+=3D      =
-DOPENSSL_API_COMPAT=3D0x30000000L
>> "
>> ./www/lagrange/Makefile:CXXFLAGS+=3D      =
-DOPENSSL_API_COMPAT=3D0x30000000L"
>>=20
>>> Not sure if built binaries work fine.
>>>=20
>>> ---
>>> Yasuhiro Kimura
>>>=20
>>=20
>>=20
> ---
> Kazuhiko Kiriyama



--Apple-Mail=_808CF249-7108-43B3-BB49-51671B27E7AE
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEETfdREoUGjQZKBS+fvbm1phfAvJEFAmTCiLBfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDRE
Rjc1MTEyODUwNjhEMDY0QTA1MkY5RkJEQjlCNUE2MTdDMEJDOTEACgkQvbm1phfA
vJE4kQ//aXhXw9GiZVqcZK+p8HCy0g2ujsn8iQXRvREicIlwiXTEqz2G3X/+9xF+
nmUEm3SHNHHBCml+KS0fMgB2WIC2NmHoH2Z5tHyiBIR+d0brpFqbmNDKBnhbTuxk
AL/LsOqy/hw5JMjFfJx5GJB+YrdT7UZ1Y+8gn6Qh2iLfxQ7D05f/Dfh5+YPM7bnl
JZ5c9EyCBFKDcNTyT+rg8GxVDUCcFZGqvgCrIyiucNi1qy6g2ItEFlz5jvvLInAs
2M6iMB30mN021F3ErlyKZPAaP3+QUKhc/c0RQ3tg4Tcz2BWnRWNiIV3nil7MzSyV
vJ+qD4m7PWQcw0iOMV8ranuVhalft9Rw0PHSXbgIpeloIIHK2yu0KW8ZDdxf9d43
yyNoUZ5xM+SS2vG0h28NcXgFlVJP1R36bO9+V7JcM0KD4sHqS9Zn8gzNBp6RjeL3
ETKiDz1tnbxPXE5XR0NvZvzyqoB6iBAiJ6aKOkphwEOlp+ejI/lDEv48Pc8SH7Fs
ozAZeEX0lJ5WNNUg9KLZcK/6giFZnvI+nCG7Jpk4J3+NiSJlZ4BS8Q5GMGMaHIHc
17XACTuM+R7dnPs+LLHixr4Z0jwlNhGWKykj2PqaM413MhD2xLzXMMdmyFIQ1ll+
kuTneboWuki161kVVGXRZsCRqKnUK/nOaRjgVXQDsR6uJOLa72U=
=+TEn
-----END PGP SIGNATURE-----

--Apple-Mail=_808CF249-7108-43B3-BB49-51671B27E7AE--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8F8316AA-BC36-40CB-9D98-28BFAC99AFB8>