Building 3.3.007
Robert Aldridge
RALDRIDG at gulf-states.com
Mon Mar 6 11:08:51 PST 2000
I recently downloaded and built ms_3.3.007 with no problems. I built it with gd-1.7.3 and libTiff. I then copied the mapserv executable to my CGI directory. Everything works fine. I have 3 different projects set up and all work great. Unfortunately, I removed the ms_3.3.007 directory before copying the other utilities. So, I was just going to replicate what I did before and copy the utilities and the mapscript stuff. However, when I try to build it now, I get the errors shown below. I thought that I did everything identical to before, but apparently not. Here's what I did:
1) tar xzvf ms_3.3.007.tar.gz
2) cd ms_3.3.007
3) tar xzvf ../gd-1.7.3.tar.gz
4) vi Makefile (changed all references to gd-1.2 to gd-1.7.3 and all -DUSE_GD_1_2 to -DUSE_GD_1_6)
5) cd gdft
6) vi Makefile (changed all references to gd-1.2 to gd-1.7.3 and all -DUSE_GD_1_2 to -DUSE_GD_1_6)
7) cd ..
8) make
9) Got "maplabel.c:13: freetype.h: No such file or directory"
10) make clean
11) cd gdft
12) cp /usr/local/include/freetype/*.h .
13) cd ..
14) make
then, I get the following. Any ideas? Since my mapserver is working OK, should I just wait for ms_3.3.008?
Thanks,
Robert Aldridge
[begin code snippet]
.
.
.
gcc -Wall -O -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_GD_1_6 -I./gd-1.7.3 -I./gdft shp2img.o -L. -lmap -L./gd-1.7.3 -lgd -L./gdft -lgdft -lttf -ltiff -lm -o shp2img
./gd-1.7.3/libgd.a(gd_png.o): In function `gdPngErrorHandler':
gd_png.o(.text+0x27): undefined reference to `png_get_error_ptr'
./gd-1.7.3/libgd.a(gd_png.o): In function `gdPngReadData':
gd_png.o(.text+0x6b): undefined reference to `png_get_io_ptr'
./gd-1.7.3/libgd.a(gd_png.o): In function `gdPngWriteData':
gd_png.o(.text+0x8f): undefined reference to `png_get_io_ptr'
./gd-1.7.3/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx':
gd_png.o(.text+0x107): undefined reference to `png_check_sig'
gd_png.o(.text+0x132): undefined reference to `png_create_read_struct'
gd_png.o(.text+0x15b): undefined reference to `png_create_info_struct'
gd_png.o(.text+0x1a6): undefined reference to `png_set_sig_bytes'
gd_png.o(.text+0x1b7): undefined reference to `png_set_read_fn'
gd_png.o(.text+0x1c2): undefined reference to `png_read_info'
gd_png.o(.text+0x1e5): undefined reference to `png_get_IHDR'
gd_png.o(.text+0x1f6): undefined reference to `png_set_strip_16'
gd_png.o(.text+0x20a): undefined reference to `png_set_packing'
gd_png.o(.text+0x22b): undefined reference to `png_set_strip_alpha'
gd_png.o(.text+0x255): undefined reference to `png_get_PLTE'
gd_png.o(.text+0x262): undefined reference to `png_get_valid'
gd_png.o(.text+0x298): undefined reference to `png_get_tRNS'
gd_png.o(.text+0x366): undefined reference to `png_get_valid'
gd_png.o(.text+0x384): undefined reference to `png_get_tRNS'
gd_png.o(.text+0x3e7): undefined reference to `png_get_valid'
gd_png.o(.text+0x401): undefined reference to `png_get_tRNS'
gd_png.o(.text+0x4ed): undefined reference to `png_set_dither'
gd_png.o(.text+0x4fb): undefined reference to `png_read_update_info'
gd_png.o(.text+0x506): undefined reference to `png_get_rowbytes'
gd_png.o(.text+0x53b): undefined reference to `png_destroy_read_struct'
gd_png.o(.text+0x57b): undefined reference to `png_destroy_read_struct'
gd_png.o(.text+0x5ac): undefined reference to `png_read_image'
gd_png.o(.text+0x5b6): undefined reference to `png_read_end'
gd_png.o(.text+0x5e9): undefined reference to `png_destroy_read_struct'
gd_png.o(.text+0x6c2): undefined reference to `png_destroy_read_struct'
./gd-1.7.3/libgd.a(gd_png.o): In function `gdImagePngCtx':
gd_png.o(.text+0x801): undefined reference to `png_create_write_struct'
gd_png.o(.text+0x82e): undefined reference to `png_create_info_struct'
gd_png.o(.text+0x895): undefined reference to `png_set_write_fn'
gd_png.o(.text+0x9ca): undefined reference to `png_set_IHDR'
gd_png.o(.text+0xa53): undefined reference to `png_set_tRNS'
gd_png.o(.text+0xbcb): undefined reference to `png_set_PLTE'
gd_png.o(.text+0xbdc): undefined reference to `png_write_info'
gd_png.o(.text+0xbe7): undefined reference to `png_set_packing'
gd_png.o(.text+0xcfb): undefined reference to `png_write_image'
gd_png.o(.text+0xd0c): undefined reference to `png_write_end'
gd_png.o(.text+0xd5c): undefined reference to `png_write_image'
gd_png.o(.text+0xd6d): undefined reference to `png_write_end'
gd_png.o(.text+0xd83): undefined reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
[end code snippet]
More information about the MapServer-users
mailing list