Compile/Link Problems - AIX 4

Bob Carr racarr at ameritech.net
Tue Dec 12 16:01:41 PST 2000


I'm unable to generate the executables on an IBM server using the xlc compiler which is bundled with AIX 4.I've attached the errors from the make command, the files and subdirectory listing for the build
directory, and part of the Makefile.  I've compiled all the dependencies, and didn't see any
errors from configure.  

-- 
bob carr
port washington, wisconsin
racarr at ameritech.net


Make Errors:

root at sv09 $ make
        cd gd-1.8.3; make; cd ..
Target "all" is up to date.
        cd gdft; make; cd ..
Target "all" is up to date.
        /usr/bin/xlc -qcpluscmt -DIGNORE_MISSING_DATA   -DUSE_PROJ -DUSE_TTF  -DUSE_TIFF -DUSE_JPEG -
SE_GD_1_6  -I/usr/local/include -I/tmp/mapserver/gd-1.8.3 -I/tmp/mapserver/gdft -I/tmp/mapserver/free
pe-1.3.1/lib       -I/tmp/mapserver/tiff-v3.5.5/libtiff -I/tmp/mapserver/jpeg-6b    shp2img.o  -L. -l
p -L/tmp/mapserver/gd-1.8.3 -lgd -lpng -lz -L/tmp/mapserver/gdft -lgdft -L/tmp/mapserver/freetype-1.3
/lib -lttf -L/tmp/mapserver/tiff-v3.5.5/libtiff -ltiff -L/usr/local/include -lproj  -L/tmp/mapserver/
eg-6b -ljpeg   -lm -o shp2img
ld: 0706-006 Cannot find or open library file: -l png
        ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l z
        ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l ttf
        ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 255.
************************************************************

Build Directory:
root at sv09 $ ls
CVS/               gd-1.2/            mapindex.o         mapraster.o        maptree.o
INSTALL            gd-1.8.3/          maplabel.c         mapscale.c         maputil.c
Makefile           gdft/              maplabel.o         mapscale.o         maputil.o
Makefile.in*       jpeg-6b/           maplegend.c        mapscript/         mapxbase.c
Makefile.new       legend.c           maplegend.o        mapsde.c           mapxbase.o
Makefile.vc        libmap.a           maplexer.c         mapsde.o           ms_3.3.011.tar
README             libpng-1.0.8/      maplexer.l         mapsearch.c        proj-4.4.2/
README.CONFIGURE   map.h              maplexer.o         mapsearch.o        scalebar.c
README.WIN32       mapbits.c          mapparser.c        mapserv.c          shp2img.c
aclocal.m4*        mapbits.o          mapparser.h        mapserv.h          shp2img.o
cgiutil.c          maperror.c         mapparser.o        mapserver/         shpindex.c
cgiutil.h          maperror.h         mapparser.y        mapshape.c         shptree.c
config.cache       maperror.o         mapprimitive.c     mapshape.h         sortshp.c
config.log         mapfile.c          mapprimitive.h     mapshape.o         sym2img.c
config.status*     mapfile.h          mapprimitive.o     mapstring.c        symbols/
configure*         mapfile.o          mapproject.c       mapstring.o        tiff-v3.5.5/
configure.in*      maphash.c          mapproject.h       mapsymbol.c        zlib-1.1.3/
epplib.c*          maphash.h          mapproject.o       mapsymbol.h
epplib.h*          maphash.o          mapquery.c         mapsymbol.o
fonts/             mapindex.c*        mapquery.o         maptree.c
freetype-1.3.1/    mapindex.h*        mapraster.c        maptree.h
*************************************************************
Makefile:

# Generated automatically from Makefile.in by configure.
# Run ./configure in the main MapServer directory to turn this Makefile.in
# into a proper Makefile

#
# If you want to ignore missing datafile errors uncomment the following
# line. This is especially useful with large tiled datasets that may not
# have complete data for each tile.
#
#IGNORE_MISSING_DATA=-DIGNORE_MISSING_DATA
IGNORE_MISSING_DATA = -DIGNORE_MISSING_DATA

#
# Apparently these aren't as commonplace as I'd hoped. Edit the
# following line to reflect the missing functions on your platform.
#
# STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRDUP
STRINGS=

# Freetype distribution (TrueType font support). Available at http://www.freetype.org/. (RECOMMENDED)
TTF_LIB=   -L/tmp/mapserver/gdft -lgdft -L/tmp/mapserver/freetype-1.3.1/lib -lttf
TTF_INC=   -I/tmp/mapserver/gdft -I/tmp/mapserver/freetype-1.3.1/lib
TTF=       -DUSE_TTF
MAKE_GDFT= gdft
MAKE_GDFT_CLEAN= gdft_clean

