Bug 232970 - devel/qt4-designer: failed build with libressl - libQtNetwork.so: undefined reference to `X509_getm_notAfter' and "X509_getm_before
Summary: devel/qt4-designer: failed build with libressl - libQtNetwork.so: undefined r...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-04 20:17 UTC by Walter Schwarzenfeld
Modified: 2018-12-09 15:11 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments
PAtch (26.57 KB, patch)
2018-11-05 00:12 UTC, Nathan
no flags Details | Diff
patch for net/qt4-network (19.28 KB, patch)
2018-11-12 15:55 UTC, Felix Palmen
no flags Details | Diff
patch for net/qt4-network v2 (18.67 KB, patch)
2018-11-12 16:21 UTC, Felix Palmen
no flags Details | Diff
patch for net/qt4-network v3 (31.04 KB, patch)
2018-11-12 16:26 UTC, Felix Palmen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Schwarzenfeld 2018-11-04 20:17:25 UTC
qtt4-designer fails to build with libressl:

usr/local/lib/qt4/libQtNetwork.so: undefined reference to `X509_getm_notAfter'
/usr/local/lib/qt4/libQtNetwork.so: undefined reference to `X509_getm_notBefore'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [../../../../bin/designer] Error code 1

make[5]: stopped in /ram/usr/ports/devel/qt4-designer/work/qt-everywhere-opensource-src-4.8.7/tools/designer/src/designer
1 error
'
Comment 1 Nathan 2018-11-05 00:12:49 UTC
Created attachment 198953 [details]
PAtch

Try this one, came from:
https://sources.debian.org/patches/qt4-x11/4:4.8.7+dfsg-17/?page=2
Comment 2 Walter Schwarzenfeld 2018-11-05 00:30:17 UTC
patch does not apply.
Comment 3 Felix Palmen freebsd_committer freebsd_triage 2018-11-12 15:55:21 UTC
Created attachment 199173 [details]
patch for net/qt4-network

The patch linked above actually worked for me after properly resolving the rejects, removing some unrelated parts and rebuilding net/qt4-network with it -- here's a patch against the qt4-network port for review/test.
Comment 4 Felix Palmen freebsd_committer freebsd_triage 2018-11-12 16:21:20 UTC
Created attachment 199174 [details]
patch for net/qt4-network v2

Accidentally deleted too much, this version should be fine
Comment 5 Felix Palmen freebsd_committer freebsd_triage 2018-11-12 16:26:38 UTC
Created attachment 199176 [details]
patch for net/qt4-network v3

Ok, I have to learn how svn diff works. Sorry for the noise, this finally contains all the files.
Comment 6 Walter Schwarzenfeld 2018-11-12 16:55:22 UTC
Ok, confirmed this patch is working now.
Comment 7 Adriaan de Groot freebsd_committer freebsd_triage 2018-12-09 15:11:31 UTC
So this was actually a qt4-network patch, not designer. Pity, it might have saved some time in PR 214691. That one has been fixed, though, so I imagine this one is too.

.. yes, designer builds against libressl now. As noted in the other PR, I'm not sure that it *works*, though.