[mapserver-users] A plaintive cry for help

Gerry Creager N5JXS gerry.creager at tamu.edu
Mon Aug 26 21:15:54 EDT 2002


OK.  I know everyone on here is busy, but I'm also at my wits' end (or 
at least at the end of the half, or so I could find recently).

I've got MS 3.6.1 down, as well as, near as I can tell, all the 
ancillary support:
---
./configure --with-jpeg=/usr --with-freetype=/usr --with-png=/usr 
--with-gd=/usr  --with-gdal=/usr/local --with-ogr --with-proj
---
The config log is attached.

An apparently good config resulted.

A make, however, results in the following:
---
[gerry at mesodata mapserver-3.6.1]$ make
gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ 
-DUSE_PROJ_API_H -DUSE_WMS   -DUSE_TIFF -DUSE_JPEG -DUSE_GD_SWAP_XY 
-DUSE_OGR -DUSE_GDAL    -I/usr/include    -I/usr/include 
-I/usr/local/include     shp2img.o  -L. -lmap -L/usr/lib -lgd -L/usr/lib 
-ljpeg -lfreetype -L/usr/lib -lpng -lz  -ltiff -L/usr/lib -ljpeg 
-lfreetype -L/usr/lib -lpng -lz -lproj -L/usr/lib -ljpeg 
-L/usr/local/lib -lgdal.1.1       -lm   -o shp2img
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
---

I've bounced my head against this most of the weekend, and I'm very 
confused.  Anyone got some words of wisdom that might get me back on the 
right track?

Thanks,
Gerry Creager
Texas Mesonet
Texas A&M University
-------------- next part --------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:614: checking for gcc
configure:727: checking whether the C compiler (gcc  ) works
configure:743: gcc -o conftest    conftest.c  1>&5
configure:769: checking whether the C compiler (gcc  ) is a cross-compiler
configure:774: checking whether we are using GNU C
configure:802: checking whether gcc accepts -g
configure:838: checking for c++
configure:870: checking whether the C++ compiler (c++  ) works
configure:886: c++ -o conftest    conftest.C  1>&5
configure:912: checking whether the C++ compiler (c++  ) is a cross-compiler
configure:917: checking whether we are using GNU C++
configure:945: checking whether c++ accepts -g
configure:994: gcc -c -g -O2  conftest.c 1>&5
configure:1011: gcc -c -g -O2  conftest.c 1>&5
configure:1030: checking for ranlib
configure:1060: checking for flex
configure:1094: checking for yywrap in -lfl
configure:1140: checking for bison
configure:1172: checking if compiler supports -R
configure:1207: checking if compiler supports -Wl,-rpath,
configure:1285: checking for exp in -lm
configure:1329: checking how to run the C preprocessor
configure:1409: checking for ANSI C header files
configure:1514: checking for strcasecmp
configure:1563: checking for strncasecmp
configure:1612: checking for strdup
configure:1667: checking whether we should include JPEG support...
configure:1872: checking which version of GD to use...
configure:2015: checking where FreeType is installed...
configure:2220: checking for FT_Init_FreeType in -lfreetype
configure:2239: gcc -o conftest -g -O2   conftest.c -lfreetype   -lm  1>&5
configure:2330: checking where Zlib is installed...
configure:2367: checking for zlibVersion in -lz
configure:2386: gcc -o conftest -g -O2   conftest.c -lz   -lm  1>&5
configure:2436: checking where PNG is installed...
configure:2541: checking for gdImageGif in -lc
configure:2560: gcc -o conftest -g -O2   conftest.c -lc  -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz  -lm  1>&5
/tmp/ccUcbRvK.o: In function `main':
/home/gerry/mapserver/mapserver-3.6.1/configure:2556: undefined reference to `gdImageGif'
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2549 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageGif();

int main() {
gdImageGif()
; return 0; }
configure:2581: checking for gdImagePng in -lc
configure:2600: gcc -o conftest -g -O2   conftest.c -lc  -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz  -lm  1>&5
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2589 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImagePng();

int main() {
gdImagePng()
; return 0; }
configure:2621: checking for gdImageJpeg in -lc
configure:2640: gcc -o conftest -g -O2   conftest.c -lc  -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz  -lm  1>&5
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2629 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageJpeg();

int main() {
gdImageJpeg()
; return 0; }
configure:2661: checking for gdImageWBMP in -lc
configure:2680: gcc -o conftest -g -O2   conftest.c -lc  -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz  -lm  1>&5
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2669 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageWBMP();

