Re: [PHP-DEV] 4.0.2 TSRM compile failure From: Andi Gutmans (andi <email protected>)
Date: 09/11/00

Can you check php_config.h and make sure ZTS is not defined there (#define
ZTS 0 or #define ZTS 1 means it is defined), then check tsrm_config.h and
make sure it includes php_config.h. Last but not least check TSRM.c and
TSRM.h and make sure there is an #ifdef ZTS around those files.

Andi

At 09:44 PM 9/10/00 -0400, Matthew Hagerty wrote:
> From configure:
>
>checking whether fp_except is defined... no
>checking whether to enable C9x-inline semantics... no
>checking whether to enable experimental ZTS... no
>checking whether to enable inline optimization for GCC... no
>checking whether to enable a memory limit... no
>checking whether to enable Zend debugging... no
>checking for inline... inline
>
>Configuring TSRM
>checking for stdarg.h... (cached) yes
>
>
>Matthew
>
>
>At 06:34 PM 9/10/00 -0600, Joey Smith wrote:
>>Are you trying to enable thread safety? IE, using something like:
>>--enable-experimental-zts ?
>>
>>On Sun, 10 Sep 2000, Matthew Hagerty wrote the following to
>>php-dev <email protected>:
>>
>> > Greetings,
>> >
>> > I'm trying very hard to get 4.0.2 to compile on my system. I finally got
>> > through the configure, now during make I get the following error. My
>> > system config is:
>> >
>> > FreeBSD-4.0-RELEASE
>> > Apache-1.3.12
>> > gcc version 2.95.2 19991024 (release)
>> >
>> > ./configure --with-gd=/usr/local --with-jpeg-dir=/usr/local
>> > --with-tiff-dir=/usr/local --with-zlib --with-mcrypt=/usr/local
>> > --with-pgsql --with-cpdflib=/usr/local --with-dbase
>> > --with-config-file-path=/usr/site/conf --enable-track-vars --without-mysql
>> > --with-cybercash=/usr/local/mck
>> --with-apache=../../tempapache/apache_1.3.12
>> >
>> >
>> > Thanks,
>> > Matthew
>> >
>> >
>> >
>> > In file included from TSRM.c:16:
>> > TSRM.h:84: syntax error before `THREAD_T'
>> > TSRM.h:98: syntax error before `tsrm_thread_id'
>> > TSRM.h:98: warning: data definition has no type or storage class
>> > TSRM.h:99: syntax error before `tsrm_mutex_alloc'
>> > TSRM.h:99: warning: data definition has no type or storage class
>> > TSRM.h:100: syntax error before `mutexp'
>> > TSRM.h:101: syntax error before `mutexp'
>> > TSRM.h:102: syntax error before `mutexp'
>> > TSRM.h:104: syntax error before `thread_id'
>> > TSRM.h:105: syntax error before `thread_id'
>> > TSRM.c:29: syntax error before `THREAD_T'
>> > TSRM.c:51: syntax error before `tsmm_mutex'
>> > TSRM.c:51: warning: data definition has no type or storage class
>> > TSRM.c:181: syntax error before `THREAD_T'
>> > TSRM.c: In function `allocate_new_resource':
>> > TSRM.c:185: `thread_resources_ptr' undeclared (first use in this function)
>> > TSRM.c:185: (Each undeclared identifier is reported only once
>> > TSRM.c:185: for each function it appears in.)
>> > TSRM.c:188: `thread_id' undeclared (first use in this function)
>> > TSRM.c: At top level:
>> > TSRM.c:209: syntax error before `THREAD_T'
>> > TSRM.c: In function `ts_resource_ex':
>> > TSRM.c:211: syntax error before `thread_id'
>> > TSRM.c:216: `th_id' undeclared (first use in this function)
>> > TSRM.c:217: `thread_id' undeclared (first use in this function)
>> > TSRM.c:221: `id' undeclared (first use in this function)
>> > TSRM.c:233: structure has no member named `thread_id'
>> > TSRM.c: In function `ts_free_thread':
>> > TSRM.c:261: syntax error before `thread_id'
>> > TSRM.c:267: `thread_id' undeclared (first use in this function)
>> > TSRM.c:271: structure has no member named `thread_id'
>> > TSRM.c: At top level:
>> > TSRM.c:311: syntax error before `tsrm_thread_id'
>> > TSRM.c:328: syntax error before `tsrm_mutex_alloc'
>> > TSRM.c: In function `tsrm_mutex_alloc':
>> > TSRM.c:330: syntax error before `mutexp'
>> > TSRM.c:349: `mutexp' undeclared (first use in this function)
>> > TSRM.c: At top level:
>> > TSRM.c:354: syntax error before `mutexp'
>> > TSRM.c: In function `tsrm_mutex_free':
>> > TSRM.c:356: `mutexp' undeclared (first use in this function)
>> > TSRM.c: At top level:
>> > TSRM.c:377: syntax error before `mutexp'
>> > TSRM.c:398: syntax error before `mutexp'
>> > TSRM.c:418: syntax error before `thread_id'
>> > TSRM.c:427: syntax error before `thread_id'
>> > *** Error code 1
>> >
>> > Stop in /usr/local/download/tphp4/php-4.0.2/TSRM.
>> > *** Error code 1
>> >
>> > Stop in /usr/local/download/tphp4/php-4.0.2.
>> >
>> >
>> >
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>