Discussion:
how to compile a debug version of Qt5.9.6 on OpenBSD 6.4 ?
stephane l1
2018-12-02 00:04:48 UTC
Permalink
Hi,
I have tried to compile a debug version of Qt5.9.6 on OpenBSD 6.4 with the
mkspecs of the package release Qt5.9.6 and the platform openbsd-clang but I
have linking error on the first lib libQt5Core on version-***@Qt_5_8 ?
Have I forgotten something to configure ?

Thanks
best regards

Stéphane L . from france
stephane l1
2018-12-02 00:31:02 UTC
Permalink
Hi,
I have tried to compile a debug version of Qt5.9.6 on OpenBSD 6.4 with the
mkspecs
of the package release Qt5.9.6 and the platform openbsd-clang but I have
linking error
on the first lib libQt5Core on version-***@Qt_5_8 ?
Have I forgotten something to configure ?

Thanks
best regards

Stéphane L . from france
Vadim Zhukov
2018-12-02 11:14:34 UTC
Permalink
You'd better use "FLAVOR=debug make" inside x11/qt5 directory to build
components you're interested in.
Post by stephane l1
Hi,
I have tried to compile a debug version of Qt5.9.6 on OpenBSD 6.4 with the
mkspecs of the package release Qt5.9.6 and the platform openbsd-clang but I
Have I forgotten something to configure ?
Thanks
best regards
Stéphane L . from france
--
WBR,
Vadim Zhukov
stephane l1
2018-12-02 12:03:20 UTC
Permalink
Hi,

I have tryed with FLAVOR = debug make in the .pro and I have still this
error :

/usr/bin/ld: libQt5Core.so.5.9.6: undefined versioned symbol name
***@Qt_5.8
/usr/bin/ld: failed to set dynamic section sizes: Bad value
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
Post by Vadim Zhukov
You'd better use "FLAVOR=debug make" inside x11/qt5 directory to build
components you're interested in.
Post by stephane l1
Hi,
I have tried to compile a debug version of Qt5.9.6 on OpenBSD 6.4 with
the
Post by stephane l1
mkspecs of the package release Qt5.9.6 and the platform openbsd-clang
but I
Post by stephane l1
Have I forgotten something to configure ?
Thanks
best regards
Stéphane L . from france
--
WBR,
Vadim Zhukov
Vadim Zhukov
2018-12-02 13:02:36 UTC
Permalink
Well, I was talking about compiling from ports.

If you try to compile Qt from sources on your own you're, well, on
your own. find /usr/ports/x11/qt5 -name '*.patch' should give you a
clue how much on your own you are. :)
Post by stephane l1
Hi,
/usr/bin/ld: failed to set dynamic section sizes: Bad value
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Post by Vadim Zhukov
You'd better use "FLAVOR=debug make" inside x11/qt5 directory to build
components you're interested in.
Post by stephane l1
Hi,
I have tried to compile a debug version of Qt5.9.6 on OpenBSD 6.4 with the
mkspecs of the package release Qt5.9.6 and the platform openbsd-clang but I
Have I forgotten something to configure ?
Thanks
best regards
Stéphane L . from france
--
WBR,
Vadim Zhukov
--
WBR,
Vadim Zhukov
stephane l1
2018-12-02 13:20:44 UTC
Permalink
ok thanks I will try to compile from the ports too..
Yes it was just a Qt problem in qversiontagging.h.
ok it would be more simple to use the ports thanks
Post by Vadim Zhukov
Well, I was talking about compiling from ports.
If you try to compile Qt from sources on your own you're, well, on
your own. find /usr/ports/x11/qt5 -name '*.patch' should give you a
clue how much on your own you are. :)
Post by stephane l1
Hi,
I have tryed with FLAVOR = debug make in the .pro and I have still this
/usr/bin/ld: libQt5Core.so.5.9.6: undefined versioned symbol name
/usr/bin/ld: failed to set dynamic section sizes: Bad value
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
Post by stephane l1
Post by Vadim Zhukov
You'd better use "FLAVOR=debug make" inside x11/qt5 directory to build
components you're interested in.
Post by stephane l1
Hi,
I have tried to compile a debug version of Qt5.9.6 on OpenBSD 6.4
with the
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
mkspecs of the package release Qt5.9.6 and the platform openbsd-clang
but I
?
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
Have I forgotten something to configure ?
Thanks
best regards
Stéphane L . from france
--
WBR,
Vadim Zhukov
--
WBR,
Vadim Zhukov
stephane l1
2018-12-02 13:31:01 UTC
Permalink
Hi,
Shall I make FLAVOR=debug make in each Makefile of the modules of Qt in
the port ?
Post by stephane l1
ok thanks I will try to compile from the ports too..
Yes it was just a Qt problem in qversiontagging.h.
ok it would be more simple to use the ports thanks
Post by Vadim Zhukov
Well, I was talking about compiling from ports.
If you try to compile Qt from sources on your own you're, well, on
your own. find /usr/ports/x11/qt5 -name '*.patch' should give you a
clue how much on your own you are. :)
Post by stephane l1
Hi,
I have tryed with FLAVOR = debug make in the .pro and I have still this
/usr/bin/ld: libQt5Core.so.5.9.6: undefined versioned symbol name
/usr/bin/ld: failed to set dynamic section sizes: Bad value
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
Post by stephane l1
Post by Vadim Zhukov
You'd better use "FLAVOR=debug make" inside x11/qt5 directory to build
components you're interested in.
Post by stephane l1
Hi,
I have tried to compile a debug version of Qt5.9.6 on OpenBSD 6.4
with the
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
mkspecs of the package release Qt5.9.6 and the platform
openbsd-clang but I
?
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
Have I forgotten something to configure ?
Thanks
best regards
Stéphane L . from france
--
WBR,
Vadim Zhukov
--
WBR,
Vadim Zhukov
Vadim Zhukov
2018-12-02 19:51:44 UTC
Permalink
Hi,
Shall I make FLAVOR=debug make in each Makefile of the modules of Qt in the port ?
Basically, yes. You can play with shell, of course, to run those in a
single command, though.

