Problems compiling p0sixspwn on a raspberry pi - compilation

I am trying to compile p0sixspwn on a Raspberry Pi, and after installing the endless dependencies (libimobiledevice <1.1.0, libusbmuxd, etc.) I successfully ran ./autogen.sh but when I tried running "make", I was met with the following errors (yes I am running as root):
root#raspberrypi:/home/pi/p0sixspwn# make
make all-recursive
make[1]: Entering directory '/home/pi/p0sixspwn'
Making all in src
make[2]: Entering directory '/home/pi/p0sixspwn/src'
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -fPIC -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/lib/libzip/include -g -O2 -c -o pris0nbarake-idevicebackup2.o `test -f 'idevicebackup2.c' || echo './'`idevicebackup2.c
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -fPIC -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/lib/libzip/include -g -O2 -c -o pris0nbarake-jailbreak.o `test -f 'jailbreak.c' || echo './'`jailbreak.c
In file included from jailbreak.c:56:0:
MobileDevice.h:193:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:207:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:229:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:241:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:258:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:258:61: error: unknown type name ‘CFStringRef’
MobileDevice.h:262:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:262:72: error: unknown type name ‘CFStringRef’
In file included from jailbreak.c:56:0:
MobileDevice.h:271:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:386:1: error: unknown type name ‘CFMutableDictionaryRef’
MobileDevice.h:386:54: error: unknown type name ‘CFAllocatorRef’
MobileDevice.h:412:11: error: unknown type name ‘CFDictionaryRef’
MobileDevice.h:414:11: error: unknown type name ‘CFDictionaryRef’
MobileDevice.h:419:44: error: unknown type name ‘CFStringRef’
MobileDevice.h:420:5: error: unknown type name ‘CFStringRef’
MobileDevice.h:420:36: error: unknown type name ‘CFStringRef’
MobileDevice.h:421:15: error: unknown type name ‘CFStringRef’
MobileDevice.h:421:47: error: unknown type name ‘CFStringRef’
MobileDevice.h:422:54: error: unknown type name ‘CFStringRef’
MobileDevice.h:426:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:427:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:428:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:429:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:430:1: error: unknown type name ‘CFStringRef’
MobileDevice.h:430:71: error: unknown type name ‘CFStringRef’
MobileDevice.h:431:1: error: unknown type name ‘CFStringRef’
MobileDevice.h:433:33: error: unknown type name ‘CFStringRef’
MobileDevice.h:435:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:435:57: error: unknown type name ‘CFStringRef’
MobileDevice.h:435:84: error: unknown type name ‘CFStringRef’
MobileDevice.h:436:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:436:51: error: unknown type name ‘CFStringRef’
MobileDevice.h:437:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:437:54: error: unknown type name ‘notify_callback’
MobileDevice.h:438:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:441:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:442:1: error: unknown type name ‘mach_error_t’
MobileDevice.h:442:57: error: unknown type name ‘CFMutableDictionaryRef’
MobileDevice.h:482:5: error: unknown type name ‘CFDictionaryRef’
jailbreak.c:417:1: error: unknown type name ‘kern_return_t’
jailbreak.c:417:51: error: unknown type name ‘CFPropertyListRef’
jailbreak.c:418:1: error: unknown type name ‘CFPropertyListRef’
jailbreak.c:422:24: error: unknown type name ‘CFDataRef’
jailbreak.c: In function ‘cb2’:
jailbreak.c:481:9: error: unknown type name ‘CFStringRef’
jailbreak.c:483:9: error: unknown type name ‘UniChar’
jailbreak.c:505:9: error: unknown type name ‘CFPropertyListRef’
jailbreak.c:505:36: warning: initialization makes integer from pointer without a cast [enabled by default]
jailbreak.c:506:9: error: unknown type name ‘CFMutableDictionaryRef’
jailbreak.c:506:75: error: ‘kCFTypeDictionaryKeyCallBacks’ undeclared (first use in this function)
jailbreak.c:506:75: note: each undeclared identifier is reported only once for each function it appears in
jailbreak.c:506:107: error: ‘kCFTypeDictionaryValueCallBacks’ undeclared (first use in this function)
jailbreak.c:518:113: error: ‘kCFAllocatorNull’ undeclared (first use in this function)
jailbreak.c:533:9: warning: passing argument 1 of ‘strstr’ makes pointer from integer without a cast [enabled by default]
/usr/include/string.h:342:14: note: expected ‘const char *’ but argument is of type ‘int’
jailbreak.c: In function ‘stroke_lockdownd’:
jailbreak.c:562:5: warning: passing argument 2 of ‘idevice_connection_send’ from incompatible pointer type [enabled by default]
../include/libimobiledevice/libimobiledevice.h:94:17: note: expected ‘const char *’ but argument is of type ‘uint32_t *’
jailbreak.c:565:5: warning: passing argument 2 of ‘idevice_connection_receive_timeout’ from incompatible pointer type [enabled by default]
../include/libimobiledevice/libimobiledevice.h:95:17: note: expected ‘char *’ but argument is of type ‘unsigned int *’
jailbreak.c:569:9: warning: passing argument 3 of ‘idevice_connection_receive_timeout’ makes integer from pointer without a cast [enabled by default]
../include/libimobiledevice/libimobiledevice.h:95:17: note: expected ‘uint32_t’ but argument is of type ‘unsigned int *’
Makefile:413: recipe for target 'pris0nbarake-jailbreak.o' failed
make[2]: *** [pris0nbarake-jailbreak.o] Error 1
make[2]: Leaving directory '/home/pi/p0sixspwn/src'
Makefile:340: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/p0sixspwn'
Makefile:271: recipe for target 'all' failed
make: *** [all] Error 2
root#raspberrypi:/home/pi/p0sixspwn#
I have googled "error: unknown type name" but to me this seemed to mean different things for different stuff (I may be wrong though).
Here is what it said after I ran ./autogen.sh in case it is of any importance:
root#raspberrypi:/home/pi/p0sixspwn# ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:10: installing `./compile'
configure.ac:7: installing `./config.guess'
configure.ac:7: installing `./config.sub'
configure.ac:8: installing `./install-sh'
configure.ac:8: installing `./missing'
gui/Makefile.am: installing `./depcomp'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
checking build system type... armv6l-unknown-linux-gnueabihf
checking host system type... armv6l-unknown-linux-gnueabihf
checking target system type... armv6l-unknown-linux-gnueabihf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works...
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking whether gcc and cc understand -c and -o together... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /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 armv6l-unknown-linux-gnueabihf file names to armv6l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv6l-unknown-linux-gnueabihf 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 command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
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 gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) 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... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libimobiledevice... yes
checking for libplist... yes
checking for libzip... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating gui/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
root#raspberrypi:/home/pi/p0sixspwn#
I currently do not have the option to install it on another computer.
This is also my first post so I am a noob.
If anybody could help that would be great!

Sadly, it is not possible to compile p0sixspwn on the Raspberry Pi (or any Linux distribution) at the moment. It is hard to compile it on a mac, and even harder on Windows.
If there was some way to get Wine working on the Raspberry Pi, or editing the source code, then it might be possible. But for now, it is not.
EDIT:
It is sort of possible. Compile CFLite and include that. There will be a couple errors, but you can figure it out pretty easily.

Related

1 error generated. make: *** [php_intl.lo] Error 1 ERROR: `make' failed

