[MacPorts] #51838: gnome-sudoku build error on OSX 10.5.8 intel (i386)
MacPorts
noreply at macports.org
Wed Jul 13 01:21:35 PDT 2016
#51838: gnome-sudoku build error on OSX 10.5.8 intel (i386)
-------------------------+--------------------------------
Reporter: arboz@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Low | Milestone:
Component: ports | Version: 2.3.4
Keywords: build error | Port: gnome-sudoku
-------------------------+--------------------------------
This is very small and easy to fix.
Error occurs while compiling lib/qqwing-wrapper.cpp
Probably if using later std lib there will be no issue
{{{
qqwing-wrapper.cpp: In function ‘int* qqwing_generate_puzzle(int)’:
qqwing-wrapper.cpp:50: error: ‘nullptr’ was not declared in this scope
make[1]: *** [libsudoku_la-qqwing-wrapper.lo] Error 1
}}}
nullptr is not defined, however NULL is a macro which returns a null ptr
so line 50 needs to change to:
{{{
50c50
< srand(time(nullptr));
---
> srand(time(NULL));
}}}
example diff file attached
--
Ticket URL: <https://trac.macports.org/ticket/51838>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list