php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: krystian at kuczek dot eu
New email:
PHP Version: OS:

 

 [2010-05-12 08:45 UTC] krystian at kuczek dot eu
Description:
------------
When i try install oAuth from pecl i have a compilation 
error.

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... 
/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/20090626
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 for oauth support... yes, shared
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 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: 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 
.libs/oauth.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 
?zm_startup_oauth?:
/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 
function)
/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 
?zm_shutdown_oauth?:
/tmp/pear/temp/oauth/oauth.c:2092: warning: implicit 
declaration of function ?curl_global_cleanup?
make: *** [oauth.lo] Błąd 1
ERROR: `make' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-12 08:52 UTC] felipe@php.net
It looks related to http://svn.php.net/viewvc?view=revision&revision=290869

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

Hi,

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] jawed@php.net
The package you'll need in Ubuntu is libcurl4-openssl-dev or 
libcurl4-gnutls-dev depending on your setup.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC