HaikuArchives / Paladin

Paladin is an open source integrated development environment (IDE) for Haiku OS
MIT License
64 stars 20 forks source link

Paladin does not build with latest Haiku Release #380

Closed mbrumbelow closed 1 year ago

mbrumbelow commented 2 years ago

Latest Paladin builds on hrev55602 x86_64 with the following:

g++ -c AsciiWindow.cpp -iquote./ -iquote./ -iquoteBuildSystem/ -iquotePreviewFeatures/ -iquoteSourceControl/ -iquoteThirdParty/ -iquoteobjects.x86_64-cc8-release/ -O1 -D_ZETA_TS_FINDDIR -std=c++0x -o "objects.x86_64-cc8-release/AsciiWindow.o" AsciiWindow.cpp: In constructor 'AsciiWindow::AsciiWindow()': AsciiWindow.cpp:198:3: error: 'asprintf' was not declared in this scope asprintf(&row, " %3d %2x %3o %3s %s", i, i, i, ^~~~ AsciiWindow.cpp:198:3: note: suggested alternative: 'vsprintf' asprintf(&row, " %3d %2x %3o %3s %s", i, i, i, ^~~~ vsprintf /boot/system/develop/etc/makefile-engine:300: recipe for target 'objects.x86_64-cc8-release/AsciiWindow.o' failed make: *** [objects.x86_64-cc8-release/AsciiWindow.o] Error 1

Looks like the Makefile needs to be told more information about stdlib in order to compile correctly.

adamfowleruk commented 2 years ago

Hmmm that's super annoying. Might be due to an assumed include. Probably not hard to fix... Will add it to the list. Thanks!

korli commented 2 years ago

using -std=c++0x doesn't include gnu extensions probably.

mbrumbelow commented 2 years ago

It compiles and runs with _GNU_SOURCE defined on x86 and x86_64.

korli commented 2 years ago

or use -std=gnu++0x

meatpi commented 2 years ago

I had the same issue, but I rebuilt Paladin using the buildscript and it seems fine now