Frank Groeneveld <frank+openbsd-po...@frankgroeneveld.nl> writes:

> On Thu, Aug 18, 2016 at 11:49:04PM +0100, Stuart Henderson wrote:
>> I think that would be prefereable, if it works.
>
> Thanks for making this simpler for us! I tried applying it to
> wkhtmltopdf (because of the bundled Webkit) and think I've found a
> build that doesn't work with USE_WXNEEDED (haven't gotten it to
> work in other ways either). Attached the output. It seems the
> qmake binary get corrupted somehow. Any hints on how to debug this?

[...]

> mkdir /home/pobj/wkhtmltopdf-0.12.3.2/build-amd64/qt/src/tools
> mkdir /home/pobj/wkhtmltopdf-0.12.3.2/build-amd64/qt/src/tools/uic
> Creating qmake. Please wait...
> qbytearray.o: In function `qstrcpy(char*, char const*)':
> /home/pobj/wkhtmltopdf-0.12.3.2/wkhtmltopdf-0.12.3.2/qt/src/corelib/tools/qbytearray.cpp:143:
>  warning: warning: strcpy() is almost always misused, please use strlcpy()
> option.o: In function `qmake_version()':
> /home/pobj/wkhtmltopdf-0.12.3.2/build-amd64/qt/qmake/option.cpp:695: warning: 
> warning: sprintf() is often misused, please use snprintf()
> qglobal.o: In function `qrand()':
> /home/pobj/wkhtmltopdf-0.12.3.2/wkhtmltopdf-0.12.3.2/qt/src/corelib/global/qglobal.cpp:2810:
>  warning: warning: rand() may return deterministic values, is that what you 
> want?
> /home/pobj/wkhtmltopdf-0.12.3.2/build-amd64/qt/bin/qmake[1]: : not found
> /home/pobj/wkhtmltopdf-0.12.3.2/build-amd64/qt/bin/qmake[1]: ELF: not found
> /home/pobj/wkhtmltopdf-0.12.3.2/build-amd64/qt/bin/qmake[3]: ÿÿ%BXh: not found
> /home/pobj/wkhtmltopdf-0.12.3.2/build-amd64/qt/bin/qmake[3]: @ÿÿ%BXh0ÿÿ%BXh
> : not found
> /home/pobj/wkhtmltopdf-0.12.3.2/build-amd64/qt/bin/qmake[3]:
> CXhé€ÿÿ%CXhpÿÿ%BXhþÿ%rBXhéPÿÿ%jBXhé@ÿÿ%bBXhé0ÿÿ%ZBXhé:
> not found
> /home/pobj/wkhtmltopdf-0.12.3.2/build-amd64/qt/bin/qmake[5]: syntax error: 
> `(' unexpected

Pretty much any time you see this, you can assume that the kernel
returned ENOEXEC.  This can happen with an invalid executable,
a partition mounted "noexec", or... a program annotated with wxneeded
but placed on a partition that isn't mounted with "wxallowed".  Check
the partition that holds WRKOBJDIR (probably /home here).

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to