Skip Menu |

This queue is for tickets about the PHP-Interpreter CPAN distribution.

Report information
The Basics
Id: 90838
Status: open
Priority: 0/
Queue: PHP-Interpreter

People
Owner: Nobody in particular
Requestors: jozef.mojzis [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Compile errors ...
Date: Tue, 26 Nov 2013 18:19:03 +0100
To: bug-PHP-Interpreter [...] rt.cpan.org
From: Jozef Mojzis <jozef.mojzis [...] gmail.com>
When tried install it on OS X, got the next errors: =============================== CUT HERE ======================= cc -c -I/opt/local/include -I/opt/local/include/php -I/opt/local/include/php/main -I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -I/opt/local/include/php/ext -I/opt/local/include/php/ext/date/lib -I/opt/local/include -g -O3 -DVERSION=\"1.0.2\" -DXS_VERSION=\"1.0.2\" "-I/Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE" PHP.c In file included from PHP.xs:13: In file included from ./phpinterp.h:11: In file included from /opt/local/include/php/main/php.h:34: /opt/local/include/php/Zend/zend.h:34:9: warning: 'END_EXTERN_C' macro redefined #define END_EXTERN_C() ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/perl.h:139:11: note: previous definition is here # define END_EXTERN_C ^ PHP.xs:94:10: error: duplicate case value 'SVt_IV' case SVt_RV: /* reference */ ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/sv.h:80:18: note: expanded from macro 'SVt_RV' # define SVt_RV SVt_IV ^ PHP.xs:81:10: note: previous case defined here case SVt_IV: /* int */ ^ PHP.xs:377:21: error: no member named 'refcount' in 'struct _zval_struct' (*src_entry)->refcount++; ~~~~~~~~~~~~ ^ PHP.xs:383:25: error: no member named 'refcount' in 'struct _zval_struct' (*src_entry)->refcount--; ~~~~~~~~~~~~ ^ PHP.xs:396:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] static my_auto_globals_create_request(void *dummy TSRMLS_DC) ~~~~~~ ^ PHP.xs:508:13: warning: implicit declaration of function 'php_register_variable_ex' is invalid in C99 [-Wimplicit-function-declaration] php_register_variable_ex(trackvars_key, SvZval(trackvars TSRMLS_CC), NULL TSRMLS_CC); ^ PHP.xs:604:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if(croakstr) croak(croakstr); ^~~~~~~~ PHP.xs:640:7: warning: implicit declaration of function 'sandwich_per_interp_shutdown' is invalid in C99 [-Wimplicit-function-declaration] sandwich_interp_dec_ref(interp); ^ ./phpinterp.h:40:64: note: expanded from macro 'sandwich_interp_dec_ref' #define sandwich_interp_dec_ref(interp) if(--interp->ref == 0) sandwich_per_interp_shutdown(interp) ^ PHP.xs:692:13: error: no member named 'object_pp' in 'struct _zend_fcall_info'; did you mean 'object_ptr'? fci.object_pp = &obj; ^~~~~~~~~ object_ptr /opt/local/include/php/Zend/zend_API.h:51:8: note: 'object_ptr' declared here zval *object_ptr; ^ PHP.xs:692:23: warning: incompatible pointer types assigning to 'zval *' (aka 'struct _zval_struct *') from 'zval **' (aka 'struct _zval_struct **'); remove & [-Wincompatible-pointer-types] fci.object_pp = &obj; ^ ~~~~ PHP.xs:726:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if(croakstr) croak(croakstr); ^~~~~~~~ PHP.xs:861:15: warning: incompatible pointer types passing 'uint *' (aka 'unsigned int *') to parameter of type 'STRLEN *' (aka 'unsigned long *') [-Wincompatible-pointer-types] key = SvPV(skey, keylen); ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/sv.h:1562:22: note: expanded from macro 'SvPV' #define SvPV(sv, lp) SvPV_flags(sv, lp, SV_GMAGIC) ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/sv.h:1568:57: note: expanded from macro 'SvPV_flags' ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pv_flags(sv, &lp, flags)) ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/embed.h:538:55: note: expanded from macro 'sv_2pv_flags' #define sv_2pv_flags(a,b,c) Perl_sv_2pv_flags(aTHX_ a,b,c) ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/proto.h:3713:73: note: passing argument to parameter 'lp' here PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags); ^ PHP.xs:887:15: warning: incompatible pointer types passing 'uint *' (aka 'unsigned int *') to parameter of type 'STRLEN *' (aka 'unsigned long *') [-Wincompatible-pointer-types] key = SvPV(skey, keylen); ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/sv.h:1562:22: note: expanded from macro 'SvPV' #define SvPV(sv, lp) SvPV_flags(sv, lp, SV_GMAGIC) ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/sv.h:1568:57: note: expanded from macro 'SvPV_flags' ? ((lp = SvCUR(sv)), SvPVX(sv)) : sv_2pv_flags(sv, &lp, flags)) ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/embed.h:538:55: note: expanded from macro 'sv_2pv_flags' #define sv_2pv_flags(a,b,c) Perl_sv_2pv_flags(aTHX_ a,b,c) ^ /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level/CORE/proto.h:3713:73: note: passing argument to parameter 'lp' here PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags); ^ PHP.xs:961:13: error: no member named 'object_pp' in 'struct _zend_fcall_info'; did you mean 'object_ptr'? fci.object_pp = &pclass->val; ^~~~~~~~~ object_ptr /opt/local/include/php/Zend/zend_API.h:51:8: note: 'object_ptr' declared here zval *object_ptr; ^ PHP.xs:961:23: warning: incompatible pointer types assigning to 'zval *' (aka 'struct _zval_struct *') from 'zval **' (aka 'struct _zval_struct **'); remove & [-Wincompatible-pointer-types] fci.object_pp = &pclass->val; ^ ~~~~~~~~~~~~ PHP.xs:1065:26: warning: format string is not a string literal (potentially insecure) [-Wformat-security] if(croakstr) croak(croakstr); ^~~~~~~~ PHP.c:1612:2: warning: declaration does not declare anything [-Wmissing-declarations] PHP_Interpreter_Resource; ^~~~~~~~~~~~~~~~~~~~~~~~ 12 warnings and 5 errors generated. make: *** [PHP.o] Error 1 -> FAIL Installing PHP::Interpreter failed. See /Users/clt/.cpanm/work/1385485776.60645/build.log for details. Retry with --force to force install it. Expiring 2 work directories. =============================== CUT HERE ======================= My perl: Summary of my perl5 (revision 5 version 16 subversion 3) configuration: Platform: osname=darwin, osvers=12.3.0, archname=darwin-2level uname='darwin jonatan.local 12.3.0 darwin kernel version 12.3.0: sun jan 6 22:37:10 pst 2013; root:xnu-2050.22.13~1release_x86_64 x86_64 ' config_args='-de -Dprefix=/Users/clt/perl5/perlbrew/perls/perl-5.16.3 -Aeval:scriptdir=/Users/clt/perl5/perlbrew/perls/perl-5.16.3/bin' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include', optimize='-O3', cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include' ccversion='', gccversion='4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib -L/opt/local/lib' libpth=/usr/local/lib /opt/local/lib /usr/lib libs=-lgdbm -ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF Built under darwin Compiled at Jun 1 2013 23:48:00 %ENV: PERLBREW_BASHRC_VERSION="0.63" PERLBREW_HOME="/Users/clt/.perlbrew" PERLBREW_MANPATH="/Users/clt/perl5/perlbrew/perls/perl-5.16.3/man" PERLBREW_PATH="/Users/clt/perl5/perlbrew/bin:/Users/clt/perl5/perlbrew/perls/perl-5.16.3/bin" PERLBREW_PERL="perl-5.16.3" PERLBREW_ROOT="/Users/clt/perl5/perlbrew" PERLBREW_VERSION="0.63" @INC: /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/darwin-2level /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3 /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3/darwin-2level /Users/clt/perl5/perlbrew/perls/perl-5.16.3/lib/5.16.3 . =============================== CUT HERE ======================= MY PHP PHP 5.3.27 (cli) (built: Nov 26 2013 14:34:48) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
Subject: Re: [rt.cpan.org #90838] Compile errors ...
Date: Tue, 26 Nov 2013 11:01:55 -0800
To: bug-PHP-Interpreter [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
Alas, no one is currently maintaining PHP::Interpreter. I lack the knowledge of both C and PHP, and George is busing CEOing OmniTI. New maintainers welcome! Best, David