I have php 7.3.4 installed on my macbook pro and I am trying to enable a php extension which composer requires (intl). I have enabled the extension intl in php.ini, to which I received an error message saying it can not be found - so I'm assuming this means I need to install it. I found a tutorial online on how to install the extensions (link at bottom), and I followed this.
At the stage where when I run sudo pecl install intl, I receive an error;
make: *** [php_intl.lo] Error 1
ERROR: `make' failed
Does anyone have a solution?
Jamess-MBP:~ work$ sudo pecl install intl
Password: .........
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/lib/php/pecl/20180731/intl (dlopen(/usr/local/lib/php/pecl/20180731/intl, 9): image not found), /usr/local/lib/php/pecl/20180731/intl.so (dlopen(/usr/local/lib/php/pecl/20180731/intl.so, 9): image not found)) in Unknown on line 0
downloading intl-3.0.0.tgz ...
Starting to download intl-3.0.0.tgz (248,200 bytes)
....................................................done: 248,200 bytes
150 source files, building
running: phpize
Configuring for:
PHP Api Version: 20180731
Zend Module Api No: 20180731
Zend Extension Api No: 320180731
Specify where ICU libraries and headers can be found [DEFAULT] : /usr/local/Cellar/icu4c/63.1/
building in /private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0
running: /private/tmp/pear/temp/intl/configure --with-php-config=/usr/local/Cellar/php/7.3.4/bin/php-config --with-icu-dir=/usr/local/Cellar/icu4c/63.1/
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/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-apple-darwin17.7.0
checking host system type... x86_64-apple-darwin17.7.0
checking target system type... x86_64-apple-darwin17.7.0
checking for PHP prefix... /usr/local/Cellar/php/7.3.4
checking for PHP includes... -I/usr/local/Cellar/php/7.3.4/include/php -I/usr/local/Cellar/php/7.3.4/include/php/main -I/usr/local/Cellar/php/7.3.4/include/php/TSRM -I/usr/local/Cellar/php/7.3.4/include/php/Zend -I/usr/local/Cellar/php/7.3.4/include/php/ext -I/usr/local/Cellar/php/7.3.4/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/php/7.3.4/pecl/20180731
checking for PHP installed headers prefix... /usr/local/Cellar/php/7.3.4/include/php
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... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable internationalization support... yes, shared
checking for location of ICU headers and libraries... checking for pkg-config... /usr/local/bin/pkg-config
/usr/local/Cellar/icu4c/63.1
checking for ICU 4.0 or greater... found 63.1
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by cc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin17.7.0 dyld
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
creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin17.7.0 dyld
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/libtool --mode=compile cc -I/usr/local/Cellar/icu4c/63.1/include -Wno-write-strings -I. -I/private/tmp/pear/temp/intl -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/include -I/private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/main -I/private/tmp/pear/temp/intl -I/usr/local/Cellar/php/7.3.4/include/php -I/usr/local/Cellar/php/7.3.4/include/php/main -I/usr/local/Cellar/php/7.3.4/include/php/TSRM -I/usr/local/Cellar/php/7.3.4/include/php/Zend -I/usr/local/Cellar/php/7.3.4/include/php/ext -I/usr/local/Cellar/php/7.3.4/include/php/ext/date/lib -I/usr/local/Cellar/icu4c/63.1/include -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/intl/php_intl.c -o php_intl.lo
mkdir .libs
cc -I/usr/local/Cellar/icu4c/63.1/include -Wno-write-strings -I. -I/private/tmp/pear/temp/intl -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/include -I/private/tmp/pear/temp/pear-build-rootf9ZgsV/intl-3.0.0/main -I/private/tmp/pear/temp/intl -I/usr/local/Cellar/php/7.3.4/include/php -I/usr/local/Cellar/php/7.3.4/include/php/main -I/usr/local/Cellar/php/7.3.4/include/php/TSRM -I/usr/local/Cellar/php/7.3.4/include/php/Zend -I/usr/local/Cellar/php/7.3.4/include/php/ext -I/usr/local/Cellar/php/7.3.4/include/php/ext/date/lib -I/usr/local/Cellar/icu4c/63.1/include -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/intl/php_intl.c -fno-common -DPIC -o .libs/php_intl.o
In file included from /private/tmp/pear/temp/intl/php_intl.c:25:
In file included from /private/tmp/pear/temp/intl/php_intl.h:34:
/private/tmp/pear/temp/intl/intl_error.h:24:10: fatal error: 'ext/standard/php_smart_str.h' file not found
#include <ext/standard/php_smart_str.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [php_intl.lo] Error 1
ERROR: `make' failed
I followed an online tutorial to get to this stage, this was http://budiirawan.com/install-php-intl-extension-os-x/
Please follow the process (from https://medium.com/#agaetis/solved-install-intl-php-extension-for-xampp-and-magento-for-macos-mojave-41fa42336fc6)
Steps to install intl.so: correct intl ships with PHP source, not available in PECL.
Make sure Xcode and autoconf is installed
Download PHP version used in XAMPP from php.net and run series of command
tar -xzvf php-7.3.10.tar.gz; cd php-7.3.10/ext/intl
/Applications/XAMPP/bin/phpize
./configure --enable-intl --with-php-config=/Applications/XAMPP/bin/php-config --with-icu-dir=/Applications/XAMPP/xamppfiles/
make
sudo make install
add below line in php.ini (/Applications/XAMPP/xamppfiles/etc/php.ini)
extension=intl.so
I’ve solved this myself by installing the extension with macports rather than pecl.

Debugging glibc build process

I am am trying to install glibc on Clear Linux, and am having difficulty debugging (or even which of the many makefiles to debug).
My previous attempts are in these two threads:
How do I build into a specified directory using the "prefix" option of configure?
Errors building glibc: what is wrong with the make/confgure files?
So now my problem is that when I run make, the build stops with:
-I../sysdeps/nptl -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu/include -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64 -I../sysdeps/x86 -I../sysdeps/ieee754/float128 -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -include /home/james/Downloads/glibc-build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DTOP_NAMESPACE=glibc -I../soft-fp -o /home/james/Downloads/glibc-build/math/s_modfl.o -MD -MP -MF /home/james/Downloads/glibc-build/math/s_modfl.o.dt -MT /home/james/Downloads/glibc-build/math/s_modfl.o
cc1: error: -fassociative-math disabled; other options take precedence [-Werror]
cc1: all warnings being treated as errors
make[2]: *** [/home/james/Downloads/glibc-build/sysd-rules:791: /home/james/Downloads/glibc-build/math/s_modfl.o] Error 1
make[2]: Leaving directory '/home/james/Downloads/glibc/math'
make[1]: *** [Makefile:215: math/subdir_lib] Error 2
make[1]: Leaving directory '/home/james/Downloads/glibc'
make: *** [Makefile:9: all] Error 2
I suspect a clue might be in this thread, but it's a little over my head.
associative-math with GCC
I'm also guessing that the later errors from the makefiles are the result of whatever went wrong with associative math.
Edit
As requested, I ran
james#clr ~/Downloads/glibc-build $ make -j
and this was the end of the output
-I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754 -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -include /home/james/Downloads/glibc-build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h -DPIC -DSHARED -DTOP_NAMESPACE=glibc -I../soft-fp -DASSEMBLER -g -Werror=undef -Wa,--noexecstack -o /home/james/Downloads/glibc-build/math/s_signbit.os -MD -MP -MF /home/james/Downloads/glibc-build/math/s_signbit.os.dt -MT /home/james/Downloads/glibc-build/math/s_signbit.os
cc1: all warnings being treated as errors
make[2]: *** [/home/james/Downloads/glibc-build/sysd-rules:791: /home/james/Downloads/glibc-build/math/s_modfl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/home/james/Downloads/glibc-build/sysd-rules:825: /home/james/Downloads/glibc-build/math/s_modf.o] Error 1
cc1: all warnings being treated as errors
make[2]: *** [/home/james/Downloads/glibc-build/sysd-rules:893: /home/james/Downloads/glibc-build/math/s_modff.o] Error 1
cc1: all warnings being treated as errors
make[2]: *** [/home/james/Downloads/glibc-build/sysd-rules:757: /home/james/Downloads/glibc-build/math/s_modff128.o] Error 1
cc1: all warnings being treated as errors
make[2]: *** [/home/james/Downloads/glibc-build/sysd-rules:807: /home/james/Downloads/glibc-build/math/s_modfl.os] Error 1
cc1: all warnings being treated as errors
make[2]: *** [/home/james/Downloads/glibc-build/sysd-rules:841: /home/james/Downloads/glibc-build/math/s_modf.os] Error 1
make[2]: Leaving directory '/home/james/Downloads/glibc/math'
make[1]: *** [Makefile:215: math/subdir_lib] Error 2
make[1]: Leaving directory '/home/james/Downloads/glibc'
make: *** [Makefile:9: all] Error 2
edit 2: more information in response to comments by Basile:
I need glibc to run some modules for Phoronix Test Suite, and in the future I will probably need it to build libraries for R. As far as I can tell, it is not included with Clear Linux (at least PTS doesn't think I have it installed), and I do not see it among the list of available bundles.
Versions:
james#clr ~/Downloads $ uname -r
4.17.1-582.native
james#clr ~/Downloads $ gcc --version
gcc (Clear Linux OS for Intel Architecture) 8.1.1 20180514
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Configure commands
james#clr ~/Downloads $ git clone git://sourceware.org/git/glibc.git
james#clr ~/Downloads $ cd glibc
james#clr ~/Downloads/glibc $ git checkout --track -b local_glibc-2.27 origin/release/2.27/master
Branch 'local_glibc-2.27' set up to track remote branch 'release/2.27/master' from 'origin'.
Switched to a new branch 'local_glibc-2.27'
james#clr ~/Downloads/glibc $ mkdir /home/james/Downloads/glibc-build/
james#clr ~/Downloads/glibc $ cd /home/james/Downloads/glibc-build/
james#clr ~/Downloads/glibc-build $ ~/Downloads/glibc/configure --prefix=/home/james/Downloads/glibc-build
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for readelf... readelf
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ can link programs... yes
checking for sysdeps preconfigure fragments... aarch64 alpha arm hppa i386 m68k microblaze mips nios2 powerpc riscv s390 sh sparc tile x86_64 checking whether gcc compiles in -mx32 mode by default... no
checking for use of fpu sysdeps directories... yes
checking for -fstack-protector... yes
checking for -fstack-protector-strong... yes
checking for -fstack-protector-all... yes
checking for assembler and linker STT_GNU_IFUNC support... yes
checking for gcc attribute ifunc support... yes
checking if compiler warns about alias for function with incompatible types... yes
checking sysdep dirs... sysdeps/unix/sysv/linux/x86_64/64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86 sysdeps/x86/nptl sysdeps/unix/sysv/linux/wordsize-64 sysdeps/x86_64/nptl sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/x86_64 sysdeps/unix sysdeps/posix sysdeps/x86_64/64 sysdeps/x86_64/fpu/multiarch sysdeps/x86_64/fpu sysdeps/x86/fpu sysdeps/x86_64/multiarch sysdeps/x86_64 sysdeps/x86 sysdeps/ieee754/float128 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/wordsize-64 sysdeps/ieee754 sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.30, ok
checking for ld... ld
checking version of ld... 2.30, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 4.2.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.19.8.1, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 6.5, ok
checking for sed... sed
checking version of sed... 4.5, ok
checking for gawk... gawk
checking version of gawk... 4.2.1, ok
checking for bison... bison
checking version of bison... 3.0.5, ok
checking if gcc is sufficient to build libc... yes
checking for nm... gcc-nm
checking for python3... python3
checking LD_LIBRARY_PATH variable... ok
checking for bash... /usr/bin/bash
checking for perl... /usr/bin/perl
checking for install-info... /usr/bin/install-info
checking for .set assembler directive... yes
checking linker support for protected data symbol... yes
checking linker support for INSERT in linker script... yes
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking whether to use .ctors/.dtors header and trailer... no
checking for libunwind-support in compiler... no
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for linker that supports -z execstack... yes
checking for linker that supports --no-dynamic-linker... yes
checking for -static-pie... yes
checking for -fpie... yes
checking for --hash-style option... yes
checking for sufficient default -shared layout... no
checking for GLOB_DAT reloc... yes
checking linker output format... elf64-x86-64
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -mtls-dialect=gnu2... yes
checking whether cc puts quotes around section names... no
checking for __builtin_memset... no
checking for redirection of built-in functions... yes
checking for compiler option to disable generation of FMA instructions... -ffp-contract=off
checking if gcc accepts -fno-tree-loop-distribute-patterns with __attribute__ ((__optimize__))... yes
checking for libgd... yes
checking for is_selinux_enabled in -lselinux... no
checking for _FORTIFY_SOURCE predefine... yes
checking whether the linker provides working __ehdr_start... yes
checking for __builtin_trap with no external dependencies... yes
checking whether the C++ compiler supports thread_local... yes
running configure fragment for sysdeps/unix/sysv/linux/x86_64/64
running configure fragment for sysdeps/unix/sysv/linux/x86_64
running configure fragment for sysdeps/unix/sysv/linux
checking installed Linux kernel header files... 3.2.0 or later
checking for kernel header at least 3.2.0... ok
checking for symlinks in /home/james/Downloads/glibc-build/include... ok
running configure fragment for sysdeps/gnu
running configure fragment for sysdeps/unix/inet
running configure fragment for sysdeps/x86_64
checking for AVX512DQ support in assembler... yes
checking for AVX512 support... yes
checking for Intel MPX support... yes
checking whether -fPIC is default... no
checking whether -fPIE is default... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands
Edit 3: The FULL output of make was too long to include, so I put it on pastebin:
https://pastebin.com/H3yGC5aj
The compiler command line you posed contains these flags:
-fassociative-math -fasynchronous-unwind-tables -feliminate-unused-debug-types -fexceptions -ffat-lto-objects -fmerge-all-constants -fno-semantic-interposition -fno-signed-zeros -fno-stack-protector -fno-trapping-math -frounding-math -fstack-protector -ftree-loop-distribute-patterns
However, -fassociative-math is one of the unsafe math optimizations, and glibc cannot be built with them because with such optimizations, the math library would produce wrong results—and as you found out, some of the required compiler flags for parts of the math library are even incompatible with them.
You did not pass these flags to configure or make explicitly, so it is most likely they come from the CFLAGS environment variable. You need to unset that before calling configure and make.

libtool: link: unsupported hardcode properties - Blank CXX Configuration

Error
I'm receiving the following error when I try execute make for a autotools based project on OS X:
libtool: link: unsupported hardcode properties
libtool: link: See the libtool documentation for more information.
libtool: link: Fatal configuration error.
make calls libtool as follows:
/bin/sh ./libtool --tag=CXX --mode=link clang++ -g <blah blah blah>
Investigation
I've narrowed the problem down specifically to the use of the CXX tag. For some reason the libtool script (generated by running ./configure and hence libtoolize etc.) spits out a CXX configuration as follows:
# ### BEGIN LIBTOOL TAG CONFIG: CXX
# The linker used to build libraries.
LD=""
# How to create reloadable object files.
reload_flag=""
reload_cmds=""
# Commands used to build an old-style archive.
old_archive_cmds=""
# A language specific compiler.
CC=""
# Is the compiler the GNU compiler?
with_gcc=
# Compiler flag to turn off builtin functions.
no_builtin_flag=""
# Additional compiler flags for building library objects.
pic_flag=""
# How to pass a linker flag through the compiler.
wl=""
# Compiler flag to prevent dynamic linking.
link_static_flag=""
# Does compiler simultaneously support -c and -o options?
compiler_c_o=""
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=
# Whether or not to disallow shared libs when runtime libs are static.
allow_libtool_libs_with_static_runtimes=
# Compiler flag to allow reflexive dlopens.
export_dynamic_flag_spec=""
# Compiler flag to generate shared objects directly from archives.
whole_archive_flag_spec=""
# Whether the compiler copes with passing no objects directly.
compiler_needs_object=""
# Create an old-style archive from a shared archive.
old_archive_from_new_cmds=""
# Create a temporary old-style archive to link instead of a shared archive.
old_archive_from_expsyms_cmds=""
# Commands used to build a shared archive.
archive_cmds=""
archive_expsym_cmds=""
# Commands used to build a loadable module if different from building
# a shared archive.
module_cmds=""
module_expsym_cmds=""
# Whether we are building with GNU ld or not.
with_gnu_ld=""
# Flag that allows shared libraries with undefined symbols to be built.
allow_undefined_flag=""
# Flag that enforces no undefined symbols.
no_undefined_flag=""
# Flag to hardcode $libdir into a binary during linking.
# This must work even if $libdir does not exist
hardcode_libdir_flag_spec=""
# Whether we need a single "-rpath" flag with a separated argument.
hardcode_libdir_separator=""
# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
# DIR into the resulting binary.
hardcode_direct=
# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
# DIR into the resulting binary and the resulting library dependency is
# "absolute",i.e impossible to change by setting ${shlibpath_var} if the
# library is relocated.
hardcode_direct_absolute=
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
# into the resulting binary.
hardcode_minus_L=
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
# into the resulting binary.
hardcode_shlibpath_var=
# Set to "yes" if building a shared library automatically hardcodes DIR
# into the library and all subsequent libraries and executables linked
# against it.
hardcode_automatic=
# Set to yes if linker adds runtime paths of dependent libraries
# to runtime path list.
inherit_rpath=
# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=
# Set to "yes" if exported symbols are required.
always_export_symbols=
# The commands to list exported symbols.
export_symbols_cmds=""
# Symbols that should not be listed in the preloaded symbols.
exclude_expsyms=""
# Symbols that must always be exported.
include_expsyms=""
# Commands necessary for linking programs (against libraries) with templates.
prelink_cmds=""
# Commands necessary for finishing linking programs.
postlink_cmds=""
# Specify filename containing input files.
file_list_spec=""
# How to hardcode a shared library path into an executable.
hardcode_action=
# The directories searched by this compiler when creating a shared library.
compiler_lib_search_dirs=""
# Dependencies to place before and after the objects being linked to
# create a shared library.
predep_objects=""
postdep_objects=""
predeps=""
postdeps=""
# The library search path used internally by the compiler when linking
# a shared library.
compiler_lib_search_path=""
# ### END LIBTOOL TAG CONFIG: CXX
As you can see, everything is blank. So the libtool script freaks out, and rightly so. So my confusion lies in how the libtool script ended up including this bogus CXX configuration.
The CC configuration is fine. Simply calling the libtool script with --tag=CC is actually enough to get my project linking just fine. However, that's obviously not correct; you should simply be able to execute:
./configure
make
./configure output
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for DEPS... yes
checking for udevadm... no
checking build system type... x86_64-apple-darwin12.3.0
checking host system type... x86_64-apple-darwin12.3.0
checking target system type... x86_64-apple-darwin12.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin12.3.0 file names to x86_64-apple-darwin12.3.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin12.3.0 file names to toolchain format... func_convert_file_noop
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r
checking for objdump... no
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 archiver #FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -E
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 gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin12.3.0 dyld
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... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking operating system... Darwin/MacOS X
checking for clang++... clang++
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking dependency style of clang++... gcc3
checking whether byte ordering is bigendian... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Setup details
libtool version: 2.4.2
libtool revision: 1.3337
autoconf version: GNU Autoconf 2.69
clang++ version: Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
This was caused by AC_PROG_LIBTOOL (since deprecated in favour of LT_INIT) appearing before AC_PROG_CXX([clang++]) in configure.ac.
Strangely enough the LT_INIT/LT_LANG documentation actually shows LT_INIT appearing before AC_PROG_CXX, so I'm not entirely sure why this turned out to be a problem.

Imagick Installation issue with PHP : 5.3.3 & ImageMagick : 6.8.1 Q16

I'm having an issue installing Imagick as i have just installed ImageMagick 6.8.1 Q16 onto our CentOS 6.3 system
Please note i am running all comands as root
I then am trying the following: pecl install imagick and the following error appear (full error):
[root#T1600-904 /]# pecl install imagick
downloading imagick-3.1.0RC2.tgz ...
Starting to download imagick-3.1.0RC2.tgz (93,264 bytes)
.....................done: 93,264 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Please provide the prefix of Imagemagick installation [autodetect] :
building in /tmp/pear/install/pear-build-rootPvQgOJ/imagick-3.1.0RC2
running: /tmp/pear/install/imagick/configure --with-imagick
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 for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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/php -I/usr/include/php/main -I/usr/include/php/TSRM
-I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
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 the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/local/bin/MagickWand-
config
checking if ImageMagick version is at least 6.2.4... found version 6.8.1 Q16
checking for MagickWand.h header file... found in /usr/local/include/ImageMagick
/wand/MagickWand.h
checking PHP version is at least 5.1.3... yes. found 5.3.3
Package MagickWand was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickWand.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickWand' found
Package MagickWand was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickWand.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickWand' found
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... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
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 ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
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 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... no
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: executing libtool commands
running: make
/bin/sh /tmp/pear/install/pear-build-rootPvQgOJ/imagick-3.1.0RC2/libtool --mode=compile cc -I.
-I/tmp/pear/install/imagick -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootPvQgOJ/imagick-
3.1.0RC2/include -I/tmp/pear/install/pear-build-rootPvQgOJ/imagick-3.1.0RC2/main -I/tmp
/pear/install/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr
/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g
-O2 -c /tmp/pear/install/imagick/imagick_file.c -o imagick_file.lo
libtool: compile: cc -I. -I/tmp/pear/install/imagick -DPHP_ATOM_INC -I/tmp/pear/install/pear-
build-rootPvQgOJ/imagick-3.1.0RC2/include -I/tmp/pear/install/pear-build-rootPvQgOJ/imagick-
3.1.0RC2/main -I/tmp/pear/install/imagick -I/usr/include/php -I/usr/include/php/main -I/usr
/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext
/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/imagick/imagick_file.c -fPIC -DPIC -o
.libs/imagick_file.o
In file included from /tmp/pear/install/imagick/imagick_file.c:21:
/tmp/pear/install/imagick/php_imagick.h:49:31: error: wand/MagickWand.h: No such file or
directory
In file included from /tmp/pear/install/imagick/php_imagick_file.h:24,
from /tmp/pear/install/imagick/imagick_file.c:22:
/tmp/pear/install/imagick/php_imagick_defs.h:72: error: expected specifier-qualifier-list
before âMagickWandâ
/tmp/pear/install/imagick/php_imagick_defs.h:80: error: expected specifier-qualifier-list
before âDrawingWandâ
/tmp/pear/install/imagick/php_imagick_defs.h:86: error: expected specifier-qualifier-list
before âPixelIteratorâ
/tmp/pear/install/imagick/php_imagick_defs.h:98: error: expected specifier-qualifier-list
before âPixelWandâ
In file included from /tmp/pear/install/imagick/imagick_file.c:22:
/tmp/pear/install/imagick/php_imagick_file.h:43: error: âMaxTextExtentâ undeclared here (not in
a function)
/tmp/pear/install/imagick/imagick_file.c: In function âphp_imagick_file_initâ:
/tmp/pear/install/imagick/imagick_file.c:75: error: âMagickPathâ undeclared (first use in this
function)
/tmp/pear/install/imagick/imagick_file.c:75: error: (Each undeclared identifier is reported
only once
/tmp/pear/install/imagick/imagick_file.c:75: error: for each function it appears in.)
/tmp/pear/install/imagick/imagick_file.c:99: error: âHeadPathâ undeclared (first use in this
function)
/tmp/pear/install/imagick/imagick_file.c:100: error: âTailPathâ undeclared (first use in this
function)
/tmp/pear/install/imagick/imagick_file.c: In function
âphp_imagick_read_image_using_imagemagickâ:
/tmp/pear/install/imagick/imagick_file.c:124: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:124: error: âMagickFalseâ undeclared (first use in
this function)
/tmp/pear/install/imagick/imagick_file.c:128: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:135: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:137: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c: In function
âphp_imagick_read_image_using_php_streamsâ:
/tmp/pear/install/imagick/imagick_file.c:144: error: âMagickBooleanTypeâ undeclared (first use
in this function)
/tmp/pear/install/imagick/imagick_file.c:144: error: expected â;â before âstatusâ
/tmp/pear/install/imagick/imagick_file.c:177: error: âstatusâ undeclared (first use in this
function)
/tmp/pear/install/imagick/imagick_file.c:177: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:179: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:184: error: âMagickFalseâ undeclared (first use in
this function)
/tmp/pear/install/imagick/imagick_file.c:189: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:196: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c: In function âphp_imagick_write_fileâ:
/tmp/pear/install/imagick/imagick_file.c:247: error: âMagickBooleanTypeâ undeclared (first use
in this function)
/tmp/pear/install/imagick/imagick_file.c:247: error: expected â;â before âstatusâ
/tmp/pear/install/imagick/imagick_file.c:258: error: âstatusâ undeclared (first use in this
function)
/tmp/pear/install/imagick/imagick_file.c:258: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:260: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:264: error: âMagickFalseâ undeclared (first use in
this function)
/tmp/pear/install/imagick/imagick_file.c: In function âphp_imagick_stream_handlerâ:
/tmp/pear/install/imagick/imagick_file.c:277: error: âMagickBooleanTypeâ undeclared (first use
in this function)
/tmp/pear/install/imagick/imagick_file.c:277: error: expected â;â before âstatusâ
/tmp/pear/install/imagick/imagick_file.c:306: error: âstatusâ undeclared (first use in this
function)
/tmp/pear/install/imagick/imagick_file.c:306: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:310: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:314: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:318: error: âphp_imagick_objectâ has no member named
âmagick_wandâ
/tmp/pear/install/imagick/imagick_file.c:326: error: âMagickFalseâ undeclared (first use in
this function)
make: *** [imagick_file.lo] Error 1
ERROR: `make' failed
Looking at the output above, where the install went wrong is:
In file included from /tmp/pear/install/imagick/imagick_file.c:21:
/tmp/pear/install/imagick/php_imagick.h:49:31: error: wand/MagickWand.h: No such file or
directory
Meaning, the 'MagickWand.h' could not be found.
Firstly you can try by installing 'pkg-config' as it's required by /usr/local/bin/Wand-config
$ yum install pkg-config
And try installing imagick again, this may fix the issue.
If not, try installing it manually and change the 'config.m4' file in the source directory to match what the install is actually looking for. This is as follows:
$ cd /usr/local
$ wget http://pecl.php.net/get/imagick-2.2.2.tgz
$ tar zxvf ./imagick-2.2.2.tgz
$ cd imagick-2.2.2
Then, before you proceed open the config.m4 file:
$ nano config.m4
Find the line:
if test -r $WAND_DIR/include/ImageMagick/wand/MagickWand.h;
and change it to:
if test -r $WAND_DIR/include/ImageMagick-6/wand/MagickWand.h;
NOTE: the ImageMagick-6. Change it to match your required path/version.
And continue with the install:
$ phpize
$ ./configure
$ make
$ make test
$ make install
Hopefully this helps someone...

why do i get an error in make when installing kakasi pecl version?

I hope someone who has successfully installed kakasi before can help me here.
im under the impression that the "--prefix /home/mrhowtos/public_html" seen below alows me to install in the /home/mrhowtos/public_html, which i need to do since i do not have permissions where the install tries to write otherwise.
>svn checkout http://svn.php.net/repository/pecl/kakasi/trunk kakasi
>cd kakasi
>phpize
>./configure --prefix /home/mrhowtos/public_html
>make
this configure seems to work fine, but on the make command the very first line that has an error is this:
/home5/mrhowtos/public_html/kakasi/kakasi.c:25:23: error: libkakasi.h: No such file or directory
and below in case it matters, is the entire output of the make command
mrhowtos#mrhowtosay.com [~/public_html/kakasi-svn]# make
/bin/sh /home5/mrhowtos/public_html/kakasi-svn/libtool --mode=compile cc -I. -I/home5/mrhowtos/public_html/kakasi-svn -DPHP_ATOM_INC -I/home5/mrhowtos/public_html/kakasi-svn/include -I/home5/mrhowtos/public_html/kakasi-svn/main -I/home5/mrhowtos/public_html/kakasi-svn -I/usr/php/53/usr/include/php -I/usr/php/53/usr/include/php/main -I/usr/php/53/usr/include/php/TSRM -I/usr/php/53/usr/include/php/Zend -I/usr/php/53/usr/include/php/ext -I/usr/php/53/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home5/mrhowtos/public_html/kakasi-svn/kakasi.c -o kakasi.lo
libtool: compile: cc -I. -I/home5/mrhowtos/public_html/kakasi-svn -DPHP_ATOM_INC -I/home5/mrhowtos/public_html/kakasi-svn/include -I/home5/mrhowtos/public_html/kakasi-svn/main -I/home5/mrhowtos/public_html/kakasi-svn -I/usr/php/53/usr/include/php -I/usr/php/53/usr/include/php/main -I/usr/php/53/usr/include/php/TSRM -I/usr/php/53/usr/include/php/Zend -I/usr/php/53/usr/include/php/ext -I/usr/php/53/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home5/mrhowtos/public_html/kakasi-svn/kakasi.c -fPIC -DPIC -o .libs/kakasi.o
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:25:23: error: libkakasi.h: No such file or directory
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:55: error: 'first_arg_force_ref' undeclared here (not in a function)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:120: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:159: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'php_kakasi_array_compare':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:195: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:196: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_asort':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:231: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_arsort':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:266: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'php_kakasi_ignorecase_array_compare':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:327: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:328: warning: assignment makes pointer from integer without a cast
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_asorti':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:430: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_arsorti':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:465: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c: In function 'zif_kakasi_split':
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:501: warning: 'zend_get_parameters_ex' is deprecated (declared at /usr/php/53/usr/include/php/Zend/zend_API.h:229)
/home5/mrhowtos/public_html/kakasi-svn/kakasi.c:513: warning: assignment makes pointer from integer without a cast
make: *** [kakasi.lo] Error 1
and in case it matters, output from the configure
mrhowtos#mrhowtosay.com [~/public_html/kakasi-svn]# ./configure --prefix /home/mrhowtos/public_html
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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/php/53/usr/include/php -I/usr/php/53/usr/include/php/main -I/usr/php/53/usr/include/php/TSRM -I/usr/php/53/usr/include/php/Zend -I/usr/php/53/usr/include/php/ext -I/usr/php/53/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/php/53/usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/php/53/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for kakasi support... yes, shared
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/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 for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
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
and of the phpize
mrhowtos#mrhowtosay.com [~/public_html/kakasi-svn]# phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626

Resources