php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26361 session compilation error
Submitted: 2003-11-22 18:20 UTC Modified: 2003-11-23 01:04 UTC
From: phresno at concept-factory dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.4 OS: Embedix 2.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phresno at concept-factory dot com
New email:
PHP Version: OS:

 

 [2003-11-22 18:20 UTC] phresno at concept-factory dot com
Description:
------------
Target: arm-linux
OS: Linux (Embedix 2.0)
Kernel: 2.4.18-rmk7-pxa3-embedix

Host: i386-slackware-linux
OS: Linux (Slackware 9.1)
Kernel: 2.4.20

./configure \
--host=i386-slackware-linux \
--target=arm-linux \
--prefix=../opt \
--disable-short-tags \
--without-mysql \
--without-pear

make -k 

On session.c I get multiple errors like this:
./development/zaurus/php-4.3.4/ext/session/session.c:121: parse error before `php_ps_globals'
./development/zaurus/php-4.3.4/ext/session/session.c:121: initializer element is not constant
./development/zaurus/php-4.3.4/ext/session/session.c:121: (near initialization for `ini_entries[0].mh_arg1')

If i include pear I get other similar errors in main.c and other locations.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-22 20:43 UTC] sniper@php.net
I'm very close to bogusing this since I believe it's not any PHP bug at all..we'd got hundreds of reports if it was by now.

Anyway, try this:

# rm config.cache
# ./configure --disable-all
# make clean && make

(And EXACTLY and only that)

 [2003-11-22 20:54 UTC] phresno at concept-factory dot com
Note before I run commands, by not including --host and --target it will build for the host system which does work. If you look at my notes, I am building this for a target with a different CPU architecture. This will not fix the problem as i386 binaries CANNOT run on a StrongARM processor.

Followed your suggested compilation script...
Now I have a compiled i386 version, not an Arm version.
 [2003-11-22 21:00 UTC] phresno at concept-factory dot com
On further note, if I compile with:

./configure \
--host=i386-slackware-linux \
--target=arm-linux \
--prefix=../opt \
--disable-short-tags \
--without-mysql \
--without-pear \
--disable-session

(sessions fully disabled)

It will compile with warnings, however, it will _always_ segfault after executing a script on the target system.
 [2003-11-22 21:40 UTC] phresno at concept-factory dot com
Tried Following: (exactly)

export CC=/usr/local/arm-linux/arm-linux-gcc
make clean
rm config.cache
./configure \
--host=i386-slackware-linux \
--target=arm-linux \
--disable-all
make clean
make
make install

Compiles. Also Executes on traget system (as stated before, I can do this simply by using the --disable-session option). Does not solve session.lo compilation issue as session support is fully left out. (problem I'm having is compiling in session support) Also, still segfaults after every execution.
 [2003-11-23 01:04 UTC] sniper@php.net
Missed somehow the different target here..not PHP bug.
(fix your compilation environment)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Nov 28 09:00:01 2025 UTC