|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59206 compilation problem
Submitted: 2010-05-12 08:45 UTC Modified: 2010-05-12 11:53 UTC
From: krystian at kuczek dot eu Assigned: datibbaw (profile)
Status: Not a bug Package: oauth (PECL)
PHP Version: 5.3.2 OS: kubuntu 10.4
Private report: No CVE-ID: None
 [2010-05-12 08:45 UTC] krystian at kuczek dot eu
When i try install oAuth from pecl i have a compilation 

gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3

Actual result:
downloading oauth-0.99.9.tgz ...
Starting to download oauth-0.99.9.tgz (25,609 bytes)
.........done: 25,609 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
building in /var/tmp/pear-build-root/oauth-0.99.9
running: /tmp/pear/temp/oauth/configure
checking for grep that handles long lines and -e... 
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 -
checking for PHP extension directory... 
checking for PHP installed headers prefix... 
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 for oauth support... yes, shared
checking for a sed that does not truncate output... (cached) 
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 
checking whether ln -s works... yes
checking the maximum length of command line arguments... 
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
checking how to hardcode library paths into programs... 
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/bash /var/tmp/pear-build-root/oauth-0.99.9/libtool --
mode=compile cc  -I. -I/tmp/pear/temp/oauth -DPHP_ATOM_INC -
I/var/tmp/pear-build-root/oauth-0.99.9/include -
I/var/tmp/pear-build-root/oauth-0.99.9/main -
I/tmp/pear/temp/oauth -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  -DHAVE_CONFIG_H  -g -O2 -
Wall -g   -c /tmp/pear/temp/oauth/oauth.c -o oauth.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/oauth -
DPHP_ATOM_INC -I/var/tmp/pear-build-root/oauth-
0.99.9/include -I/var/tmp/pear-build-root/oauth-0.99.9/main 
-I/tmp/pear/temp/oauth -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 -DHAVE_CONFIG_H -g -O2 -Wall 
-g -c /tmp/pear/temp/oauth/oauth.c  -fPIC -DPIC -o 
/tmp/pear/temp/oauth/oauth.c:45:23: error: curl/curl.h: No 
such file or directory
In file included from /tmp/pear/temp/oauth/oauth.c:47:
/tmp/pear/temp/oauth/php_oauth.h:144: error: expected ?=?, 
?,?, ?;?, ?asm? or ?__attribute__? before ?make_req?
/tmp/pear/temp/oauth/oauth.c:601: error: expected ?)? before 
?*? token
/tmp/pear/temp/oauth/oauth.c:763: error: expected ?=?, ?,?, 
?;?, ?asm? or ?__attribute__? before ?make_req?
/tmp/pear/temp/oauth/oauth.c: In function ?oauth_fetch?:
/tmp/pear/temp/oauth/oauth.c:1166: warning: implicit 
declaration of function ?make_req?
/tmp/pear/temp/oauth/oauth.c: In function 
/tmp/pear/temp/oauth/oauth.c:2047: warning: implicit 
declaration of function ?curl_global_init?
/tmp/pear/temp/oauth/oauth.c:2047: error: 
?CURL_GLOBAL_DEFAULT? undeclared (first use in this 
/tmp/pear/temp/oauth/oauth.c:2047: error: (Each undeclared 
identifier is reported only once
/tmp/pear/temp/oauth/oauth.c:2047: error: for each function 
it appears in.)
/tmp/pear/temp/oauth/oauth.c:2047: error: ?CURLE_OK? 
undeclared (first use in this function)
/tmp/pear/temp/oauth/oauth.c: In function 
/tmp/pear/temp/oauth/oauth.c:2092: warning: implicit 
declaration of function ?curl_global_cleanup?
make: *** [oauth.lo] Błąd 1
ERROR: `make' failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-12 08:52 UTC]
It looks related to

datibbaw, Can you check it?
 [2010-05-12 09:23 UTC]
Thank you for taking the time to write to us, but this is not
a bug.


Version 0.99.9 has a hard dependency on cURL. You will need to install curl-dev before attempting to install OAuth.

This should be fixed in the next release, or alternatively you can checkout SVN which can work without cURL.
 [2010-05-12 11:53 UTC]
The package you'll need in Ubuntu is libcurl4-openssl-dev or 
libcurl4-gnutls-dev depending on your setup.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon May 29 19:03:42 2023 UTC