int main() {
gdImageWBMP()
; return 0; }
configure:2703: checking for gdImageStringFT in -lc
configure:2722: gcc -o conftest -g -O2   conftest.c -lc  -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz  -lm  1>&5
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2711 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageStringFT();

int main() {
gdImageStringFT()
; return 0; }
configure:2745: checking for gdImageStringTTF in -lc
configure:2764: gcc -o conftest -g -O2   conftest.c -lc  -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz  -lm  1>&5
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2753 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageStringTTF();

int main() {
gdImageStringTTF()
; return 0; }
configure:2787: checking for gdImageString16 in -lc
configure:2806: gcc -o conftest -g -O2   conftest.c -lc  -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz  -lm  1>&5
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2795 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageString16();

int main() {
gdImageString16()
; return 0; }
configure:2836: checking for gdImageGifPtr in -lc
configure:2855: gcc -o conftest -g -O2   conftest.c -lc  -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz  -lm  1>&5
/tmp/ccjDVe02.o: In function `main':
/home/gerry/mapserver/mapserver-3.6.1/configure:2851: undefined reference to `gdImageGifPtr'
/usr/lib/libgd.so: undefined reference to `XpmReadFileToXpmImage'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2844 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageGifPtr();

int main() {
gdImageGifPtr()
; return 0; }
configure:3294: checking whether we should include PDF support...
configure:3361: checking for PDF_setlinewidth in -lpdf
configure:3380: gcc -o conftest -g -O2   conftest.c -lpdf   -lm  1>&5
/usr/bin/ld: cannot find -lpdf
collect2: ld returned 1 exit status
configure: failed program was:
#line 3369 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char PDF_setlinewidth();

int main() {
PDF_setlinewidth()
; return 0; }
configure:3401: checking for PDF_setrgbcolor in -lpdf
configure:3420: gcc -o conftest -g -O2   conftest.c -lpdf   -lm  1>&5
/usr/bin/ld: cannot find -lpdf
collect2: ld returned 1 exit status
configure: failed program was:
#line 3409 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char PDF_setrgbcolor();

int main() {
PDF_setrgbcolor()
; return 0; }
configure:3441: checking for PDF_moveto in -lpdf
configure:3460: gcc -o conftest -g -O2   conftest.c -lpdf   -lm  1>&5
/usr/bin/ld: cannot find -lpdf
collect2: ld returned 1 exit status
configure: failed program was:
#line 3449 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char PDF_moveto();

int main() {
PDF_moveto()
; return 0; }
configure:3481: checking for PDF_curveto in -lpdf
configure:3500: gcc -o conftest -g -O2   conftest.c -lpdf   -lm  1>&5
/usr/bin/ld: cannot find -lpdf
collect2: ld returned 1 exit status
configure: failed program was:
#line 3489 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char PDF_curveto();

int main() {
PDF_curveto()
; return 0; }
configure:3521: checking for PDF_show_xy in -lpdf
configure:3585: checking whether we should include TIFF support...
configure:3652: checking for TIFFOpen in -ltiff
configure:3671: gcc -o conftest -g -O2   conftest.c -ltiff -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -lz  -lm  1>&5
configure:3712: checking whether we should include EPPL7 support...
configure:3741: checking whether we should include PROJ.4 support...
configure:3752: checking for pj_init in -lproj
configure:3771: gcc -o conftest -g -O2   conftest.c -lproj   -lm  1>&5
configure:3792: checking for pj_transform in -lproj
configure:3811: gcc -o conftest -g -O2   conftest.c -lproj   -lm  1>&5
configure:3833: checking for pj_latlong_from_proj in -lproj
configure:3852: gcc -o conftest -g -O2   conftest.c -lproj   -lm  1>&5
configure:4045: checking whether we should include thread safe support...
configure:4122: checking whether we should include ESRI SDE support...
configure:4472: checking whether we should compile in MPATROL support...
configure:4592: checking whether we should include OGR support...
configure:4608: checking for gdal-config
configure:4652: checking for OGRRegisterAll in -lgdal.1.1
configure:4671: gcc -o conftest -g -O2   conftest.c -lgdal.1.1   -lm  -L/usr/local/lib -lgdal.1.1 1>&5
configure:4786: checking if GDAL support requested
configure:4874: checking if PostGIS support requested
configure:4949: checking if OracleSpatial support requested
configure:4989: checking whether we should include WMS support...
configure:5019: checking whether we should include WMS Client Connections support...
configure:5216: checking whether we should enable debug features...
configure:5285: checking for PHP/MapScript module options...


More information about the mapserver-users mailing list