Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu install error #5539

lemonadezZ opened this issue Jan 12, 2018 · 6 comments

Ubuntu install error #5539

lemonadezZ opened this issue Jan 12, 2018 · 6 comments


Copy link

lemonadezZ commented Jan 12, 2018



[  1%] Building C object CMakeFiles/mapserver.dir/mapio.c.o
/root/mapserver-rel-7-0-7/mapio.c: In function ‘msIO_getAndStripStdoutBufferMimeHeaders’:
/root/mapserver-rel-7-0-7/mapio.c:790:10: error: ‘TRUE’ undeclared (first use in this function)
   while( TRUE ) {
/root/mapserver-rel-7-0-7/mapio.c:790:10: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/mapserver.dir/build.make:854: recipe for target 'CMakeFiles/mapserver.dir/mapio.c.o' failed
make[2]: *** [CMakeFiles/mapserver.dir/mapio.c.o] Error 1
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/mapserver.dir/all' failed
make[1]: *** [CMakeFiles/mapserver.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Ubuntu version

cat /proc/version
Linux version 4.4.0-75-generic (buildd@lgw01-21) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #96-Ubuntu SMP Thu Apr 20 09:56:33 UTC 2017
Copy link

"TRUE" is defined in /usr/include/gdal/cpl_progress.h:33 included from /usr/include/gdal/ogr_api.h:42
included from mapserver.h:146, but only if USE_OGR is defined (see mapserver.h:144).
So try to use -DWITH_OGR=1.

Copy link

Another issue here is that

_#define inline _inline

is coming from cpl_config.h

@szekerest szekerest reopened this Jan 18, 2018
Copy link

ghost commented May 11, 2018

This issue is repeatable on debian jessie.
To resolve this the libgdal-dev library is required, which raises the issue that the documentation for
Version 7.0.7 ( states that GDAL is highly recommended, when in fact it is mandatory to do a successful compile.
Recommend documentation is updated to avoid confusion.

Copy link

sdlime commented May 14, 2018

I create a new ticket in docs to address the install documentation update. Can the ticket be closed? --Steve

Copy link

ghost commented May 16, 2018


Yes, can be closed


Copy link

Closing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

5 participants