Hi
I'm a bit of a newbie with this stuff, posted on a few forums before finding this one.
Anyway I have a mini arm based PC for which I am trying to compile a php binary in cgi-mode, which supports sqlite.
I am trying to cross compile from a Ubuntu PC.
My code is as follows (from the unzipped PHP directory):
$ export CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc
$ export CXX=/usr/local/arm/3.4.1/bin/arm-linux-cpp
$ ./configure --host=i386-linux-gnu --prefix=/usr/home/ben/Desktop/php_bin --enable-ftp --target=arm --without-pear --disable-simplexml --disable-mbregex --enable-sockets --enable-pdo --with-pdo-sqlite --with-sqlite3 --disable-all
$ make
$ make install
It runs through the ./configure fine until the make command, where it falls over with the following error:
.....Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo main/internal_functions.lo -lcrypt -lcrypt -lrt -lm -lcrypt -lcrypt -o sapi/cgi/php-cgi ext/date/lib/parse_date.o: could not read symbols: Input/output error collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
I went into to php-5.3.2/ext/date/lib and sure enough the parse_date.o file hangs the OS when I try and open it.
I re-downloaded the php 5.3.2 tarball, (thinking it could be a corrupt download) and php-5.3.2/ext/date/lib/parse_date.o doesn't exist, and I get the same error anyway.
I've been researching online a bit and .o files are made during installations....
Anyway I've tried the configure without the "--target=arm" to eliminate an arm problem (I get the exact same error).
Also without specifying the gcc or cpp compilers, allowing the ./configure use those bundled with ubuntu (again the same error)
And finally without both (predictably the same error occured)
If anyone can suggest what I'm doing wrong (and hopefully educate me as to how I can put it right) I'd be eternally grateful!
Cross-compiling PHP for arm, with sqlite
Moderator: General Moderators
Re: Cross-compiling PHP for arm, with sqlite
I see the word symbols in the error message. I think this is caused by version incompatibilities. That's about all I can tell you.
-
felipe12357
- Forum Newbie
- Posts: 2
- Joined: Thu Jun 10, 2010 5:50 pm
Re: Cross-compiling PHP for arm, with sqlite
Friend i had the same issue i could solve with php version 5.2.10, try it and let me know how were you?
im tring to do the same thing i could compile well but this was what happend to me:
Build complete.
Don't forget to run 'make test'.
felipe@felipe-desktop:~/Escritorio/php-5.2.10$ make test
Build complete.
Don't forget to run 'make test'.
/home/felipe/Escritorio/php-5.2.10/sapi/cli/php: 1: Syntax error: word unexpected (expecting ")")
make: [test] Error 2 (no tiene efecto)
what could did i make wrong?
im tring to do the same thing i could compile well but this was what happend to me:
Build complete.
Don't forget to run 'make test'.
felipe@felipe-desktop:~/Escritorio/php-5.2.10$ make test
Build complete.
Don't forget to run 'make test'.
/home/felipe/Escritorio/php-5.2.10/sapi/cli/php: 1: Syntax error: word unexpected (expecting ")")
make: [test] Error 2 (no tiene efecto)
what could did i make wrong?