[mapserver-users] MS 5.2 make error: " yes: invalid option -- f "
Daniel Morissette
dmorissette at mapgears.com
Tue Nov 18 12:28:43 PST 2008
It seems that the --with-ld-shared config option is not bullet-proof...
it is intended to be used to specify the link command to use to build
shared libs, and calling it with no argument results in the link command
being set to "yes"... and then you get the error that you got.
If you don't need it (and I don't think you do) then take it out.
I have also modified the configure script in trunk (future 5.4) to
ignore --with-ld-shared if it is passed with no argument to avoid this
error.
Daniel
Eduardo Kanegae wrote:
> Hi all,
>
> I´m trying to build MapServer 5.2.0 under CentOS 5 using the following config:
>
> ./configure --disable-ignore-missing-data --enable-point-z-m
> --disable-gcov --with-freetype=/usr/local/bin/freetype-config
> -with-zlib=/usr --with-png=/usr --with-jpeg=/usr --with-xpm=/usr
> --with-libiconv=/usr/local --with-gd=/usr/local --with-pdf=/usr/local
> --with-agg=/usr/local/src/agg --with-eppl --with-proj --with-threads
> --with-geos --with-ogr --with-gdal --without-tiff
> --with-postgis=/usr/bin/pg_config --with-ming=/usr/local --with-wms
> --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-sos
> --with-curl-config=/usr/bin/curl-config
> --with-xml2-config=/usr/bin/xml2-config --with-fastcgi=/usr/local
> --with-httpd=/usr/sbin/httpd --with-php=/usr --with-ld-shared 2>&1 |
> tee configure.log
>
> But, after some time running make I got:
>
> ***
> yes: invalid option -- f
> ***
> This message appears just after the line:
> ***
> yes -fprofile-arcs -ftest-coverage -o php_mapscript.so
> php_mapscript_util.o php_mapscript.o mapscript_i.o php_regex.o
> -L/usr/src/webmapit/mapserver-5.2.0 -lmapserver -L/usr/local/lib
> -lfcgi -L/usr/lib -lxml2 -lz -lm -L/usr/kerberos/lib -lcurl
> -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl
> -lcrypto -lz -L/usr/local/lib -lming -L/usr/lib -lpq -L/usr/lib
> -ljpeg -lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/lib -lXpm
> -lX11 -L/usr/local/lib -liconv -L/usr/local/lib -lgdal
> -L/usr/local/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr -L/usr/lib
> -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/local/lib -lxerces-c
> -lpthread -L/usr/local/GeoExpressSDK6/lib/Release
> -L/usr/local/GeoExpressSDK6/3rd-party/lib/Release -lltidsdk -lpthread
> -lltikdu -L/usr/local/lib -lNCSEcw -lNCSCnet -lNCSUtil -L/usr
> -L/usr/lib -ljasper -L/usr/lib -lhdf5 -L/usr -L/usr/lib -logdi31
> -L/usr -L/usr/lib -lnetcdf -lpq -L/usr/lib -lpq -lpthread -lm -lrt
> -ldl -L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto
> -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -L/usr/lib/mysql
> -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto
> -L/usr/local/lib -lgeos_c -lpthread -lproj -L/usr/local/src/agg/src
> -lagg -L/usr/local/lib -lpdf -L/usr/local/lib -lgd -L/usr/lib -ljpeg
> -lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/lib -lXpm -lX11
> -L/usr/local/lib -liconv -L/usr/local/lib -liconv -L/usr/lib -lz -lm
> -lstdc++
> ***
> and then "make[1]: *** [php_mapscript.so] Error 1" is shown.
>
> I already tried to setup CCFLAGS and CXXFLAGS to gcc34/g++34 or
> mpicc/mpicxx compilers but the same error happens.
>
> Does anybody has any tip?
>
> best regards,
>
--
Daniel Morissette
http://www.mapgears.com/
More information about the MapServer-users
mailing list