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

Closed
lemonadezZ opened this issue Jan 12, 2018 · 6 comments
Closed

Ubuntu install error #5539

lemonadezZ opened this issue Jan 12, 2018 · 6 comments

Comments

@lemonadezZ
Copy link

lemonadezZ commented Jan 12, 2018

cmake -DCMAKE_INSTALL_PREFIX=/opt  -DWITH_PROJ=1  -DWITH_FRIBIDI=0  -DWITH_HARFBUZZ=0 -DWITH_FCGI=0 -DWITH_GEOS=0 -DWITH_POSTGIS=0 -DWITH_GDAL=0 -DWITH_OGR=0 -DWITH_WFS=0 -DWITH_WCS=0  -DWITH_CLIENT_WMS=0 -DWITH_GIF=0 -DCMAKE_PREFIX_PATH=/opt ..

error

[  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
@bjoernboldt
Copy link
Contributor

"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.

@szekerest
Copy link
Member

Another issue here is that

_#define inline _inline

is coming from cpl_config.h

@szekerest szekerest reopened this Jan 18, 2018
@ghost
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 (http://mapserver.org/installation/unix.html) states that GDAL is highly recommended, when in fact it is mandatory to do a successful compile.
Recommend documentation is updated to avoid confusion.

@sdlime
Copy link
Member

sdlime commented May 14, 2018

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

@ghost
Copy link

ghost commented May 16, 2018

Hi

Yes, can be closed
Thanks

Aimee

@jratike80
Copy link

Closing now.

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

No branches or pull requests

5 participants