After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 654244 - perror was not declared in this scope
perror was not declared in this scope
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.7.4
Other HP-UX
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2011-07-08 13:12 UTC by FJack
Modified: 2011-08-14 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description FJack 2011-07-08 13:12:26 UTC
When compiling Doxygen 1.7.4 with GCC v 6.4.0 for HP Itanium 11i3 I found I had to modify the following file:

./qtools/qthread_unix.cpp

to include a system header file to enable perror to be defined:

# line 46, insert
include <stdio.h>


If I didn't do this then the following is reported by g++ after gmake executes the following line:

g++ -c -DQT_LITE_UNICODE -D_LARGEFILE_SOURCE -Wall -W -I. -o ../objects/qthread_unix.o qthread_unix.cpp
qthread_unix.cpp: In static member function 'static int QThread::idealThreadCount()':
qthread_unix.cpp:190:32: error: 'perror' was not declared in this scope
gmake[2]: *** [../objects/qthread_unix.o] Error 1

Fortunately I found perror in the man pages ;o)
Comment 1 FJack 2011-07-08 13:13:22 UTC
of course I meant #include <stdio.h>
Comment 2 Dimitri van Heesch 2011-07-08 19:51:48 UTC
Thanks, I'll add that.
Comment 3 Dimitri van Heesch 2011-08-14 14:04:56 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.7.5. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.