You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile this extension to use with libxl but I keep getting errors. I've sucessfully installed this in the past with previous versions of OS/PHP/php_excel/libxl.
This is what I'm running on a fresh install of Ubuntu 14.0.4.1 (amd64) with PHP 5.5.9-1ubuntu4.6 (cli) (built: Feb 13 2015 19:17:11)
#!/bin/sh# Get libxl libraryecho"Downloading and extracting libxl 3.5.4 for linux..."cd /tmp
wget -q -O libxl-lin-3.5.4.tar.gz ftp://xlware.com/libxl-lin-3.5.4.tar.gz
tar -xf libxl-lin-3.5.4.tar.gz
cd libxl-3.5.4.1/
cp lib64/libxl.so /usr/lib/libxl.so
cp -r include_c/ /usr/include/libxl_c
echo"Downloading and compling PHP_EXCEL extension for libxl"
wget -q -O php_excel.zip https://github.com/iliaal/php_excel/archive/master.zip
unzip php_excel.zip
cd php_excel-master/
phpize
./configure --with-php-config=/usr/bin/php-config --with-libxl-incdir=/usr/include/libxl_c/ --with-libxl-libdir=/usr/lib/ --with-excel
make
make install
And this is what 'm getting in return:
Downloading and compling PHP_EXCEL extension for libxl
Archive: php_excel.zip
88637e2bc535bba73d65c18aa986c930681e9b9d
replace php_excel-master/.gitignore? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
inflating: php_excel-master/.gitignore
extracting: php_excel-master/CREDITS
(...)
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20121212
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable excel support... yes, shared
checking C include dir for libxl... yes, shared
checking lib dir for libxl... yes, shared
checking libxml2 install dir... yes, shared
checking forexcel includes... foundin /usr/include/libxl_c/
checking forexcel libraries... foundin /usr/lib/
checking for libxml2... not found
./configure: line 4107: test: !=: unary operator expected
checking forxlCreateBookCAin -lxl... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
/bin/bash /tmp/libxl-3.5.4.1/php_excel-master/libtool --mode=compile cc -I. -I/tmp/libxl-3.5.4.1/php_excel-master -DPHP_ATOM_INC -I/tmp/libxl-3.5.4.1/php_excel-master/include -I/tmp/libxl-3.5.4.1/php_excel-master/main -I/tmp/libxl-3.5.4.1/php_excel-master -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/libxl_c/ -DHAVE_CONFIG_H -g -O2 -c /tmp/libxl-3.5.4.1/php_excel-master/excel.c -o excel.lo
libtool: compile: cc -I. -I/tmp/libxl-3.5.4.1/php_excel-master -DPHP_ATOM_INC -I/tmp/libxl-3.5.4.1/php_excel-master/include -I/tmp/libxl-3.5.4.1/php_excel-master/main -I/tmp/libxl-3.5.4.1/php_excel-master -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/libxl_c/ -DHAVE_CONFIG_H -g -O2 -c /tmp/libxl-3.5.4.1/php_excel-master/excel.c -fPIC -DPIC -o .libs/excel.o
In file included from /usr/include/php5/main/php.h:39:0,
from /tmp/libxl-3.5.4.1/php_excel-master/excel.c:26:
/usr/include/php5/Zend/zend_API.h:66:23: error: 'zim_ExcelSheet_isLicensed' undeclared here (not in a function)
#define ZEND_MN(name) zim_##name
^
/usr/include/php5/Zend/zend_API.h:71:69: note: in definition of macro 'ZEND_FENTRY'#define ZEND_FENTRY(zend_name, name, arg_info, flags) { #zend_name, name, arg_info, (zend_uint) (sizeof(arg_info)/sizeof(struct _zend_arg_info)-1), flags },
^
/usr/include/php5/Zend/zend_API.h:82:69: note: in expansion of macro 'ZEND_MN'#define ZEND_ME(classname, name, arg_info, flags) ZEND_FENTRY(name, ZEND_MN(classname##_##name), arg_info, flags)
^
/usr/include/php5/main/php.h:354:25: note: in expansion of macro 'ZEND_ME'#define PHP_ME ZEND_ME
^
/tmp/libxl-3.5.4.1/php_excel-master/excel.c:5672:2: note: in expansion of macro 'PHP_ME'
PHP_ME( Excel ## class_name, function_name, arg_info, flags)
^
/tmp/libxl-3.5.4.1/php_excel-master/excel.c:5864:2: note: in expansion of macro 'EXCEL_ME'
EXCEL_ME(Sheet, isLicensed, arginfo_Sheet_isLicensed, 0)
^
make: *** [excel.lo] Error 1
/bin/bash /tmp/libxl-3.5.4.1/php_excel-master/libtool --mode=compile cc -I. -I/tmp/libxl-3.5.4.1/php_excel-master -DPHP_ATOM_INC -I/tmp/libxl-3.5.4.1/php_excel-master/include -I/tmp/libxl-3.5.4.1/php_excel-master/main -I/tmp/libxl-3.5.4.1/php_excel-master -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/libxl_c/ -DHAVE_CONFIG_H -g -O2 -c /tmp/libxl-3.5.4.1/php_excel-master/excel.c -o excel.lo
libtool: compile: cc -I. -I/tmp/libxl-3.5.4.1/php_excel-master -DPHP_ATOM_INC -I/tmp/libxl-3.5.4.1/php_excel-master/include -I/tmp/libxl-3.5.4.1/php_excel-master/main -I/tmp/libxl-3.5.4.1/php_excel-master -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/libxl_c/ -DHAVE_CONFIG_H -g -O2 -c /tmp/libxl-3.5.4.1/php_excel-master/excel.c -fPIC -DPIC -o .libs/excel.o
In file included from /usr/include/php5/main/php.h:39:0,
from /tmp/libxl-3.5.4.1/php_excel-master/excel.c:26:
/usr/include/php5/Zend/zend_API.h:66:23: error: 'zim_ExcelSheet_isLicensed' undeclared here (not in a function)
#define ZEND_MN(name) zim_##name
^
/usr/include/php5/Zend/zend_API.h:71:69: note: in definition of macro 'ZEND_FENTRY'#define ZEND_FENTRY(zend_name, name, arg_info, flags) { #zend_name, name, arg_info, (zend_uint) (sizeof(arg_info)/sizeof(struct _zend_arg_info)-1), flags },
^
/usr/include/php5/Zend/zend_API.h:82:69: note: in expansion of macro 'ZEND_MN'#define ZEND_ME(classname, name, arg_info, flags) ZEND_FENTRY(name, ZEND_MN(classname##_##name), arg_info, flags)
^
/usr/include/php5/main/php.h:354:25: note: in expansion of macro 'ZEND_ME'#define PHP_ME ZEND_ME
^
/tmp/libxl-3.5.4.1/php_excel-master/excel.c:5672:2: note: in expansion of macro 'PHP_ME'
PHP_ME( Excel ## class_name, function_name, arg_info, flags)
^
/tmp/libxl-3.5.4.1/php_excel-master/excel.c:5864:2: note: in expansion of macro 'EXCEL_ME'
EXCEL_ME(Sheet, isLicensed, arginfo_Sheet_isLicensed, 0)
^
make: *** [excel.lo] Error 1
I also tried with older versions of libxl and php_excel and I'm able to compile the extension but all tests fail and I get errors saying PHP module version is different from the one the extension is being/was compiled against. I can't really know what to do about this one - this is what I get with php -v after compiling php_excel 0.9.8 with libxl-3.5.3.0:
PHP Warning: PHP Startup: excel: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0
PHP 5.5.9-1ubuntu4.6 (cli) (built: Feb 13 2015 19:17:11)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
any help would be really appreciated. Thank you!
The text was updated successfully, but these errors were encountered:
johmue
added a commit
to johmue/php_excel
that referenced
this issue
Mar 5, 2015
Hi,
I'm trying to compile this extension to use with libxl but I keep getting errors. I've sucessfully installed this in the past with previous versions of OS/PHP/php_excel/libxl.
This is what I'm running on a fresh install of Ubuntu 14.0.4.1 (amd64) with PHP 5.5.9-1ubuntu4.6 (cli) (built: Feb 13 2015 19:17:11)
And this is what 'm getting in return:
I also tried with older versions of libxl and php_excel and I'm able to compile the extension but all tests fail and I get errors saying PHP module version is different from the one the extension is being/was compiled against. I can't really know what to do about this one - this is what I get with php -v after compiling php_excel 0.9.8 with libxl-3.5.3.0:
PHP Warning: PHP Startup: excel: Unable to initialize module Module compiled with module API=20100525 PHP compiled with module API=20121212 These options need to match in Unknown on line 0 PHP 5.5.9-1ubuntu4.6 (cli) (built: Feb 13 2015 19:17:11) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
any help would be really appreciated. Thank you!
The text was updated successfully, but these errors were encountered: