Hi Norm,<br><br>ming-0.4.2 can not be properly built as it always encouters the errors I mentioned in the last email. Then I tried with ming-0.3.0 and it was successfully built.<br>Then I continued to try building mapserver from 5.4.2 or svn_trunk. But both of them failed with errors:<br>
<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_get_rowbytes@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_check_sig@PNG12_0'<br>
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_filler@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_get_IHDR@PNG12_0'<br>
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_read_image@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_read_update_info@PNG12_0'<br>
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_get_channels@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_strip_16@PNG12_0'<br>
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_packing@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_create_info_struct@PNG12_0'<br>
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_expand@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_get_PLTE@PNG12_0'<br>
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_destroy_read_struct@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_create_read_struct@PNG12_0'<br>
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_read_fn@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_init_io@PNG12_0'<br>
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_sig_bytes@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_gray_to_rgb@PNG12_0'<br>
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_read_info@PNG12_0'<br>/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_get_valid@PNG12_0'<br>
collect2: ld returned 1 exit status<br>make: *** [shp2img] Error 1<br>! ./fgs_build: Fatal error returned, exiting...<br>! /home/hao/test/FGS_PKG/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned, exiting...<br><br>What could be the root cause of this compile error?<br>
<br>Regards,<br>Hao<br> <br><br><div class="gmail_quote">On Fri, Oct 30, 2009 at 4:00 PM, Hao Zhang <span dir="ltr"><<a href="mailto:hao@zhang.nu">hao@zhang.nu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Norm,<br><br>I was building ming package as you indicated but encountered errors:<br><br>[ ... ... ]<br>mv -f .deps/listswf-main.Tpo .deps/listswf-main.Po<br>/bin/bash ../libtool --tag=CC --mode=link gcc -DNODECOMPILE -g -O2 -Wall -DSWF_LITTLE_ENDIAN -o listswf listswf-outputtxt.o listswf-main.o <a href="http://libutil.la" target="_blank">libutil.la</a> ../src/<a href="http://libming.la" target="_blank">libming.la</a> <br>
gcc -DNODECOMPILE -g -O2 -Wall -DSWF_LITTLE_ENDIAN -o .libs/listswf listswf-outputtxt.o listswf-main.o ./.libs/libutil.a -lm -lz ../src/.libs/libming.so -Wl,--rpath -Wl,/home/hao/test/FGS_PKG/fgs-dev0/built/ming/lib<br>
../src/.libs/libming.so: undefined reference to `png_destroy_read_struct@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_set_filler@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_read_update_info@PNG12_0'<br>
../src/.libs/libming.so: undefined reference to `png_create_info_struct@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_get_valid@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_get_rowbytes@PNG12_0'<br>
../src/.libs/libming.so: undefined reference to `png_get_PLTE@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_read_image@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_set_packing@PNG12_0'<br>
../src/.libs/libming.so: undefined reference to `png_set_strip_16@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_set_gray_to_rgb@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_read_info@PNG12_0'<br>
../src/.libs/libming.so: undefined reference to `png_init_io@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_get_channels@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_set_read_fn@PNG12_0'<br>
../src/.libs/libming.so: undefined reference to `png_check_sig@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_get_IHDR@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_set_sig_bytes@PNG12_0'<br>
../src/.libs/libming.so: undefined reference to `png_set_expand@PNG12_0'<br>../src/.libs/libming.so: undefined reference to `png_create_read_struct@PNG12_0'<br>collect2: ld returned 1 exit status<br>make[1]: *** [listswf] Error 1<br>
make[1]: Leaving directory `/home/hao/test/FGS_PKG/fgs-dev0/src/ming-0.4.2/util'<br>make: *** [all-recursive] Error 1<div class="im"><br>! ./fgs_build: Fatal error returned, exiting...<br></div>! /home/hao/test/FGS_PKG/fgs-dev0/bin/fgs_build_pkg.sh: Fatal error returned, exiting...<br>
<br>Its config.log is attached. What do you think is going wrong? <br><br>Regards,<br><font color="#888888">Hao</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Fri, Oct 30, 2009 at 3:18 PM, Normand Savard <span dir="ltr"><<a href="mailto:nsavard@mapgears.com" target="_blank">nsavard@mapgears.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hao Zhang wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It does not include ming package at all. Could this be the reason that ming is missing under ~/built/ directory which causes mapserver build failure?<br>
<br>
</blockquote></div>
This is surely it. Add it in the build list and do:<br>
<br>
fgsdev build_pkg ming<br>
<br>
then build MapServer.<br>
<br>
Norm<br>
</blockquote></div><br>
</div></div></blockquote></div><br>