php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59153 Failed compilation
Submitted: 2010-04-10 10:18 UTC Modified: 2010-04-10 10:33 UTC
From: airs0urce0 at gmail dot com Assigned:
Status: Closed Package: oauth (PECL)
PHP Version: 5.2.13 OS: CentOS
Private report: No CVE-ID: None
 [2010-04-10 10:18 UTC] airs0urce0 at gmail dot com
Description:
------------
Hello. Not sure that it's problem of module, but it's can't compile on CentOS.

Reproduce code:
---------------
# make

Expected result:
----------------
Successful compilation

Actual result:
--------------
[root@li110-51 oauth-0.99.9]# make
/bin/sh /root/builds/oauth-0.99.9/libtool --mode=compile cc  -I. -I/root/builds/oauth-0.99.9 -DPHP_ATOM_INC -I/root/builds/oauth-0.99.9/include -I/root/builds/oauth-0.99.9/main -I/root/builds/oauth-0.99.9 -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 -Wall -g   -c /root/builds/oauth-0.99.9/oauth.c -o oauth.lo 
mkdir .libs
 cc -I. -I/root/builds/oauth-0.99.9 -DPHP_ATOM_INC -I/root/builds/oauth-0.99.9/include -I/root/builds/oauth-0.99.9/main -I/root/builds/oauth-0.99.9 -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 -Wall -g -c /root/builds/oauth-0.99.9/oauth.c  -fPIC -DPIC -o .libs/oauth.o
/root/builds/oauth-0.99.9/oauth.c:45:23: error: curl/curl.h: No such file or directory
In file included from /root/builds/oauth-0.99.9/oauth.c:47:
/root/builds/oauth-0.99.9/php_oauth.h:144: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'make_req'
/root/builds/oauth-0.99.9/oauth.c: In function 'get_request_param':
/root/builds/oauth-0.99.9/oauth.c:456: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/builds/oauth-0.99.9/oauth.c:457: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/builds/oauth-0.99.9/oauth.c: At top level:
/root/builds/oauth-0.99.9/oauth.c:601: error: expected ')' before '*' token
/root/builds/oauth-0.99.9/oauth.c:763: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'make_req'
/root/builds/oauth-0.99.9/oauth.c: In function 'oauth_fetch':
/root/builds/oauth-0.99.9/oauth.c:1166: warning: implicit declaration of function 'make_req'
/root/builds/oauth-0.99.9/oauth.c: In function 'zm_startup_oauth':
/root/builds/oauth-0.99.9/oauth.c:2047: warning: implicit declaration of function 'curl_global_init'
/root/builds/oauth-0.99.9/oauth.c:2047: error: 'CURL_GLOBAL_DEFAULT' undeclared (first use in this function)
/root/builds/oauth-0.99.9/oauth.c:2047: error: (Each undeclared identifier is reported only once
/root/builds/oauth-0.99.9/oauth.c:2047: error: for each function it appears in.)
/root/builds/oauth-0.99.9/oauth.c:2047: error: 'CURLE_OK' undeclared (first use in this function)
/root/builds/oauth-0.99.9/oauth.c: In function 'zm_shutdown_oauth':
/root/builds/oauth-0.99.9/oauth.c:2092: warning: implicit declaration of function 'curl_global_cleanup'
make: *** [oauth.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-10 10:33 UTC] airs0urce0 at gmail dot com
My mistake. Need to install curl-devel
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 16 23:03:39 2021 UTC