[FGS] Starting apache error: httpd cannot execute binary file
Hao Zhang
hao at zhang.nu
Fri Oct 30 12:18:11 EST 2009
Hi Norm,
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.
Then I continued to try building mapserver from 5.4.2 or svn_trunk. But both
of them failed with errors:
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_get_rowbytes at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_check_sig at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_set_filler at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_get_IHDR at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_read_image at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_read_update_info at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_get_channels at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_set_strip_16 at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_set_packing at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_create_info_struct at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_set_expand at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_get_PLTE at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_destroy_read_struct at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_create_read_struct at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_set_read_fn at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_init_io at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_set_sig_bytes at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_set_gray_to_rgb at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_read_info at PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined
reference to `png_get_valid at PNG12_0'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
! ./fgs_build: Fatal error returned, exiting...
! /home/hao/test/FGS_PKG/fgs-dev/bin/fgs_build_pkg.sh: Fatal error returned,
exiting...
What could be the root cause of this compile error?
Regards,
Hao
On Fri, Oct 30, 2009 at 4:00 PM, Hao Zhang <hao at zhang.nu> wrote:
> Hi Norm,
>
> I was building ming package as you indicated but encountered errors:
>
> [ ... ... ]
> mv -f .deps/listswf-main.Tpo .deps/listswf-main.Po
> /bin/bash ../libtool --tag=CC --mode=link gcc -DNODECOMPILE -g -O2 -Wall
> -DSWF_LITTLE_ENDIAN -o listswf listswf-outputtxt.o listswf-main.o
> libutil.la ../src/libming.la
> 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
> ../src/.libs/libming.so: undefined reference to
> `png_destroy_read_struct at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_filler at PNG12_0'
> ../src/.libs/libming.so: undefined reference to
> `png_read_update_info at PNG12_0'
> ../src/.libs/libming.so: undefined reference to
> `png_create_info_struct at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_valid at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_rowbytes at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_PLTE at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_read_image at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_packing at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_strip_16 at PNG12_0'
> ../src/.libs/libming.so: undefined reference to
> `png_set_gray_to_rgb at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_read_info at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_init_io at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_channels at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_read_fn at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_check_sig at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_IHDR at PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_sig_bytes at PNG12_0
> '
> ../src/.libs/libming.so: undefined reference to `png_set_expand at PNG12_0'
> ../src/.libs/libming.so: undefined reference to
> `png_create_read_struct at PNG12_0'
> collect2: ld returned 1 exit status
> make[1]: *** [listswf] Error 1
> make[1]: Leaving directory
> `/home/hao/test/FGS_PKG/fgs-dev0/src/ming-0.4.2/util'
> make: *** [all-recursive] Error 1
>
> ! ./fgs_build: Fatal error returned, exiting...
> ! /home/hao/test/FGS_PKG/fgs-dev0/bin/fgs_build_pkg.sh: Fatal error
> returned, exiting...
>
> Its config.log is attached. What do you think is going wrong?
>
> Regards,
> Hao
>
>
>
> On Fri, Oct 30, 2009 at 3:18 PM, Normand Savard <nsavard at mapgears.com>wrote:
>
>> Hao Zhang wrote:
>>
>>> 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?
>>>
>>> This is surely it. Add it in the build list and do:
>>
>> fgsdev build_pkg ming
>>
>> then build MapServer.
>>
>> Norm
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/foss-gis-suite/attachments/20091030/2f00a62e/attachment.htm
More information about the Foss-gis-suite
mailing list