[GRASS-user] errors compiling on Zenwalk

Hi all,

I'm trying to compile latest svn in Zenwalk 5.2 (Slackware based), but
I got lots of errors. The first module of the error list was d.ask, so
I went to run make inside it:

root[d.ask]# make
gcc -L/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib
-s -Wl,--export-dynamic
-Wl,-rpath-link,/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib
-L/usr/include/libpq -o
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/bin/d.ask
OBJ.i686-pc-linux-gnu/main.o -lgrass_raster -lgrass_pngdriver
-lgrass_driver -lgrass_gis -lgrass_datetime -lz -lfreetype
-lgrass_gis -lgrass_datetime -lz -L/usr/lib -lpng -lz -lm
-lgrass_psdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz
-lfreetype -lgrass_gis -lgrass_datetime -lz -lgrass_driver
-lgrass_gis -lgrass_datetime -lz -lfreetype -lgrass_gis
-lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lm
-lz
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_destroy_read_struct@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_set_tRNS@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_create_info_struct@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_set_compression_level@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_get_PLTE@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_write_end@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_write_row@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_set_invert_alpha@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_read_info@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_init_io@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_write_info@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_set_PLTE@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_get_tRNS@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_read_row@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_get_IHDR@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_read_end@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_set_IHDR@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_destroy_write_struct@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_create_write_struct@PNG12_0'
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_create_read_struct@PNG12_0'
collect2: ld returned 1 exit status
make: *** [/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/bin/d.ask]
Error 1

hints?

TIA

--
+-----------------------------------------------------------+
Carlos Henrique Grohmann - Guano
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.

"Carlos \"Guâno\" Grohmann" wrote:

I'm trying to compile latest svn in Zenwalk 5.2 (Slackware based), but
I got lots of errors. The first module of the error list was d.ask, so
I went to run make inside it:

root[d.ask]# make
gcc -L/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib
-s -Wl,--export-dynamic
-Wl,-rpath-link,/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib
-L/usr/include/libpq -o
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/bin/d.ask
OBJ.i686-pc-linux-gnu/main.o -lgrass_raster -lgrass_pngdriver
-lgrass_driver -lgrass_gis -lgrass_datetime -lz -lfreetype
-lgrass_gis -lgrass_datetime -lz -L/usr/lib -lpng -lz -lm
-lgrass_psdriver -lgrass_driver -lgrass_gis -lgrass_datetime -lz
-lfreetype -lgrass_gis -lgrass_datetime -lz -lgrass_driver
-lgrass_gis -lgrass_datetime -lz -lfreetype -lgrass_gis
-lgrass_datetime -lz -lgrass_gis -lgrass_datetime -lz -lm
-lz
/home/guano/tmp_install/gis/grass_trunk/dist.i686-pc-linux-gnu/lib/libgrass_pngdriver.so:
undefined reference to `png_destroy_read_struct@PNG12_0'

There seems to be a problem with Your PNG library. Specifically, you
appear to have multiple, incompatible versions installed with the same
name.

--
Glynn Clements <glynn@gclements.plus.com>

There seems to be a problem with Your PNG library. Specifically, you
appear to have multiple, incompatible versions installed with the same
name.

Thanks for your help, Glinn, but it doesn't look like I have more than
one libpng installed:

root[guano]# netpkg list |grep installed |grep png
[I][l] Found installed libpng-1.2.27-i486-1.tgz on the repository

Carlos

--
+-----------------------------------------------------------+
Carlos Henrique Grohmann - Guano
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Can't stop the signal.