Starting apache error: httpd cannot execute binary file

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 - 3 | Next >

Starting apache error: httpd cannot execute binary file

by Hao Zhang-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear all,

I downloaded fgs-mapserver_basic_5.4.2-fgs_9.5-linux-i386.bin and tried to install it onto sparc64 under Debian GNU/Linux 5.0 (lenny) as root.
The installation process completed properly but when it tried to start 'apache' in the end, it encountered the following error:

+ Starting 'apache':
/opt/fgs/www/bin/apachectl: line 82: /opt/fgs/www/bin/httpd: cannot execute binary file

Target system information is like:
uname -a
Linux  reeb  2.6.26-2-sparc64-smp  #1  SMP  Thu Aug 20 16:48:42 UTC 2009  sparc64  GNU/Linux

Has anyone met similar problem? Any suggestion will be highly appreciated. Thank you in advance.

Best Regards,
Hao Zhang

_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hao Zhang wrote:
> + Starting 'apache':
> /opt/fgs/www/bin/apachectl: line 82: /opt/fgs/www/bin/httpd: cannot
> execute binary file
>
Hao,

See
http://lists.maptools.org/pipermail/foss-gis-suite/2009-August/000778.html

Norm

_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Parent Message unknown Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hao Zhang wrote:
> Is there any other way to solve the problem e.g. FGS that is compiled
> as a 64-bits binary? Possible?
>

Hao,

I never compiled FGS on a 64-bits but you should be able to do it
without problem.

Norm
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by Hao Zhang-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Normand,

Is this tutorial on your website good enough to compile and build FGS pacakge from source for 64-bits sparc machine?

http://www.maptools.org/fgs/index.phtml?page=fgs-sandbox.html

Any other relevant guide out there?

Best Regards,
Hao

On Wed, Oct 28, 2009 at 1:30 PM, Normand Savard <nsavard@...> wrote:
Hao Zhang wrote:
Is there any other way to solve the problem e.g. FGS that is compiled as a 64-bits binary? Possible?


Hao,

I never compiled FGS on a 64-bits but you should be able to do it without problem.

Norm


_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hao Zhang wrote:
> Is this tutorial on your website good enough to compile and build FGS
> pacakge from source for 64-bits sparc machine?
>
> http://www.maptools.org/fgs/index.phtml?page=fgs-sandbox.html
>
> Any other relevant guide out there?
Hao,

You found the right doc.  Tell me how it goes.

Norm
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by Haertjens, Michael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I don't know if things have changed since the last time I attempted to
build FGS on a 64 bit machine (about a year ago), but at that time, the
automake/autoconf scripts for some of the libraries (jpeg comes to mind)
knew nothing about 64 bit architectures.   I ended up doing a 32 bit
build, which does run on 64 bit machines.

Mike Haertjens, SW Engineer
GCSD/Harris Corp.
MS:W3-31J
(321) 984-6826
mhaertje@...


-----Original Message-----
From: foss-gis-suite-bounces@...
[mailto:foss-gis-suite-bounces@...] On Behalf Of Normand
Savard
Sent: Wednesday, October 28, 2009 9:35 AM
To: Hao Zhang
Cc: foss-gis-suite@...
Subject: Re: [FGS] Starting apache error: httpd cannot execute binary
file


Hao Zhang wrote:
> Is this tutorial on your website good enough to compile and build FGS
> pacakge from source for 64-bits sparc machine?
>
> http://www.maptools.org/fgs/index.phtml?page=fgs-sandbox.html
>
> Any other relevant guide out there?
Hao,

You found the right doc.  Tell me how it goes.

Norm
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Haertjens, Michael wrote:
> I don't know if things have changed since the last time I attempted to
> build FGS on a 64 bit machine (about a year ago), but at that time, the
> automake/autoconf scripts for some of the libraries (jpeg comes to mind)
> knew nothing about 64 bit architectures.   I ended up doing a 32 bit
> build, which does run on 64 bit machines.
>
>  
Haertjens,

We're not aware of any issue with jpeg library or any other but you may
be right.  Nevertheless,
it's worth trying.

If it becomes a nightmare you could install ia32-libs for Sparc from here:

http://packages.debian.org/search?keywords=ia32&searchon=names&suite=stable§ion=all

Norm

_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by Hao Zhang-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Normand,

I am trying to build FGS from source. When it comes to build mapserver package using mapserver-5.4.2.tar.gz,
it complains and aborts:

[... blabla ...]
In file included from mapswf.c:41:
mapswf.h:37:18: error: ming.h: No such file or directory
In file included from mapswf.c:41:
mapswf.h:46: error: expected specifier-qualifier-list before ‘SWFMovie’
mapswf.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GetCurrentMovie’
mapswf.c: In function ‘StoreDblData’:
mapswf.c:69: error: ‘SWFObj’ has no member named ‘nDblDatas’
mapswf.c:70: error: ‘SWFObj’ has no member named ‘nDblDatas’
mapswf.c:71: error: ‘SWFObj’ has no member named ‘DblDatas’
mapswf.c:73: error: ‘SWFObj’ has no member named ‘DblDatas’
mapswf.c:78: error: ‘SWFObj’ has no member named ‘DblDatas’
mapswf.c:79: error: ‘SWFObj’ has no member named ‘DblDatas’
mapswf.c:82: error: ‘SWFObj’ has no member named ‘DblDatas’
[ ... a lot of error lines ...]
mapswf.c: At top level:
mapswf.c:3469: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GetCurrentMovie’
make: *** [mapswf.o] Error 1
! ./fgs_build: Fatal error returned, exiting...

It seems that ming.h file is missing in the directory of mapswf.h file. Have you experienced the same problem when you built mapserver package?

ia32-libs is not available for sparc architecure but only for amd64 and ia64.

Regards,
Hao


On Wed, Oct 28, 2009 at 4:42 PM, Normand Savard <nsavard@...> wrote:
Haertjens, Michael wrote:
I don't know if things have changed since the last time I attempted to
build FGS on a 64 bit machine (about a year ago), but at that time, the
automake/autoconf scripts for some of the libraries (jpeg comes to mind)
knew nothing about 64 bit architectures.   I ended up doing a 32 bit
build, which does run on 64 bit machines.
 
Haertjens,

We're not aware of any issue with jpeg library or any other but you may be right.  Nevertheless,
it's worth trying.

If it becomes a nightmare you could install ia32-libs for Sparc from here:

http://packages.debian.org/search?keywords=ia32&searchon=names&suite=stable&section=all

Norm



_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hao,

Answers in line.

Norm

Hao Zhang wrote:
> I am trying to build FGS from source. When it comes to build mapserver
> package using mapserver-5.4.2.tar.gz,
> it complains and aborts:
>
> [... blabla ...]
> In file included from mapswf.c:41:
> mapswf.h:37:18: error: ming.h: No such file or directory
What does the config.log says?


> Have you experienced the same problem when you built mapserver package?
>
I remember to have seen this once but could not remember what were the
conditions.
> ia32-libs is not available for sparc architecure but only for amd64
> and ia64.
>
Thanks for the clarification.
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Parent Message unknown Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hao,

Answers in line.

Norm

Hao Zhang wrote:
> The config.log contains too much stuff so that I attached it instead
> of copy-paste. Please help me to check what is wrong.
>
Everything seems to be correct.   I really don't know for now.  I'll ask
my co-worker here.
> Another issue is when building curl package, it requests wget
> cacert.pem from some url. Is it possible to change this behavior
> to get it directly from ~/FGS_DEV_HOME/cache/ directory? And how?

You could modify get_curl_certificates.sh to look like this:

## obtain MySQL
include/lib                                                    
## use static
lib                                                              
##                                                                              

## needed by:
curl                                                            
##                                                                              


CERTIFICATES_ARCHIVE_FILE="cacert.pem"
CERTIFICATES_ARCHIVE_SITE=http://curl.haxx.se/ca


## download it eventhough the file is already in the source directory
to      
##ensure that we have the lated version
available                              

if [ ! -f $FGS_SRC_CACHE_DIR/$CERTIFICATES_ARCHIVE_FILE ] ; then
    _PWD=$PWD
   cd $FGS_SRC_CACHE_DIR
   echo "+ Downloading certificates file from $CERTIFICATES_ARCHIVE_SITE"
   wget -O ${CERTIFICATES_ARCHIVE_FILE}
${CERTIFICATES_ARCHIVE_SITE}/${CERTIFIC\
ATES_ARCHIVE_FILE}?raw=1
   in_error_abort
   cd $_PWD
fi



_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Parent Message unknown Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hao Zhang wrote:
> The config.log contains too much stuff so that I attached it instead
> of copy-paste. Please help me to check what is wrong.
>

I checked again the config.log and also discussed with my co-worker
here.  It seems that there is no check in the MapServer configure to
detect if ming.h is really at the place it should be.  Could verify if
ming.h is at the right path in

/home/hao/test/FGS_PKG/fgs-dev/built/ming/include  ?


Norm
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hao,

Did you change the default version of ming in the build.list or is it 0.4.2?

Did you try to build MapServer from trunk?  To do it just change 5.4.2
to svn_trunk in the build.list in fgs-dev:

mapserver:5.4.2:5.4.2:/home/fgs/fgs-dev/src/mapserver-5.4.2

to

mapserver:svn_trunk::


Norm


Hao Zhang wrote:

> I am trying to build FGS from source. When it comes to build mapserver
> package using mapserver-5.4.2.tar.gz,
> it complains and aborts:
>
> [... blabla ...]
> In file included from mapswf.c:41:
> mapswf.h:37:18: error: ming.h: No such file or directory
> In file included from mapswf.c:41:
> mapswf.h:46: error: expected specifier-qualifier-list before ‘SWFMovie’
> mapswf.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘GetCurrentMovie’
> mapswf.c: In function ‘StoreDblData’:
> mapswf.c:69: error: ‘SWFObj’ has no member named ‘nDblDatas’
> mapswf.c:70: error: ‘SWFObj’ has no member named ‘nDblDatas’
> mapswf.c:71: error: ‘SWFObj’ has no member named ‘DblDatas’
> mapswf.c:73: error: ‘SWFObj’ has no member named ‘DblDatas’
> mapswf.c:78: error: ‘SWFObj’ has no member named ‘DblDatas’
> mapswf.c:79: error: ‘SWFObj’ has no member named ‘DblDatas’
> mapswf.c:82: error: ‘SWFObj’ has no member named ‘DblDatas’
> [ ... a lot of error lines ...]
> mapswf.c: At top level:
> mapswf.c:3469: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘GetCurrentMovie’
> make: *** [mapswf.o] Error 1
> ! ./fgs_build: Fatal error returned, exiting...
>
> It seems that ming.h file is missing in the directory of mapswf.h
> file. Have you experienced the same problem when you built mapserver
> package?
>

_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by Hao Zhang-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Norm,

There is no ming sub-directory under /home/hao/test/FGS_PKG/fgs-dev/built/ at all. At the begining, I ran command 'fgsdev custom_build_list create mapserver-base' and it generated build.list which contains:

libstdc++:::
libgcc:::
zlib:::
jpeg:::
tiff:::
libpng:::
freetype:::
libiconv:::
gd:::
openssl:::
curl:::
proj:::
proj4_epsg42xxx:::
libgeotiff:::
postgresql:::
unixODBC:::
freetds:::
xerces_c:::
libungif:::
gdal:::
expat:::
apache:::
libxml2:::
libxslt:::
sablotron:::
gettext:::
php:::
geos:::
agg:::
mapserver:::

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?

Thank you for your tip on get_curl_certificates.sh modification. I will try it now.

Regards,
Hao


On Fri, Oct 30, 2009 at 1:35 PM, Normand Savard <nsavard@...> wrote:
Hao Zhang wrote:
The config.log contains too much stuff so that I attached it instead of copy-paste. Please help me to check what is wrong.


I checked again the config.log and also discussed with my co-worker here.  It seems that there is no check in the MapServer configure to detect if ming.h is really at the place it should be.  Could verify if ming.h is at the right path in

/home/hao/test/FGS_PKG/fgs-dev/built/ming/include  ?


Norm


_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by Hao Zhang-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Norm,

On Fri, Oct 30, 2009 at 1:49 PM, Normand Savard <nsavard@...> wrote:
Hao,

Did you change the default version of ming in the build.list or is it 0.4.2?

I did not change it and it's 0.4.2.
 

Did you try to build MapServer from trunk?  To do it just change 5.4.2 to svn_trunk in the build.list in fgs-dev:

I did not try that. I will give a try if compiling still does not go through for mapserver.
 

mapserver:5.4.2:5.4.2:/home/fgs/fgs-dev/src/mapserver-5.4.2

to

mapserver:svn_trunk::


Norm



_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by Hao Zhang-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Norm,

When I build gdal 1.6.1 on Debian GNU/Linux sparc64 machine, it requires mysql-5.1.30-linux-i686-icc-glibc23.tar.gz package. But they are incompatible which causes the following fatal error:

[ ... ... ]
/usr/bin/ld: skipping incompatible /home/sorm/FGS/fgs-dev/built/mysql-5.1.30-linux-i686-icc-glibc23/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /home/sorm/FGS/fgs-dev/built/mysql-5.1.30-linux-i686-icc-glibc23/lib/libmysqlclient.a when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [/home/sorm/FGS/fgs-dev/src/gdal-1.6.1/libgdal.so] Error 1
make[1]: Leaving directory `/home/sorm/FGS/fgs-dev/src/gdal-1.6.1'
make: *** [check-lib] Error 2
! ./fgs_build: Fatal error returned, exiting...

I see mysql-5.1.30-linux-i686-icc-glibc23.tar.gz is hardcoded in get_mysql_devel.sh. Is there any compatible package for linux sparc64? If not, is it possible to skip mysql and/or gdal? I am not sure if mapserver requires gdal.

Regards,
Hao


On Fri, Oct 30, 2009 at 3:18 PM, Normand Savard <nsavard@...> 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


_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Parent Message unknown Re: Starting apache error: httpd cannot execute binary file

by Hao Zhang-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_check_sig@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_filler@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_get_IHDR@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_read_image@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_read_update_info@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_get_channels@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_strip_16@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_packing@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_create_info_struct@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_expand@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_get_PLTE@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_destroy_read_struct@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_create_read_struct@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_read_fn@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_init_io@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_sig_bytes@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_set_gray_to_rgb@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_read_info@PNG12_0'
/home/hao/test/FGS_PKG/fgs-dev/built/ming/lib/libming.so: undefined reference to `png_get_valid@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@...> 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@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_set_filler@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_read_update_info@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_create_info_struct@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_get_valid@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_get_rowbytes@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_get_PLTE@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_read_image@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_set_packing@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_set_strip_16@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_set_gray_to_rgb@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_read_info@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_init_io@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_get_channels@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_set_read_fn@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_check_sig@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_get_IHDR@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_set_sig_bytes@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_set_expand@PNG12_0'
../src/.libs/libming.so: undefined reference to `png_create_read_struct@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@...> 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



_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Parent Message unknown Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hao,

I'll have a look Monday morning.

Norm

Hao Zhang wrote:

>
> 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 <http://libutil.la> ../src/libming.la
> <http://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@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_filler@PNG12_0'
> ../src/.libs/libming.so: undefined reference to
> `png_read_update_info@PNG12_0'
> ../src/.libs/libming.so: undefined reference to
> `png_create_info_struct@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_valid@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_rowbytes@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_PLTE@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_read_image@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_packing@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_strip_16@PNG12_0'
> ../src/.libs/libming.so: undefined reference to
> `png_set_gray_to_rgb@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_read_info@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_init_io@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_channels@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_read_fn@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_check_sig@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_get_IHDR@PNG12_0'
> ../src/.libs/libming.so: undefined reference to
> `png_set_sig_bytes@PNG12_0'
> ../src/.libs/libming.so: undefined reference to `png_set_expand@PNG12_0'
> ../src/.libs/libming.so: undefined reference to
> `png_create_read_struct@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?
>
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by Hao Zhang-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Norm,

Could you help to look into the following issue? Thank you.

Regards,
Hao


On Fri, Oct 30, 2009 at 4:59 PM, Hao Zhang <hao@...> wrote:
Hi Norm,

When I build gdal 1.6.1 on Debian GNU/Linux sparc64 machine, it requires mysql-5.1.30-linux-i686-icc-glibc23.tar.gz package. But they are incompatible which causes the following fatal error:

[ ... ... ]
/usr/bin/ld: skipping incompatible /home/sorm/FGS/fgs-dev/built/mysql-5.1.30-linux-i686-icc-glibc23/lib/libmysqlclient.so when searching for -lmysqlclient
/usr/bin/ld: skipping incompatible /home/sorm/FGS/fgs-dev/built/mysql-5.1.30-linux-i686-icc-glibc23/lib/libmysqlclient.a when searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient

collect2: ld returned 1 exit status
make[1]: *** [/home/sorm/FGS/fgs-dev/src/gdal-1.6.1/libgdal.so] Error 1
make[1]: Leaving directory `/home/sorm/FGS/fgs-dev/src/gdal-1.6.1'
make: *** [check-lib] Error 2

! ./fgs_build: Fatal error returned, exiting...

I see mysql-5.1.30-linux-i686-icc-glibc23.tar.gz is hardcoded in get_mysql_devel.sh. Is there any compatible package for linux sparc64? If not, is it possible to skip mysql and/or gdal? I am not sure if mapserver requires gdal.

Regards,
Hao



_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite

Re: Starting apache error: httpd cannot execute binary file

by nsavard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hao Zhang wrote:
>
>     I see mysql-5.1.30-linux-i686-icc-glibc23.tar.gz is hardcoded in
>     get_mysql_devel.sh. Is there any compatible package for linux
>     sparc64? If not, is it possible to skip mysql and/or gdal? I am
>     not sure if mapserver requires gdal.
>
Hao,

You could check on
http://packages.debian.org/search?arch=sparc&keywords=mysql-client.  I
see one.  You can disable the support of mysql in
fgs-dev/pkg_def/gdal/fgs_build by commenting the line:

. $FGS_PKGS_DEF_HOME/_misc/get_mysql_devel.sh


This is the correct way to do it.

MapServer requires gdal.  If you're not sure id a package requires
another one you have to view the content of the *.required file for a
specific package for instance for MapServer view:

fgs-dev/pkg_dev/base.required


As a side note, to help you in your process of building fgs on Spac64
could you paste a copy of your "build.list" file to see where you are at?

Norm
_______________________________________________
Foss-gis-suite mailing list
Foss-gis-suite@...
http://lists.maptools.org/mailman/listinfo/foss-gis-suite
< Prev | 1 - 2 - 3 | Next >