# PHP5.1.1 Pthreads issues on cross compilation

- Thread: https://externals.io/message/21866
- Original archive: https://news-web.php.net/php.internals/21866
- Started by Artzi on 2006-02-14T15:32:07+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21866 — Artzi — 2006-02-14T15:32:07+00:00

URL: https://externals.io/message/21866#21866

I have a problem that the PHP configure seems to automatically disable
pthreads when I compile on cross platfrom.
Host: i686-pentium-linux
Target: ppc-powerquicc-linux
 
More details about the target machine:
PowerQuicc II MPC8248
 
My configure file is as follows:
'./configure' \
'--cache-file=config.cache' \
'--disable-debug' \
'--enable-memory-limit' \
'--enable-pic' \
'--enable-safe-mode' \
'--enable-sockets' \
'--enable-track-vars' \
'--enable-trans-sid' \
'--enable-wddx' \
'--sysconfdir=/home/yoav/export/etc/appWeb' \
'--with-exec-dir=/home/yoav/export/etc/appWeb/exec' \
'--with-regex=system' \
'--with-pear' \
'--with-xml' \
'--with-xmlrpc' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-force-cgi-redirect' \
'--enable-ftp' \
'--enable-inline-optimization' \
'--enable-magic-quotes' \
'--disable-rpath' \
'--with-zlib' \
'--with-db' \
'--enable-embed=shared' \
'--with-gnu-ld' \
'--prefix=/home/yoav/export/etc/php5' \
'--target=ppc-powerquicc-linux' \
'--enable-maintainer-zts' \
'--with-tsrm-pthreads' 
 
Using ZTS as an application I would like to use (AppWeb) required it and
I must have a multi threaded version of PHP.
Looking at the configure file it seems that PHP automatically chooses to
disable pthreads once it detects it's a cross platform compilation.
 
Thanks,
 
Yoav.
