[mapserver-users] Compilation issue, undefined reference to `msyylex_destroy'

Leandro Dardini l.dardini at comune.prato.it
Tue May 13 08:00:33 EDT 2008


Hello,
I am trying to compile mapserver on a Redhat ES4 64bit. I get the
following error:

g++ -O2 -fPIC -Wall   -DNEED_NONBLOCKING_STDERR   -DHAVE_VSNPRINTF
-DNEED_STRLCAT  -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR
-DUSE_ORACLESPATIAL   -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_AGG    -DUSE_OGR -DUSE_GDAL -DUSE_GEOS
-DUSE_ICONV   -DUSE_POSTGIS  -DUSE_THREAD -DUSE_ZLIB  -I/usr/include
-I/usr/include/agg2 -I/usr/include/freetype2       -I/usr/include
-I/usr/include    -I/usr/include/oracle/10.2.0.3/client64/
-I//rdbms/demo -I//rdbms/public -I/usr/include     shp2img.o  -L.
-lmapserver -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz
-L/usr/lib64 -lagg -laggfontfreetype  -ljpeg -lfreetype -lpng -lz
-lproj -ljpeg  -L/usr/lib64 -lgdal -L/usr/lib64 -lgeos -lgeos_c -logdi31
-lgif -ljpeg -ltiff -lpng -lcfitsio -lpq -L/usr/lib64 -lpq -lz -lm -lrt
-ldl -L/usr/lib64 -lcurl -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lssl
-lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -L/usr/kerberos/lib
-L/usr/kerberos/lib64 -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5
-lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz  -L/usr/lib64 -lpq
-L/usr/lib64 -lcurl -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lssl
-lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -L/usr/kerberos/lib
-L/usr/kerberos/lib64 -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5
-lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz
-L/usr/lib/oracle/10.2.0.3/client64/lib/ -lclntsh -L/usr/lib64 -lgeos_c
-lpthread -lc  -lz  -lm -lstdc++  -o shp2img
./libmapserver.a(mapfile.o)(.text+0x208a): In function
`msUpdateLabelFromString':
: undefined reference to `msyylex_destroy'
./libmapserver.a(mapfile.o)(.text+0x3265): In function
`msUpdateStyleFromString':
: undefined reference to `msyylex_destroy'
./libmapserver.a(mapfile.o)(.text+0x4381): In function
`msUpdateClassFromString':
: undefined reference to `msyylex_destroy'
./libmapserver.a(mapfile.o)(.text+0x5bcb): In function
`msUpdateLayerFromString':
: undefined reference to `msyylex_destroy'
./libmapserver.a(mapfile.o)(.text+0x608b): In function
`msUpdateReferenceMapFromString':
: undefined reference to `msyylex_destroy'
./libmapserver.a(mapfile.o)(.text+0x66b1): more undefined references to
`msyylex_destroy' follow
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

The configuration directive is the following:

./configure --with-geos --with-ogr --with-agg --with-freetype
--with-proj --without-tiff --with-threads \\
--without-pdf --with-gdal --with-wmsclient --with-postgis
--with-oraclespatial=/
--with-oraclespatial_inc=/usr/include/oracle/10.2.0.3/client64/ \\
--withoraclespatial_lib=/usr/lib/oracle/10.2.0.3/client64/lib/
--with-php=/usr/include/php

MapServer is now configured for

 -------------- Compiler Info -------------
  C compiler:                gcc -O2 -fPIC -Wall
  C++ compiler:              g++ -O2 -fPIC -Wall
  Debug:                      -DNEED_NONBLOCKING_STDERR
  Generic NINT:
  Threading support:         -DUSE_THREAD

 -------------- Renderer Settings ---------
  zlib support:              -DUSE_ZLIB
  png support:
  jpeg support:
  iconv support:             -DUSE_ICONV
  AGG support:               -DUSE_AGG
  AGG Freetype support:      -laggfontfreetype
  Ming(flash) support:
  PDFLib support:

 -------------- Data Format Drivers -------
  native tiff support:
  PostGIS support:           -DUSE_POSTGIS
  Proj.4 support:            -DUSE_PROJ
  EPPL7 support:             -DUSE_EPPL
  ArcSDE support:
  OGR support:               -DUSE_OGR
  GDAL support:              -DUSE_GDAL
  GEOS support:              -DUSE_GEOS
  Oracle Spatial support:    -DUSE_ORACLESPATIAL
  FastCGI support:

 -------------- OGC Services --------------
  WMS Server:                -DUSE_WMS_SVR
  WMS Client:                -DUSE_WMS_LYR
  WFS Server:
  WFS Client:                -DUSE_WMS_LYR
  WCS Server:
  SOS Server:

 -------------- MapScript -----------------
  PHP MapScript:             yes


Compilation went smooth until the shp2img round.

Leandro

---------------------
Dott. Leandro Dardini
Sistema Informativo
Comune di Prato
Via Cairoli, 16
59100 Prato PO
Tel: +39 05741835216
Fax: +39 05721835212


More information about the mapserver-users mailing list