[Qt-interest] Building qt on Solaris 10/AMD64 [patch included]
Pavel Heimlich, a.k.a. hajma
tropikhajma at gmail.com
Fri Apr 29 00:36:26 CEST 2011
2010/5/26 Xavier Roche <roche+qt at exalead.com>:
> Hi folks,
>
> Just a small feedback for those who want to build qt on Solaris 10/AMD64
> (64-bit build), and are having troubles.
>
> I managed to have a working build, using a standard gcc toolchain with
> solaris ld (might be possible with the old venerable CC, but I did not give
> it a try)
>
> Summary of minor changes included in the attached patch:
> - */wtf/StringExtras.h : strnstr() has to be defined for Solaris, too
> - src/3rdparty/webkit/JavaScriptCore/wtf/Platform.h : on Solaris,
> USE_SYSTEM_MALLOC to 0 (see remark below)
> - src/3rdparty/webkit/WebCore/WebCore.pro : do not add "-Wl,--gc-sections"
> on Solaris, as solaris ld is the preffered linker (and it won't support this
> option)
> - "#!/bin/sh" => "#!/bin/bash" in configure scripts because of test bashisms
> (or at least not supported by the venerable solaris sh)
>
> Remark: the internal webkit tcmalloc library apparently has to be disabled
> by using -DUSE_SYSTEM_MALLOC=0 ; otherwise you will experience really weird
> and lethal SEGV (see "Possible issue with TCMalloc_PageHeap on Solaris 10
> (amd64) ?" thread on webkit-dev at lists.webkit.org) inside
> WTF::TCMalloc_PageHeap::GrowHeap(
>
> I do not know if this issue is solaris-centric, or is solaris+gcc-centric,
> but any demo (such as demo/browser) using this library will crash with a
> similar stack. Zoltan Horvath (webkit.org) confirmed that TCMalloc was not
> yet tested on Solaris (and will have to).
>
> Remarks/feedback welcome on the patch :)
most of this is still valid with Qt 4.7.2 & gcc 4.5.2 on Solaris 11e.
I'll see if I get some time to report it where it belongs to
More information about the Qt-interest-old
mailing list