Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Problem with FreeBSD
Problem with FreeBSD [message #60622] Sun, 09 June 2024 17:11 Go to next message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
./umk reference Https CLANG -bus
 in dir /usr/home/buildbot-worker/worker0/fb13-upp/build (timeout 1200 secs)
 watching logfiles {}
 argv: [b'./umk', b'reference', b'Https', b'CLANG', b'-bus']
 using PTY: False
----- Core ( CLANG DEBUG SHARED DEBUG_FULL BLITZ POSIX BSD FREEBSD ) (1 / 3)
----- Core/SSL ( CLANG DEBUG SHARED DEBUG_FULL BLITZ POSIX BSD FREEBSD ) (2 / 3)
----- Https ( MAIN CLANG DEBUG SHARED DEBUG_FULL BLITZ POSIX BSD FREEBSD ) (3 / 3)
Linking...
ld: error: undefined symbol: SSL_get1_peer_certificate
>>> referenced by Socket.cpp:183
>>>               /usr/home/buildbot-worker/worker0/fb13-upp/build/.cache/upp.out/Core/SSL/CLANG.Debug.Debug_Full.Shared/Socket.o:(Upp::TcpSocket::SSLImp::Handshake())
>>> did you mean: SSL_get_peer_certificate
>>> defined in: /usr/lib/libssl.so
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
There were errors. (0:00.12)
program finished with exit code 1
elapsedTime=0.141835


Regards,
Novo
Re: Problem with FreeBSD [message #60657 is a reply to message #60622] Wed, 26 June 2024 14:52 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Novo wrote on Sun, 09 June 2024 17:11
./umk reference Https CLANG -bus
 in dir /usr/home/buildbot-worker/worker0/fb13-upp/build (timeout 1200 secs)
 watching logfiles {}
 argv: [b'./umk', b'reference', b'Https', b'CLANG', b'-bus']
 using PTY: False
----- Core ( CLANG DEBUG SHARED DEBUG_FULL BLITZ POSIX BSD FREEBSD ) (1 / 3)
----- Core/SSL ( CLANG DEBUG SHARED DEBUG_FULL BLITZ POSIX BSD FREEBSD ) (2 / 3)
----- Https ( MAIN CLANG DEBUG SHARED DEBUG_FULL BLITZ POSIX BSD FREEBSD ) (3 / 3)
Linking...
ld: error: undefined symbol: SSL_get1_peer_certificate
>>> referenced by Socket.cpp:183
>>>               /usr/home/buildbot-worker/worker0/fb13-upp/build/.cache/upp.out/Core/SSL/CLANG.Debug.Debug_Full.Shared/Socket.o:(Upp::TcpSocket::SSLImp::Handshake())
>>> did you mean: SSL_get_peer_certificate
>>> defined in: /usr/lib/libssl.so
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
There were errors. (0:00.12)
program finished with exit code 1
elapsedTime=0.141835


That is really interesting as Socket.cpp:183 looks like this:

cert.Set(SSL_get_peer_certificate(ssl));

Re: Problem with FreeBSD [message #60658 is a reply to message #60657] Wed, 26 June 2024 21:21 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
I ran full rebuild. The problem still remains.
It is hard to tell what is going on. FreeBSD 12 was fine ...


Regards,
Novo
Re: Problem with FreeBSD [message #60659 is a reply to message #60658] Wed, 26 June 2024 21:53 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
Linking fails on FreeBSD 13.2.
14.0 is fine.


Regards,
Novo
Re: Problem with FreeBSD [message #60660 is a reply to message #60659] Thu, 27 June 2024 05:37 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
14.1 is fine as well ...

Regards,
Novo
Re: Problem with FreeBSD [message #60661 is a reply to message #60660] Thu, 27 June 2024 08:40 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Novo wrote on Thu, 27 June 2024 05:37
14.1 is fine as well ...


I think there must be a temporary bug in FreeBSD 13.2. I would wager the problem is either that openssl headers are not compatible with libraries.

IDK, if this is was to be pursued, I would start by searching for SSL_get_peer_certificate and SSL_get1_peer_certificate in header files. I bet there is something like

#define SSL_get_peer_certificate SSL_get1_peer_certificate

somewhere which probably means not our fault...

Mirke
Re: Problem with FreeBSD [message #60663 is a reply to message #60661] Sat, 29 June 2024 03:35 Go to previous message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
Interestingly, there are two ssl.h:
/usr/local/include/openssl/ssl.h
/usr/include/openssl/ssl.h

First one:
# ifdef OPENSSL_X509_H
__owur X509 *SSL_get0_peer_certificate(const SSL *s);
__owur X509 *SSL_get1_peer_certificate(const SSL *s);
/* Deprecated in 3.0.0 */
#  ifndef OPENSSL_NO_DEPRECATED_3_0
#   define SSL_get_peer_certificate SSL_get1_peer_certificate
#  endif
# endif

Second one:
# ifdef HEADER_X509_H
__owur X509 *SSL_get_peer_certificate(const SSL *s);
# endif


Basically, U++ should define OPENSSL_NO_DEPRECATED_3_0 ...


Regards,
Novo
Previous Topic: Distribute U++ applications as binaries. Update to 2024
Next Topic: Problems with TheIDE
Goto Forum:
  


Current Time: Sat Jun 14 17:09:17 CEST 2025

Total time taken to generate the page: 0.06618 seconds