Opened 20 years ago
Closed 20 years ago
#1083 closed defect (fixed)
Building w/o WFS/WMS/WCS support fails
Reported by: | refractions | Owned by: | mapserverbugs |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Build Problems | Version: | 4.4 |
Severity: | normal | Keywords: | |
Cc: |
Description
When building without the pre-requisites for WFS/WMS/WCS (ie, OGR/GDAL and PROJ), the code in mapwfslayer.c contains references to msOWSLookupMetadata which is #def'ed out for this case. Either the mapwfslayer.c code needs to be #def'ed out or the mapows.c code needs to be #def'ed in for this case, or OGR/GDAL/PROJ need to be made into non-optional requirements. gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF -DUSE_ICONV -I/usr/include shp2img.c -o shp2img.o gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF -DUSE_ICONV -I/usr/include shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -ljpeg -lc -lm -lstdc++ -o shp2img ./libmap.a(mapwfslayer.o)(.text+0x9e): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' ./libmap.a(mapwfslayer.o)(.text+0xcd): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' ./libmap.a(mapwfslayer.o)(.text+0xfd): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' ./libmap.a(mapwfslayer.o)(.text+0x12d): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' ./libmap.a(mapwfslayer.o)(.text+0x152): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' collect2: ld returned 1 exit status make: *** [shp2img] Error 1
Change History (2)
comment:2 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in 4.4 CVS. I also rearranged things a bit to mark local functions explicitly as static and #ifdef them all out.
Note:
See TracTickets
for help on using tickets.