# Proj.4 distribution (cartographic projection routines). Not required for normal use. (EXPERIMENTAL)
PROJ_INC= -I/usr/local/include
PROJ_LIB= -L/usr/local/include -lproj
PROJ=     -DUSE_PROJ

# GD distribution (graphics library GIF and/or PNG support). (REQUIRED)
#
#   - Version 1.2 is included and writes LZW GIF (-DUSE_GD_1_2).
#   - Versions 1.3 to 1.5 write non-LZW GIF (-DUSE_GD_1_3).
#   - Versions 1.6 and greater write PNG (-DUSE_GD_1_6). Add -lpng -lz to GD_LIB line.
#
# If you're not using the 1.2 version included in the MapServer distribution
# then comment out the MAKE_GD and MAKE_GD_CLEAN entries.
#
GDFONT_OBJ=gd-1.8.3/gdfontt.o gd-1.8.3/gdfonts.o gd-1.8.3/gdfontmb.o gd-1.8.3/gdfontl.o gd-1.8.3/gdfontg.o
GD_INC=  -I/tmp/mapserver/gd-1.8.3
GD_LIB=  -L/tmp/mapserver/gd-1.8.3 -lgd -lpng -lz
GD=      -DUSE_GD_1_6
MAKE_GD=gd
MAKE_GD_CLEAN =

# TIFF distribution (raster support for TIFF and GEOTIFF imagery). (RECOMMENDED)
TIFF_INC= -I/tmp/mapserver/tiff-v3.5.5/libtiff
TIFF_LIB= -L/tmp/mapserver/tiff-v3.5.5/libtiff -ltiff
TIFF=     -DUSE_TIFF

# JPEG distribution (raster support for grayscale JPEG images, INPUT ONLY).
JPEG_INC= -I/tmp/mapserver/jpeg-6b
JPEG_LIB= -L/tmp/mapserver/jpeg-6b -ljpeg
JPEG=     -DUSE_JPEG

# EPPL7 Support (this activates ERDAS as well) Included in the distribution. Probably the best raster alternative if
# you've got EPPL7 laying around. See http://www.lmic.state.mn.us/ for more information. (RECOMMENDED)
EPPL=
EPPL_OBJ=

# ESRI SDE Support. You MUST have the SDE Client libraries and include files
# on your system someplace. The actual SDE server you wish to connect to can
# be elsewhere.
SDE=
SDE_LIB=
SDE_INC=

#
# UofMN GIS/Image Processing Extension (very experimental)
#
#EGIS=-DUSE_EGIS
#EGIS_INC=-I./egis/errLog -I./egis/imgSrc -I./egis
#EGIS_LIB=-L./egis/errLog -lerrLog -L./egis/imgSrc -limgGEN -L./egis -legis
#MAKE_EGIS=egis
#MAKE_EGIS_CLEAN=egis_clean

#
# IMPORTANT NOTE ABOUT REGEX FOR PHP_MAPSCRIPT USERS:
#
# In order to compile the PHP_MAPSCRIPT module, we have to make MapServer
# uses the same version of the REGEX library that PHP was compiled with:
#
REGEX_OBJ=
REGEX_INC=

#
# Pick a compiler, etc. Flex and bison are only required if you need to modify the mapserver lexer (maplexer.l) or expression parser (mapparser.y).
#
CC=    /usr/bin/xlc -qcpluscmt
AR= ar rc
RANLIB= ranlib
LEX=    lex
YACC=   yacc

XTRALIBS=  -lm
RUNPATHS=

CFLAGS=  $(IGNORE_MISSING_DATA) $(STRINGS) $(EPPL) $(PROJ) $(TTF) \
        $(TIFF) $(JPEG) $(GD) $(SDE) $(PROJ_INC) $(GD_INC) $(TTF_INC)       \
     $(TIFF_INC) $(JPEG_INC) $(EGIS_INC) $(SDE_INC) $(REGEX_INC)

LDFLAGS=  $(RUNPATHS) -L. -lmap $(GD_LIB) $(TTF_LIB) $(TIFF_LIB) $(PROJ_LIB) \
          $(JPEG_LIB) $(EGIS_LIB) $(SDE_LIB) $(XTRALIBS)

RM= /bin/rm -f

OBJS= mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o mapindex.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o
maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o $(EPPL_OBJ) $(REGEX_OBJ)




More information about the MapServer-users mailing list