mapserver 4.2.2 compile problem on redhat as3

Aaron Steele asteele at BERKELEY.EDU
Fri Aug 13 13:28:38 EDT 2004


i spoke too soon. : }

the compile bailed out:

-L/usr/local/pgsql/lib -lpq  -lcurl -L/usr/kerberos/lib -lssl -lcrypto
-lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz
-L/usr/kerberos/lib -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5
-lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz    -lm -lstdc++  -o
shp2img
/usr/local/gdal-1.2.1/libgdal.la: file not recognized: File format not
recognized
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

shp2img.o is in the mapserver directory where i'm compiling...

thanks,
aaron

> hi daryl,
>
> yes, that was the culprit. the following change to my configure
> invocation satisfied the compile:
>
> --with-postgis=/usr/local/pgsql/bin/pg_config
>
> thanks,
> aaron
>
> On Aug 13, 2004, at 12:41 AM, Daryl Herzmann wrote:
>
>> Hi Aaron,
>>
>> On Fri, 13 Aug 2004, Aaron Steele wrote:
>>
>>> dear readers,
>>>
>>> i'm running redhat enterprise as3 and cannot compile mapserver 4.2.2:
>>>
>>>> ./configure
>>> --with-wfs
>>> --with-wmsclient
>>> --with-wfsclient
>>> --with-proj=/usr/local/proj-4.4.8
>>> --with-gdal=/usr/local/gdal-1.2.1/apps/gdal-config
>>> --with-postgis=/usr/local/postgresql-7.4.3/contrib/postgis-0.8.2
>>> --with-ogr=/usr/local/gdal-1.2.1/apps/gdal-config
>>
>> I am not sure that your --with-postgis is correct.  I think it should
>> point to the location of pg_config, for example
>>
>> --with-postgis=/usr/local/postgresql-7.4.3/bin/pg_config
>>
>> If pg_config is not found, you wind up with a blank include in the
>> Makefile and hence this error
>>
>> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT  -DUSE_EPPL
>> -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR
>> -DUSE_WFS_LYR     -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_WBMP -DUSE_GD_FT
>> -DGD_HAS_GDIMAGEGIFPTR   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS
>> -I/usr/local/include  -I/usr/local/proj-4.4.8/src
>> -I/usr/local/gdal-1.2.1/port -I/usr/local/gdal-1.2.1/gcore
>> -I/usr/local/gdal-1.2.1/alg -I/usr/local/gdal-1.2.1/ogr
>> -I/usr/local/gdal-1.2.1/ogr/ogrsf_frmts -I     maptemplate.c -o
>> maptemplate.o
>> gcc: no input files
>> make: *** [maptemplate.o] Error 1
>>
>>
>> Notice the blank after the last '-I'
>>
>> HTH,
>>  daryl
>>
>



More information about the mapserver-users mailing list