Please note that debug FLAVOR isn't linked to bulk builds, so it _may_
fail due to some unexpected condition on your system that differs from
mine. And make sure you have enough room for building... And I really,
really do not recommend doing it on HDD, only on SSD. :)
Post by stephane l1
ok thanks I will try to compile from the ports too..
Yes it was just a Qt problem in qversiontagging.h.
ok it would be more simple to use the ports thanks
Post by Vadim Zhukov
Well, I was talking about compiling from ports.
If you try to compile Qt from sources on your own you're, well, on
your own. find /usr/ports/x11/qt5 -name '*.patch' should give you a
clue how much on your own you are. :)
Post by stephane l1
Hi,
/usr/bin/ld: failed to set dynamic section sizes: Bad value
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Post by Vadim Zhukov
You'd better use "FLAVOR=debug make" inside x11/qt5 directory to build
components you're interested in.
Post by stephane l1
Hi,
I have tried to compile a debug version of Qt5.9.6 on OpenBSD 6.4 with the
mkspecs of the package release Qt5.9.6 and the platform openbsd-clang but I
Have I forgotten something to configure ?
Thanks
best regards
Stéphane L . from france
--
WBR,
Vadim Zhukov
--
WBR,
Vadim Zhukov
--
WBR,
Vadim Zhukov
stephane l1
2018-12-02 19:56:59 UTC
Permalink
Hi thanks Vadim I have made it this afternoon,qtbase seems to be built,with
FLAVOR=debug
(I See a qtbasexx.tgz in /usr/ports/packages/amd64/all) but it fails on
installation
of the module (I have tryed too a pkg_add of .tgz but it says it is not
signed)
Post by stephane l1
Post by stephane l1
Hi,
Shall I make FLAVOR=debug make in each Makefile of the modules of Qt in
the port ?
Basically, yes. You can play with shell, of course, to run those in a
single command, though.
Please note that debug FLAVOR isn't linked to bulk builds, so it _may_
fail due to some unexpected condition on your system that differs from
mine. And make sure you have enough room for building... And I really,
really do not recommend doing it on HDD, only on SSD. :)
Post by stephane l1
Post by stephane l1
ok thanks I will try to compile from the ports too..
Yes it was just a Qt problem in qversiontagging.h.
ok it would be more simple to use the ports thanks
Post by Vadim Zhukov
Well, I was talking about compiling from ports.
If you try to compile Qt from sources on your own you're, well, on
your own. find /usr/ports/x11/qt5 -name '*.patch' should give you a
clue how much on your own you are. :)
Post by stephane l1
Hi,
I have tryed with FLAVOR = debug make in the .pro and I have still
/usr/bin/ld: libQt5Core.so.5.9.6: undefined versioned symbol name
/usr/bin/ld: failed to set dynamic section sizes: Bad value
clang++: error: linker command failed with exit code 1 (use -v to
see invocation)
Post by stephane l1
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
Post by Vadim Zhukov
You'd better use "FLAVOR=debug make" inside x11/qt5 directory to
build
Post by stephane l1
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
Post by Vadim Zhukov
components you're interested in.
Post by stephane l1
Hi,
I have tried to compile a debug version of Qt5.9.6 on OpenBSD 6.4
with the
Post by stephane l1
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
mkspecs of the package release Qt5.9.6 and the platform
openbsd-clang but I
Post by stephane l1
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
Post by Vadim Zhukov
Post by stephane l1
have linking error on the first lib libQt5Core on
Have I forgotten something to configure ?
Thanks
best regards
Stéphane L . from france
--
WBR,
Vadim Zhukov
--
WBR,
Vadim Zhukov
--
WBR,
Vadim Zhukov
stephane l1
2018-12-02 19:59:20 UTC
Permalink
does the conflicts come because I have already installed the package
Qt5.9.6 (so release version) ?
Vadim Zhukov
2018-12-02 20:29:55 UTC
Permalink
does the conflicts come because I have already installed the package Qt5.9.6 (so release version) ?
Regarding conflicts - yes, you'll need to use "pkg_add -r" (replace
mode) to install alternative (FLAVORed) version of package. This is
documented in ports(7), packages(7) and pkg_add(1).

Regarding "not signed", you can set TRUSTED_PKG_PATH before running
pkg_add, or add -Dunsigned. Using "make install" in port directory
does this for you, but it won't use "pkg_add -r", though.
--
WBR,
Vadim Zhukov
Loading...