[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] Php building, missing library



Hi Chris,

I didn't even know you could use "mb-linux" as the host setting. I always use "i386-pc-linux" which seems to work for most things. I can build and run AppWeb without PHP just fine. Its only when I try to build php with it that it all goes pear shaped because of the missing library(s). I might try porting the missing library over and see what happens.

Also, probably a stupid question, but when I'm building PHP to get the .so file for AppWeb, do I use the microblaze compiler tools or just normal GCC?

Thanks, Stephen


From: clr1004@xxxxxxxxxxx
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: Re: [microblaze-uclinux] Php building, missing library
Date: Sun, 29 Mar 2009 07:37:53 -0400


Stephen

First, let me state I am no expert with all this, but, like you, trying
to get both libraries and apps built for the MB environment. At a
minimum you can try working with this suggestion....
./configure --disable-xml --disable-db --without-ejs --without-openssl
--host=mb-linux

Until I or some else who gets it done before me, you will have to
disable the xml and openssl libraries (I'm still banging my head on the
wall with these). Second, I suspect libdb is not enable, I dont see it
in either the ./lib or ./user subdirectories.

However, the above configure still isnt going to work because AppWeb
doesn't like the --host=mb-linux flag nor does it "seem" to do the right
things with setting CC=mb-linux-gcc (or other flags). I suspect some
modifications are required to the configuration files in ./build, but
lets hope I wrong.

Sorry I can't be more help, but I need to focus on getting OpenSSL
working, since it is becoming an critical problem for many apps.

FYI, I have found the Sofia-SIP configuration files the most flexible
and product toward x-cross compiling for MB. That is, all it took was
setting ./configure flags and adding the "romfs:" statement in the
resulting Makefile. Maybe the solution for all attempts to port to MB
is follow Sofia-SIP's lead and rewrite the configuration files? Time
will tell.....

....Chris


Stephen Kyne wrote:
> Hey all,
> I'm currently trying to get AppWeb and PHP working together but I'm
> having problems at the final step. When I try to compile AppWeb with
> PHP, I'm getting an error saying:
> # bld "--c++" "--graphical" "--executable"
> "../bin/i386-pc-linux/appweb" "--libraryPath"
> "../../../../../../php-5.2.0" "--libraryPath"
> "../../../../../../php-5.2.0/libs" "--preferStatic" "--libs" "appweb
> libphp5 crypt resolv db z" "--libs" "libphp5 crypt resolv db z"
> "../obj/i386-pc-linux/appweb.o" "../obj/i386-pc-linux/romFiles.o"
> "../obj/i386-pc-linux/appwebStaticLink.o"
> "/home/stevek/petalinux-v0.30-rc1/tools/linux-i386/microblaze-uclinux-tools/bin/microblaze-uclinux-g++"
> -o ../bin/i386-pc-linux/appweb -Wall -g -L../../../../../../php-5.2.0
> -L../../../../../../php-5.2.0/libs -L../lib/i386-pc-linux
> ../obj/i386-pc-linux/appweb.o ../obj/i386-pc-linux/romFiles.o
> ../obj/i386-pc-linux/appwebStaticLink.o
> ../lib/i386-pc-linux/libappwebStatic.a
> ../../../../../../php-5.2.0/libs/libphp5.so -lcrypt -lresolv -ldb -lz
> ../../../../../../php-5.2.0/libs/libphp5.so -lcrypt -lresolv -ldb -lz
> /home/stevek/petalinux-v0.30-rc1/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/../../../../microblaze-uclinux/bin/ld.real:
> cannot find -ldb
>
>
> I take it "-ldb" refers to the Berkeley DB library. My question is, do
> I port this to Uclinux/Petalinux or is it already a part of it but
> I've missed something?
> Thanks
>
> ------------------------------------------------------------------------
> Get the next generation of Free Windows Live Services Click here!
>




Internet Explorer 8 – Get your Hotmail Accelerated. Download free!

Join the all-new Windows Live Messenger family Click here!