php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56771 Can't compile on freebsd
Submitted: 2006-01-11 16:41 UTC Modified: 2007-10-17 16:17 UTC
From: pecl at ark dot ethaniel dot com Assigned:
Status: No Feedback Package: memcache (PECL)
PHP Version: 5.1.1 OS: Freebsd
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-01-11 16:41 UTC] pecl at ark dot ethaniel dot com
Description:
------------
Compilation error.

Reproduce code:
---------------
 gcc -I. -I/home/download/php-5.1.1/ext/memcache-2.0.0 -DPHP_ATOM_INC -I/home/download/php-5.1.1/ext/memcache-2.0.0/include -I/home/download/php-5.1.1/ext/memcache-2.0.0/main -I/home/download/php-5.1.1/ext/memcache-2.0.0 -I/usr/local/fastphp/include/php -I/usr/local/fastphp/include/php/main -I/usr/local/fastphp/include/php/TSRM -I/usr/local/fastphp/include/php/Zend -I/usr/local/fastphp/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /home/download/php-5.1.1/ext/memcache-2.0.0/memcache.c  -fPIC -DPIC -o .libs/memcache.o
/home/download/php-5.1.1/ext/memcache-2.0.0/memcache.c:123: syntax error before string constant
/home/download/php-5.1.1/ext/memcache-2.0.0/memcache.c:123: conflicting types for `php_strtr'
/usr/local/fastphp/include/php/ext/standard/php_string.h:120: previous declaration of `php_strtr'
/home/download/php-5.1.1/ext/memcache-2.0.0/memcache.c:123: warning: data definition has no type or storage class
/home/download/php-5.1.1/ext/memcache-2.0.0/memcache.c:123: stray '\' in program
*** Error code 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-12 04:42 UTC] tony2001 at phpclub dot net
Works perfectly fine here, including FreeBSD.

/usr/local/fastphp/include/php/ext/standard/php_string.h:120: previous declaration of `php_strtr'

What's that "fastphp" means?
How exactly do you build memcache and PHP?
And show me the output of `gcc -v`.
 [2006-01-12 08:27 UTC] pecl at ark dot ethaniel dot com
Here is my PHP config line:
./configure --prefix=/usr/local/fastphp --with-config-file-path=/usr/local/fastphp --with-mysql=/usr/local/mysql --with-gd --with-zlib --enable-ftp --with-jpeg --with-jpeg-dir=/usr/local/lib --enable-fastcgi --enable-discard-path --enable-exif --with-iconv --enable-mbstring=ru --with-mnogosearch

I called it fastphp because it is compiled for a fastcgi engine.

I tried building memcache many ways - through PEAR and by hand.

su-2.05b# gcc -v
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]
 [2006-01-12 08:46 UTC] tony2001 at phpclub dot net
Try with newer GCC.
 [2007-10-17 16:17 UTC] mikael at synd dot info
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 00:03:49 2021 UTC