Thanks to visit codestin.com
Credit goes to github.com

Skip to content

error on make: make: *** [reference.lo] Error 1 #59

@gwijayas

Description

@gwijayas

Ubuntu 13.10, PHP 5.4.24 (build myself) or PHP 5.5.3(Ubuntu's package)

Some of the error messages:

In file included from /home/jaya/src/gitrepo/php-git-function/php_git2.h:36:0,
                 from /home/jaya/src/gitrepo/php-git-function/reference.c:1:
/opt/apache22/php/5.4/include/php/main/php.h:268:15: warning: redundant redeclaration of ‘environ’ [-Wredundant-decls]
 extern char **environ;
               ^
In file included from /opt/apache22/php/5.4/include/php/main/php.h:166:0,
                 from /home/jaya/src/gitrepo/php-git-function/php_git2.h:36,
                 from /home/jaya/src/gitrepo/php-git-function/reference.c:1:
/usr/include/unistd.h:545:15: note: previous declaration of ‘environ’ was here
 extern char **environ;
               ^
In file included from /opt/apache22/php/5.4/include/php/main/php.h:38:0,
                 from /home/jaya/src/gitrepo/php-git-function/php_git2.h:36,
                 from /home/jaya/src/gitrepo/php-git-function/reference.c:1:
/opt/apache22/php/5.4/include/php/Zend/zend_API.h:65:23: warning: redundant redeclaration of ‘zif_clearstatcache’ [-Wredundant-decls]
 #define ZEND_FN(name) zif_##name
                       ^
/opt/apache22/php/5.4/include/php/Zend/zend_API.h:67:41: note: in definition of macro ‘ZEND_NAMED_FUNCTION’
 #define ZEND_NAMED_FUNCTION(name)  void name(INTERNAL_FUNCTION_PARAMETERS)
                                         ^
/opt/apache22/php/5.4/include/php/Zend/zend_API.h:68:52: note: in expansion of macro ‘ZEND_FN’
 #define ZEND_FUNCTION(name)    ZEND_NAMED_FUNCTION(ZEND_FN(name))
                                                    ^
/opt/apache22/php/5.4/include/php/main/php.h:345:24: note: in expansion of macro ‘ZEND_FUNCTION’
 #define PHP_FUNCTION   ZEND_FUNCTION
                        ^
/opt/apache22/php/5.4/include/php/ext/standard/php_filestat.h:62:1: note: in expansion of macro ‘PHP_FUNCTION’
 PHP_FUNCTION(clearstatcache);
 ^
/opt/apache22/php/5.4/include/php/Zend/zend_API.h:65:23: note: previous declaration of ‘zif_clearstatcache’ was here
 #define ZEND_FN(name) zif_##name
                       ^
/opt/apache22/php/5.4/include/php/Zend/zend_API.h:67:41: note: in definition of macro ‘ZEND_NAMED_FUNCTION’
 #define ZEND_NAMED_FUNCTION(name)  void name(INTERNAL_FUNCTION_PARAMETERS)
                                         ^
/opt/apache22/php/5.4/include/php/Zend/zend_API.h:68:52: note: in expansion of macro ‘ZEND_FN’
 #define ZEND_FUNCTION(name)    ZEND_NAMED_FUNCTION(ZEND_FN(name))
                                                    ^
/opt/apache22/php/5.4/include/php/main/php.h:345:24: note: in expansion of macro ‘ZEND_FUNCTION’
 #define PHP_FUNCTION   ZEND_FUNCTION
                        ^
/opt/apache22/php/5.4/include/php/ext/standard/php_filestat.h:29:1: note: in expansion of macro ‘PHP_FUNCTION’
 PHP_FUNCTION(clearstatcache);
 ^
/home/jaya/src/gitrepo/php-git-function/reference.c: In function ‘zif_git_reference_target_peel’:
/home/jaya/src/gitrepo/php-git-function/reference.c:233:6: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
  oid = git_reference_target_peel(PHP_GIT2_V(_ref, reference));
      ^
/home/jaya/src/gitrepo/php-git-function/reference.c: In function ‘zif_git_reference_type’:
/home/jaya/src/gitrepo/php-git-function/reference.c:272:9: error: incompatible types when assigning to type ‘enum git_ref_t *’ from type ‘git_ref_t’
  result = git_reference_type(PHP_GIT2_V(_ref, reference));
         ^
In file included from /opt/apache22/php/5.4/include/php/main/php.h:38:0,
                 from /home/jaya/src/gitrepo/php-git-function/php_git2.h:36,
                 from /home/jaya/src/gitrepo/php-git-function/reference.c:1:
/opt/apache22/php/5.4/include/php/Zend/zend_API.h:560:17: warning: assignment makes integer from pointer without a cast [enabled by default]
   Z_LVAL_P(__z) = l;   \
                 ^
/opt/apache22/php/5.4/include/php/Zend/zend_API.h:616:29: note: in expansion of macro ‘ZVAL_LONG’
 #define RETVAL_LONG(l)      ZVAL_LONG(return_value, l)
                             ^
/opt/apache22/php/5.4/include/php/Zend/zend_API.h:628:31: note: in expansion of macro ‘RETVAL_LONG’
 #define RETURN_LONG(l)      { RETVAL_LONG(l); return; }
                               ^
/home/jaya/src/gitrepo/php-git-function/reference.c:273:2: note: in expansion of macro ‘RETURN_LONG’
  RETURN_LONG(result);
  ^
make: *** [reference.lo] Error 1

Been trying on develop and functions, got the same error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions