Opened 15 years ago

#3029 new defect

pdf library header not found when python_mapscript is built

Reported by: nsavard Owned by: dmorissette
Priority: normal Milestone:
Component: Build Problems Version: 5.4
Severity: normal Keywords: python_mapscript, build, pdf
Cc:

Description

python_mapscript cannot be built if mapserver is built with the "with-pdf=dir" switch. The pdf include headers path has to be in mapscriptvars. I'll submit a patch.

gcc output:

running build running build_py creating build creating build/lib.linux-i686-2.6 copying mapscript.py -> build/lib.linux-i686-2.6 running build_ext building '_mapscript' extension creating build/temp.linux-i686-2.6 creating build/temp.linux-i686-2.6/pygdioctx gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MING_FLASH -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_PROJ -DUSE_EPPL -DUSE_RGBA_PNG -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/home/nsavard/fgs-dev/built/python/include/python2.6 -I. -I/home/nsavard/fgs-dev/built/proj/include -I/home/nsavard/fgs-dev/built/gdinclude -I/home/nsavard/fgs-dev/built/jpeg/include -I/home/nsavard/fgs-dev/built/gdal/include -I/home/nsavard/fgs-dev/built/geos/include -I/home/nsavard/fgs-dev/built/python/include/python2.6 -c mapscript_wrap.c -o build/temp.linux-i686-2.6/mapscript_wrap.o In file included from mapscript_wrap.c:2556: ../../mapserver.h:106:20: error: pdflib.h: No such file or directory In file included from mapscript_wrap.c:2556: ../../mapserver.h:1346: error: expected specifier-qualifier-list before ‘PDF’ ../../mapserver.h:1577: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token In file included from mapscript_wrap.c:2556: ../../mapserver.h:2283: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘*’ token mapscript_wrap.c:3089: warning: function declaration isn’t a prototype mapscript_wrap.c:5081: warning: function declaration isn’t a prototype mapscript_wrap.c:5549: warning: function declaration isn’t a prototype mapscript_wrap.c:5574: warning: function declaration isn’t a prototype mapscript_wrap.c:5609: warning: function declaration isn’t a prototype mapscript_wrap.c:5675: warning: function declaration isn’t a prototype mapscript_wrap.c:5698: warning: function declaration isn’t a prototype error: command 'gcc' failed with exit status 1

Attachments (1)

ticket3029.patch (849 bytes ) - added by nsavard 15 years ago.
patch to Makefile.in to build python_mapscript

Download all attachments as: .zip

Change History (1)

by nsavard, 15 years ago

Attachment: ticket3029.patch added

patch to Makefile.in to build python_mapscript

Note: See TracTickets for help on using tickets.