Open coiby opened 12 years ago
I'm using Python2.6 and the gcc is 4.1. When installing via "easy_install2.6 pyfribidi", such errors are shown:
running install running build running build_py running build_ext building '_pyfribidi' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/kerberos/include -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_CONFIG_H=1 -Ifribidi-src -Ifribidi-src/lib -Ifribidi-src/charset -Ibuild/temp.linux-i686-2.6/fribidi -Ibuild/temp.linux-i686-2.6/fribidi/lib -I/usr/include/python2.6 -c pyfribidi.c -o build/temp.linux-i686-2.6/pyfribidi.o pyfribidi.c: In function ‘unicode_log2vis’: pyfribidi.c:33: warning: unused variable ‘new_len’ gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/kerberos/include -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_CONFIG_H=1 -Ifribidi-src -Ifribidi-src/lib -Ifribidi-src/charset -Ibuild/temp.linux-i686-2.6/fribidi -Ibuild/temp.linux-i686-2.6/fribidi/lib -I/usr/include/python2.6 -c fribidi-src/lib/fribidi.c -o build/temp.linux-i686-2.6/fribidi-src/lib/fribidi.o gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/kerberos/include -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_CONFIG_H=1 -Ifribidi-src -Ifribidi-src/lib -Ifribidi-src/charset -Ibuild/temp.linux-i686-2.6/fribidi -Ibuild/temp.linux-i686-2.6/fribidi/lib -I/usr/include/python2.6 -c fribidi-src/lib/fribidi-arabic.c -o build/temp.linux-i686-2.6/fribidi-src/lib/fribidi-arabic.o fribidi-src/lib/fribidi-arabic.c: In function ‘fribidi_shape_arabic’: fribidi-src/lib/fribidi-arabic.c:159: error: expected expression before ‘)’ token fribidi-src/lib/fribidi-arabic.c:159: warning: passing argument 2 of ‘fprintf_chk’ makes integer from pointer without a cast fribidi-src/lib/fribidi-arabic.c:159: warning: passing argument 3 of ‘__fprintf_chk’ makes pointer from integer without a cast fribidi-src/lib/fribidi-arabic.c:164: error: expected expression before ‘)’ token fribidi-src/lib/fribidi-arabic.c:164: warning: passing argument 2 of ‘fprintf_chk’ makes integer from pointer without a cast fribidi-src/lib/fribidi-arabic.c:164: warning: passing argument 3 of ‘fprintf_chk’ makes pointer from integer without a cast fribidi-src/lib/fribidi-arabic.c:166: error: expected expression before ‘)’ token fribidi-src/lib/fribidi-arabic.c:166: warning: passing argument 2 of ‘__fprintf_chk’ makes integer from pointer without a cast fribidi-src/lib/fribidi-arabic.c:166: warning: passing argument 3 of ‘fprintf_chk’ makes pointer from integer without a cast error: command 'gcc' failed with exit status 1
Then I tried gcc 4.4. The errors are the same.
You can try to install the fribidi-devel packages and install pyfribidi with
USE_SYSTEM_LIB=yes pip install pyfribidi
Thanks! "USE_SYSTEM_LIB=yes pip install pyfribidi" works.
I'm using Python2.6 and the gcc is 4.1. When installing via "easy_install2.6 pyfribidi", such errors are shown:
running install running build running build_py running build_ext building '_pyfribidi' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/kerberos/include -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_CONFIG_H=1 -Ifribidi-src -Ifribidi-src/lib -Ifribidi-src/charset -Ibuild/temp.linux-i686-2.6/fribidi -Ibuild/temp.linux-i686-2.6/fribidi/lib -I/usr/include/python2.6 -c pyfribidi.c -o build/temp.linux-i686-2.6/pyfribidi.o pyfribidi.c: In function ‘unicode_log2vis’: pyfribidi.c:33: warning: unused variable ‘new_len’ gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/kerberos/include -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_CONFIG_H=1 -Ifribidi-src -Ifribidi-src/lib -Ifribidi-src/charset -Ibuild/temp.linux-i686-2.6/fribidi -Ibuild/temp.linux-i686-2.6/fribidi/lib -I/usr/include/python2.6 -c fribidi-src/lib/fribidi.c -o build/temp.linux-i686-2.6/fribidi-src/lib/fribidi.o gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -I/usr/kerberos/include -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_CONFIG_H=1 -Ifribidi-src -Ifribidi-src/lib -Ifribidi-src/charset -Ibuild/temp.linux-i686-2.6/fribidi -Ibuild/temp.linux-i686-2.6/fribidi/lib -I/usr/include/python2.6 -c fribidi-src/lib/fribidi-arabic.c -o build/temp.linux-i686-2.6/fribidi-src/lib/fribidi-arabic.o fribidi-src/lib/fribidi-arabic.c: In function ‘fribidi_shape_arabic’: fribidi-src/lib/fribidi-arabic.c:159: error: expected expression before ‘)’ token fribidi-src/lib/fribidi-arabic.c:159: warning: passing argument 2 of ‘fprintf_chk’ makes integer from pointer without a cast fribidi-src/lib/fribidi-arabic.c:159: warning: passing argument 3 of ‘__fprintf_chk’ makes pointer from integer without a cast fribidi-src/lib/fribidi-arabic.c:164: error: expected expression before ‘)’ token fribidi-src/lib/fribidi-arabic.c:164: warning: passing argument 2 of ‘fprintf_chk’ makes integer from pointer without a cast fribidi-src/lib/fribidi-arabic.c:164: warning: passing argument 3 of ‘fprintf_chk’ makes pointer from integer without a cast fribidi-src/lib/fribidi-arabic.c:166: error: expected expression before ‘)’ token fribidi-src/lib/fribidi-arabic.c:166: warning: passing argument 2 of ‘__fprintf_chk’ makes integer from pointer without a cast fribidi-src/lib/fribidi-arabic.c:166: warning: passing argument 3 of ‘fprintf_chk’ makes pointer from integer without a cast error: command 'gcc' failed with exit status 1
Then I tried gcc 4.4. The errors are the same.