Code Monkey home page Code Monkey logo

Comments (8)

stealth35 avatar stealth35 commented on July 1, 2024

And the file exists ?
set display_startup_errors to On

from php-git.

imihalc avatar imihalc commented on July 1, 2024

I manualy checked the location "/usr/lib/php5/20090626+lfs/" the file git2.so does not exits

from php-git.

stealth35 avatar stealth35 commented on July 1, 2024

Could you paste your phpize && ./configure && make && sudo make install results

from php-git.

chobie avatar chobie commented on July 1, 2024

we need your phpize && ./configure && make && sudo make install results results.
also uname -a result is helpful.

from php-git.

 avatar commented on July 1, 2024

Hi,

I am experiencing the same problem as above. Please see below log from the build.
Please let me know should you need any more information.

[ec2-user@ci]❯ pwd
/home/ec2-user/php-git

[ec2-user@ci]❯ g pull
Already up-to-date.

[ec2-user@ci]❯ g rev-parse HEAD
b28d145

[ec2-user@ci]❯ make clean
find . -name *.gcno -o -name *.gcda | xargs rm -f
find . -name *.lo -o -name *.o | xargs rm -f
find . -name *.la -o -name *.a | xargs rm -f
find . -name .so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la modules/* libs/

[ec2-user@ci]❯ cd libgit2/build

[ec2-user@ci]build❯ g rev-parse HEAD
d18713fb4ad1ba3d18a75272e1c1c3eb45715aba

[ec2-user@ci]build❯ rm -fr *
zsh: sure you want to delete all the files in /home/ec2-user/php-git/libgit2/build [yn]? y

[ec2-user@ci]build❯ cmake ..
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found ZLIB: /usr/lib64/libz.so
-- Found PythonInterp: /usr/bin/python2.6
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ec2-user/php-git/libgit2/build

[ec2-user@ci]build❯ cmake -DBUILD_SHARED_LIBS=OFF -build .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ec2-user/php-git/libgit2/build

[ec2-user@ci]build❯ make
Scanning dependencies of target git2
[ 0%] Building C object CMakeFiles/git2.dir/src/vector.c.o
[ 0%] Building C object CMakeFiles/git2.dir/src/posix.c.o
[ 0%] Building C object CMakeFiles/git2.dir/src/filebuf.c.o
[ 1%] Building C object CMakeFiles/git2.dir/src/filter.c.o
[ 1%] Building C object CMakeFiles/git2.dir/src/notes.c.o
[ 1%] Building C object CMakeFiles/git2.dir/src/object.c.o
[ 2%] Building C object CMakeFiles/git2.dir/src/status.c.o
[ 2%] Building C object CMakeFiles/git2.dir/src/revparse.c.o
[ 2%] Building C object CMakeFiles/git2.dir/src/compress.c.o
[ 2%] Building C object CMakeFiles/git2.dir/src/fetch.c.o
[ 3%] Building C object CMakeFiles/git2.dir/src/tag.c.o
[ 3%] Building C object CMakeFiles/git2.dir/src/crlf.c.o
[ 3%] Building C object CMakeFiles/git2.dir/src/repository.c.o
[ 4%] Building C object CMakeFiles/git2.dir/src/checkout.c.o
[ 4%] Building C object CMakeFiles/git2.dir/src/iterator.c.o
[ 4%] Building C object CMakeFiles/git2.dir/src/netops.c.o
[ 5%] Building C object CMakeFiles/git2.dir/src/pack-objects.c.o
[ 5%] Building C object CMakeFiles/git2.dir/src/submodule.c.o
[ 5%] Building C object CMakeFiles/git2.dir/src/attr.c.o
[ 5%] Building C object CMakeFiles/git2.dir/src/odb.c.o
[ 6%] Building C object CMakeFiles/git2.dir/src/date.c.o
[ 6%] Building C object CMakeFiles/git2.dir/src/diff_tform.c.o
[ 6%] Building C object CMakeFiles/git2.dir/src/odb_loose.c.o
[ 7%] Building C object CMakeFiles/git2.dir/src/blob.c.o
[ 7%] Building C object CMakeFiles/git2.dir/src/branch.c.o
[ 7%] Building C object CMakeFiles/git2.dir/src/config.c.o
[ 8%] Building C object CMakeFiles/git2.dir/src/delta.c.o
[ 8%] Building C object CMakeFiles/git2.dir/src/stash.c.o
[ 8%] Building C object CMakeFiles/git2.dir/src/fnmatch.c.o
[ 8%] Building C object CMakeFiles/git2.dir/src/config_cache.c.o
[ 9%] Building C object CMakeFiles/git2.dir/src/merge.c.o
[ 9%] Building C object CMakeFiles/git2.dir/src/odb_pack.c.o
[ 9%] Building C object CMakeFiles/git2.dir/src/signature.c.o
[ 10%] Building C object CMakeFiles/git2.dir/src/hash.c.o
[ 10%] Building C object CMakeFiles/git2.dir/src/commit.c.o
[ 10%] Building C object CMakeFiles/git2.dir/src/refspec.c.o
[ 11%] Building C object CMakeFiles/git2.dir/src/revwalk.c.o
[ 11%] Building C object CMakeFiles/git2.dir/src/cache.c.o
[ 11%] Building C object CMakeFiles/git2.dir/src/pqueue.c.o
[ 11%] Building C object CMakeFiles/git2.dir/src/errors.c.o
[ 12%] Building C object CMakeFiles/git2.dir/src/reset.c.o
[ 12%] Building C object CMakeFiles/git2.dir/src/pool.c.o
[ 12%] Building C object CMakeFiles/git2.dir/src/oid.c.o
[ 13%] Building C object CMakeFiles/git2.dir/src/thread-utils.c.o
[ 13%] Building C object CMakeFiles/git2.dir/src/reflog.c.o
[ 13%] Building C object CMakeFiles/git2.dir/src/path.c.o
[ 14%] Building C object CMakeFiles/git2.dir/src/mwindow.c.o
[ 14%] Building C object CMakeFiles/git2.dir/src/delta-apply.c.o
[ 14%] Building C object CMakeFiles/git2.dir/src/sha1_lookup.c.o
[ 14%] Building C object CMakeFiles/git2.dir/src/refs.c.o
[ 15%] Building C object CMakeFiles/git2.dir/src/global.c.o
[ 15%] Building C object CMakeFiles/git2.dir/src/indexer.c.o
[ 15%] Building C object CMakeFiles/git2.dir/src/fileops.c.o
[ 16%] Building C object CMakeFiles/git2.dir/src/diff_output.c.o
[ 16%] Building C object CMakeFiles/git2.dir/src/pack.c.o
[ 16%] Building C object CMakeFiles/git2.dir/src/transport.c.o
[ 17%] Building C object CMakeFiles/git2.dir/src/ignore.c.o
[ 17%] Building C object CMakeFiles/git2.dir/src/clone.c.o
[ 17%] Building C object CMakeFiles/git2.dir/src/util.c.o
[ 17%] Building C object CMakeFiles/git2.dir/src/tree.c.o
[ 18%] Building C object CMakeFiles/git2.dir/src/attr_file.c.o
[ 18%] Building C object CMakeFiles/git2.dir/src/remote.c.o
[ 18%] Building C object CMakeFiles/git2.dir/src/diff.c.o
[ 19%] Building C object CMakeFiles/git2.dir/src/config_file.c.o
[ 19%] Building C object CMakeFiles/git2.dir/src/tree-cache.c.o
[ 19%] Building C object CMakeFiles/git2.dir/src/message.c.o
[ 20%] Building C object CMakeFiles/git2.dir/src/buffer.c.o
[ 20%] Building C object CMakeFiles/git2.dir/src/index.c.o
[ 20%] Building C object CMakeFiles/git2.dir/src/tsort.c.o
[ 20%] Building C object CMakeFiles/git2.dir/src/transports/winhttp.c.o
[ 21%] Building C object CMakeFiles/git2.dir/src/transports/cred.c.o
[ 21%] Building C object CMakeFiles/git2.dir/src/transports/local.c.o
[ 21%] Building C object CMakeFiles/git2.dir/src/transports/smart.c.o
[ 22%] Building C object CMakeFiles/git2.dir/src/transports/http.c.o
/home/ec2-user/php-git/libgit2/src/transports/http.c: In function ‘git_smart_subtransport_http’:
/home/ec2-user/php-git/libgit2/src/transports/http.c:630:6: warning: unused variable ‘flags’ [-Wunused-variable]
[ 22%] Building C object CMakeFiles/git2.dir/src/transports/smart_protocol.c.o
[ 22%] Building C object CMakeFiles/git2.dir/src/transports/git.c.o
[ 23%] Building C object CMakeFiles/git2.dir/src/transports/smart_pkt.c.o
[ 23%] Building C object CMakeFiles/git2.dir/src/xdiff/xpatience.c.o
[ 23%] Building C object CMakeFiles/git2.dir/src/xdiff/xmerge.c.o
[ 23%] Building C object CMakeFiles/git2.dir/src/xdiff/xhistogram.c.o
[ 24%] Building C object CMakeFiles/git2.dir/src/xdiff/xemit.c.o
[ 24%] Building C object CMakeFiles/git2.dir/src/xdiff/xprepare.c.o
[ 24%] Building C object CMakeFiles/git2.dir/src/xdiff/xdiffi.c.o
[ 25%] Building C object CMakeFiles/git2.dir/src/xdiff/xutils.c.o
[ 25%] Building C object CMakeFiles/git2.dir/src/unix/map.c.o
[ 25%] Building C object CMakeFiles/git2.dir/deps/http-parser/http_parser.c.o
[ 26%] Building C object CMakeFiles/git2.dir/src/sha1/sha1.c.o
Linking C static library libgit2.a
[ 26%] Built target git2
Scanning dependencies of target libgit2_clar
[ 26%] Building C object CMakeFiles/libgit2_clar.dir/src/vector.c.o
[ 26%] Building C object CMakeFiles/libgit2_clar.dir/src/posix.c.o
[ 26%] Building C object CMakeFiles/libgit2_clar.dir/src/filebuf.c.o
[ 27%] Building C object CMakeFiles/libgit2_clar.dir/src/filter.c.o
[ 27%] Building C object CMakeFiles/libgit2_clar.dir/src/notes.c.o
[ 27%] Building C object CMakeFiles/libgit2_clar.dir/src/object.c.o
[ 28%] Building C object CMakeFiles/libgit2_clar.dir/src/status.c.o
[ 28%] Building C object CMakeFiles/libgit2_clar.dir/src/revparse.c.o
[ 28%] Building C object CMakeFiles/libgit2_clar.dir/src/compress.c.o
[ 29%] Building C object CMakeFiles/libgit2_clar.dir/src/fetch.c.o
[ 29%] Building C object CMakeFiles/libgit2_clar.dir/src/tag.c.o
[ 29%] Building C object CMakeFiles/libgit2_clar.dir/src/crlf.c.o
[ 29%] Building C object CMakeFiles/libgit2_clar.dir/src/repository.c.o
[ 30%] Building C object CMakeFiles/libgit2_clar.dir/src/checkout.c.o
[ 30%] Building C object CMakeFiles/libgit2_clar.dir/src/iterator.c.o
[ 30%] Building C object CMakeFiles/libgit2_clar.dir/src/netops.c.o
[ 31%] Building C object CMakeFiles/libgit2_clar.dir/src/pack-objects.c.o
[ 31%] Building C object CMakeFiles/libgit2_clar.dir/src/submodule.c.o
[ 31%] Building C object CMakeFiles/libgit2_clar.dir/src/attr.c.o
[ 32%] Building C object CMakeFiles/libgit2_clar.dir/src/odb.c.o
[ 32%] Building C object CMakeFiles/libgit2_clar.dir/src/date.c.o
[ 32%] Building C object CMakeFiles/libgit2_clar.dir/src/diff_tform.c.o
[ 32%] Building C object CMakeFiles/libgit2_clar.dir/src/odb_loose.c.o
[ 33%] Building C object CMakeFiles/libgit2_clar.dir/src/blob.c.o
[ 33%] Building C object CMakeFiles/libgit2_clar.dir/src/branch.c.o
[ 33%] Building C object CMakeFiles/libgit2_clar.dir/src/config.c.o
[ 34%] Building C object CMakeFiles/libgit2_clar.dir/src/delta.c.o
[ 34%] Building C object CMakeFiles/libgit2_clar.dir/src/stash.c.o
[ 34%] Building C object CMakeFiles/libgit2_clar.dir/src/fnmatch.c.o
[ 35%] Building C object CMakeFiles/libgit2_clar.dir/src/config_cache.c.o
[ 35%] Building C object CMakeFiles/libgit2_clar.dir/src/merge.c.o
[ 35%] Building C object CMakeFiles/libgit2_clar.dir/src/odb_pack.c.o
[ 35%] Building C object CMakeFiles/libgit2_clar.dir/src/signature.c.o
[ 36%] Building C object CMakeFiles/libgit2_clar.dir/src/hash.c.o
[ 36%] Building C object CMakeFiles/libgit2_clar.dir/src/commit.c.o
[ 36%] Building C object CMakeFiles/libgit2_clar.dir/src/refspec.c.o
[ 37%] Building C object CMakeFiles/libgit2_clar.dir/src/revwalk.c.o
[ 37%] Building C object CMakeFiles/libgit2_clar.dir/src/cache.c.o
[ 37%] Building C object CMakeFiles/libgit2_clar.dir/src/pqueue.c.o
[ 38%] Building C object CMakeFiles/libgit2_clar.dir/src/errors.c.o
[ 38%] Building C object CMakeFiles/libgit2_clar.dir/src/reset.c.o
[ 38%] Building C object CMakeFiles/libgit2_clar.dir/src/pool.c.o
[ 38%] Building C object CMakeFiles/libgit2_clar.dir/src/oid.c.o
[ 39%] Building C object CMakeFiles/libgit2_clar.dir/src/thread-utils.c.o
[ 39%] Building C object CMakeFiles/libgit2_clar.dir/src/reflog.c.o
[ 39%] Building C object CMakeFiles/libgit2_clar.dir/src/path.c.o
[ 40%] Building C object CMakeFiles/libgit2_clar.dir/src/mwindow.c.o
[ 40%] Building C object CMakeFiles/libgit2_clar.dir/src/delta-apply.c.o
[ 40%] Building C object CMakeFiles/libgit2_clar.dir/src/sha1_lookup.c.o
[ 41%] Building C object CMakeFiles/libgit2_clar.dir/src/refs.c.o
[ 41%] Building C object CMakeFiles/libgit2_clar.dir/src/global.c.o
[ 41%] Building C object CMakeFiles/libgit2_clar.dir/src/indexer.c.o
[ 41%] Building C object CMakeFiles/libgit2_clar.dir/src/fileops.c.o
[ 42%] Building C object CMakeFiles/libgit2_clar.dir/src/diff_output.c.o
[ 42%] Building C object CMakeFiles/libgit2_clar.dir/src/pack.c.o
[ 42%] Building C object CMakeFiles/libgit2_clar.dir/src/transport.c.o
[ 43%] Building C object CMakeFiles/libgit2_clar.dir/src/ignore.c.o
[ 43%] Building C object CMakeFiles/libgit2_clar.dir/src/clone.c.o
[ 43%] Building C object CMakeFiles/libgit2_clar.dir/src/util.c.o
[ 44%] Building C object CMakeFiles/libgit2_clar.dir/src/tree.c.o
[ 44%] Building C object CMakeFiles/libgit2_clar.dir/src/attr_file.c.o
[ 44%] Building C object CMakeFiles/libgit2_clar.dir/src/remote.c.o
[ 44%] Building C object CMakeFiles/libgit2_clar.dir/src/diff.c.o
[ 45%] Building C object CMakeFiles/libgit2_clar.dir/src/config_file.c.o
[ 45%] Building C object CMakeFiles/libgit2_clar.dir/src/tree-cache.c.o
[ 45%] Building C object CMakeFiles/libgit2_clar.dir/src/message.c.o
[ 46%] Building C object CMakeFiles/libgit2_clar.dir/src/buffer.c.o
[ 46%] Building C object CMakeFiles/libgit2_clar.dir/src/index.c.o
[ 46%] Building C object CMakeFiles/libgit2_clar.dir/src/tsort.c.o
[ 47%] Building C object CMakeFiles/libgit2_clar.dir/src/transports/winhttp.c.o
[ 47%] Building C object CMakeFiles/libgit2_clar.dir/src/transports/cred.c.o
[ 47%] Building C object CMakeFiles/libgit2_clar.dir/src/transports/local.c.o
[ 47%] Building C object CMakeFiles/libgit2_clar.dir/src/transports/smart.c.o
[ 48%] Building C object CMakeFiles/libgit2_clar.dir/src/transports/http.c.o
/home/ec2-user/php-git/libgit2/src/transports/http.c: In function ‘git_smart_subtransport_http’:
/home/ec2-user/php-git/libgit2/src/transports/http.c:630:6: warning: unused variable ‘flags’ [-Wunused-variable]
[ 48%] Building C object CMakeFiles/libgit2_clar.dir/src/transports/smart_protocol.c.o
[ 48%] Building C object CMakeFiles/libgit2_clar.dir/src/transports/git.c.o
[ 49%] Building C object CMakeFiles/libgit2_clar.dir/src/transports/smart_pkt.c.o
[ 49%] Building C object CMakeFiles/libgit2_clar.dir/src/xdiff/xpatience.c.o
[ 49%] Building C object CMakeFiles/libgit2_clar.dir/src/xdiff/xmerge.c.o
[ 50%] Building C object CMakeFiles/libgit2_clar.dir/src/xdiff/xhistogram.c.o
[ 50%] Building C object CMakeFiles/libgit2_clar.dir/src/xdiff/xemit.c.o
[ 50%] Building C object CMakeFiles/libgit2_clar.dir/src/xdiff/xprepare.c.o
[ 50%] Building C object CMakeFiles/libgit2_clar.dir/src/xdiff/xdiffi.c.o
[ 51%] Building C object CMakeFiles/libgit2_clar.dir/src/xdiff/xutils.c.o
[ 51%] Building C object CMakeFiles/libgit2_clar.dir/src/unix/map.c.o
[ 51%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/clar_main.c.o
[ 52%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/checkout/head.c.o
[ 52%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/checkout/typechange.c.o
[ 52%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/checkout/tree.c.o
[ 52%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/checkout/index.c.o
[ 53%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/lookup.c.o
[ 53%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/listall.c.o
[ 53%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/revparse.c.o
[ 54%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/reflog/reflog.c.o
[ 54%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/reflog/drop.c.o
[ 54%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/foreachglob.c.o
[ 55%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/read.c.o
[ 55%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/rename.c.o
[ 55%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/create.c.o
[ 55%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/crashes.c.o
[ 56%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/branches/lookup.c.o
[ 56%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/branches/tracking.c.o
[ 56%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/branches/create.c.o
[ 57%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/branches/move.c.o
[ 57%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/branches/ishead.c.o
[ 57%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/branches/foreach.c.o
[ 58%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/branches/delete.c.o
[ 58%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/overwrite.c.o
[ 58%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/peel.c.o
[ 58%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/list.c.o
[ 59%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/pack.c.o
[ 59%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/unicode.c.o
[ 59%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/delete.c.o
[ 60%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/isvalidname.c.o
[ 60%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/refs/normalize.c.o
[ 60%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/network/fetch.c.o
[ 61%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/network/remoterename.c.o
[ 61%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/network/refspecs.c.o
[ 61%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/network/createremotethenload.c.o
[ 61%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/network/remotelocal.c.o
[ 62%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/network/remotes.c.o
[ 62%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/revwalk/basic.c.o
[ 62%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/revwalk/signatureparsing.c.o
[ 63%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/revwalk/mergebase.c.o
[ 63%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/commit/signature.c.o
[ 63%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/commit/commit.c.o
[ 64%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/commit/parse.c.o
[ 64%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/commit/parent.c.o
[ 64%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/commit/write.c.o
[ 64%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/buf/basic.c.o
[ 65%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/buf/splice.c.o
[ 65%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/discover.c.o
[ 65%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/open.c.o
[ 66%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/repo_helpers.c.o
[ 66%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/head.c.o
[ 66%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/getters.c.o
[ 67%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/init.c.o
[ 67%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/state.c.o
[ 67%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/hashfile.c.o
[ 67%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/setters.c.o
[ 68%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/repo/message.c.o
[ 68%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/attr/lookup.c.o
[ 68%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/attr/flags.c.o
[ 69%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/attr/file.c.o
[ 69%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/attr/repo.c.o
[ 69%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/threads/basic.c.o
[ 70%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/clone/network.c.o
[ 70%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/clone/nonetwork.c.o
[ 70%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/reset/mixed.c.o
[ 70%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/reset/soft.c.o
[ 71%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/reset/reset_helpers.c.o
[ 71%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/reset/hard.c.o
[ 71%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/pack/packbuilder.c.o
[ 72%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/config/configlevel.c.o
/home/ec2-user/php-git/libgit2/tests-clar/config/configlevel.c: In function ‘test_config_configlevel__fetching_a_level_from_an_empty_compound_config_returns_ENOTFOUND’:
/home/ec2-user/php-git/libgit2/tests-clar/config/configlevel.c:65:14: warning: unused variable ‘s’ [-Wunused-variable]
[ 72%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/config/stress.c.o
[ 72%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/config/config_helpers.c.o
[ 73%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/config/add.c.o
[ 73%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/config/refresh.c.o
[ 73%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/config/read.c.o
[ 73%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/config/multivar.c.o
[ 74%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/config/new.c.o
[ 74%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/config/write.c.o
[ 74%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/index/reuc.c.o
[ 75%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/index/filemodes.c.o
[ 75%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/index/stage.c.o
[ 75%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/index/inmemory.c.o
[ 76%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/index/rename.c.o
[ 76%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/index/tests.c.o
[ 76%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/index/read_tree.c.o
[ 76%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/index/conflicts.c.o
[ 77%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/date/date.c.o
[ 77%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/stash/save.c.o
[ 77%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/stash/drop.c.o
[ 78%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/stash/foreach.c.o
[ 78%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/stash/stash_helpers.c.o
[ 78%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/submodule/lookup.c.o
[ 79%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/submodule/status.c.o
[ 79%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/submodule/modify.c.o
[ 79%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/submodule/submodule_helpers.c.o
[ 79%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/notes/notes.c.o
[ 80%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/notes/notesref.c.o
[ 80%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/dirent.c.o
[ 80%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/vector.c.o
[ 81%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/filebuf.c.o
[ 81%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/copy.c.o
[ 81%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/string.c.o
[ 82%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/env.c.o
[ 82%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/rmdir.c.o
[ 82%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/errors.c.o
[ 82%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/pool.c.o
[ 83%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/oid.c.o
[ 83%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/path.c.o
[ 83%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/hex.c.o
[ 84%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/mkdir.c.o
[ 84%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/strtol.c.o
[ 84%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/strmap.c.o
[ 85%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/core/buffer.c.o
[ 85%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/lookup.c.o
[ 85%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/blob/filter.c.o
[ 85%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/blob/fromchunks.c.o
[ 86%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/blob/write.c.o
[ 86%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/commit/commitstagedfile.c.o
[ 86%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/raw/compare.c.o
[ 87%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/raw/short.c.o
[ 87%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/raw/convert.c.o
[ 87%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/raw/chars.c.o
[ 88%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/raw/hash.c.o
[ 88%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/raw/fromstr.c.o
[ 88%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/raw/type2string.c.o
[ 88%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/raw/size.c.o
[ 89%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/raw/write.c.o
[ 89%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tag/read.c.o
[ 89%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tag/peel.c.o
[ 90%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tag/list.c.o
[ 90%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tag/write.c.o
[ 90%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tree/duplicateentries.c.o
/home/ec2-user/php-git/libgit2/tests-clar/object/tree/duplicateentries.c:119:6: warning: no previous prototype for ‘add_fake_conflicts’ [-Wmissing-prototypes]
[ 91%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tree/attributes.c.o
[ 91%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tree/read.c.o
[ 91%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tree/walk.c.o
[ 91%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tree/frompath.c.o
[ 92%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/tree/write.c.o
[ 92%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/peel.c.o
[ 92%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/object/message.c.o
[ 93%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/status/worktree.c.o
[ 93%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/status/status_helpers.c.o
[ 93%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/status/submodules.c.o
[ 94%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/status/ignore.c.o
[ 94%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/status/single.c.o
[ 94%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/diff/iterator.c.o
[ 94%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/diff/workdir.c.o
[ 95%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/diff/diffiter.c.o
[ 95%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/diff/blob.c.o
[ 95%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/diff/diff_helpers.c.o
[ 96%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/diff/patch.c.o
[ 96%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/diff/rename.c.o
[ 96%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/diff/tree.c.o
[ 97%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/diff/index.c.o
[ 97%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/odb/packed_one.c.o
[ 97%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/odb/mixed.c.o
[ 97%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/odb/sorting.c.o
[ 98%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/odb/loose.c.o
[ 98%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/odb/packed.c.o
[ 98%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/odb/foreach.c.o
[ 99%] Building C object CMakeFiles/libgit2_clar.dir/tests-clar/clar_helpers.c.o
[ 99%] Building C object CMakeFiles/libgit2_clar.dir/deps/http-parser/http_parser.c.o
[ 99%] Building C object CMakeFiles/libgit2_clar.dir/src/sha1/sha1.c.o
Linking C executable libgit2_clar
[100%] Built target libgit2_clar

[ec2-user@ci]build❯ cd ../..

[ec2-user@ci]❯ phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626

[ec2-user@ci]❯ ./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 for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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/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
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
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 Whether to enable the "git2" extension... yes, shared
checking how to print strings... printf
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 for gawk... (cached) gawk
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... no
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: config.h is unchanged
config.status: executing libtool commands

[ec2-user@ci]❯ make
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/git2.c -o git2.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/git2.c -fPIC -DPIC -o .libs/git2.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/git2.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/git2.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/git2.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/ec2-user/php-git/git2.c: In function 'php_git2_object_new':
/home/ec2-user/php-git/git2.c:146:5: warning: passing argument 4 of 'add_property_stringl_ex' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/php/Zend/zend_API.h:421:14: note: expected 'char *' but argument is of type 'const char *'
/home/ec2-user/php-git/git2.c:147:5: warning: passing argument 4 of 'add_property_stringl_ex' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/php/Zend/zend_API.h:421:14: note: expected 'char *' but argument is of type 'const char *'
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/repository.c -o repository.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/repository.c -fPIC -DPIC -o .libs/repository.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/repository.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/repository.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/repository.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/ec2-user/php-git/repository.c: In function 'php_git2_repository_initialize':
/home/ec2-user/php-git/repository.c:107:2: warning: passing argument 4 of 'add_property_string_ex' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/php/Zend/zend_API.h:420:14: note: expected 'char *' but argument is of type 'const char *'
/home/ec2-user/php-git/repository.c: At top level:
/home/ec2-user/php-git/repository.c:598:0: warning: macro "lookup" is not used [-Wunused-macros]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/commit.c -o commit.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/commit.c -fPIC -DPIC -o .libs/commit.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/commit.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/commit.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/commit.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/blob.c -o blob.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/blob.c -fPIC -DPIC -o .libs/blob.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/blob.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/blob.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/blob.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/tree.c -o tree.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/tree.c -fPIC -DPIC -o .libs/tree.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/tree.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/tree.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/tree.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/tree_builder.c -o tree_builder.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/tree_builder.c -fPIC -DPIC -o .libs/tree_builder.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/tree_builder.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/tree_builder.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/tree_builder.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/tree_entry.c -o tree_entry.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/tree_entry.c -fPIC -DPIC -o .libs/tree_entry.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/tree_entry.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/tree_entry.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/tree_entry.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/signature.c -o signature.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/signature.c -fPIC -DPIC -o .libs/signature.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/signature.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/signature.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/signature.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/walker.c -o walker.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/walker.c -fPIC -DPIC -o .libs/walker.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/walker.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/walker.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/walker.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/ec2-user/php-git/walker.c: In function 'zim_git2_walker_hide':
/home/ec2-user/php-git/walker.c:233:10: warning: unused variable 'oid' [-Wunused-variable]
/home/ec2-user/php-git/walker.c: In function 'zim_git2_walker_key':
/home/ec2-user/php-git/walker.c:305:6: warning: unused variable 'error' [-Wunused-variable]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/reference.c -o reference.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/reference.c -fPIC -DPIC -o .libs/reference.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/reference.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/reference.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/reference.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/ec2-user/php-git/reference.c: In function 'zim_git2_reference_getBaseName':
/home/ec2-user/php-git/reference.c:144:2: warning: passing argument 1 of 'php_basename' discards 'const' qualifier from pointer target type [enabled by default]
/usr/include/php/ext/standard/php_string.h:128:13: note: expected 'char *' but argument is of type 'const char *'
/home/ec2-user/php-git/reference.c: In function 'php_git2_ref_foreach_cb':
/home/ec2-user/php-git/reference.c:228:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/ec2-user/php-git/reference.c: At top level:
/home/ec2-user/php-git/reference.c:325:0: warning: macro "lookup" is not used [-Wunused-macros]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/index.c -o index.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/index.c -fPIC -DPIC -o .libs/index.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/index.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/index.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/index.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/ec2-user/php-git/index.c: In function 'zim_git2_index_writeTree':
/home/ec2-user/php-git/index.c:97:2: warning: implicit declaration of function 'git_tree_create_fromindex' [-Wimplicit-function-declaration]
/home/ec2-user/php-git/index.c: In function 'zim_git2_index_current':
/home/ec2-user/php-git/index.c:118:2: warning: implicit declaration of function 'git_index_get' [-Wimplicit-function-declaration]
/home/ec2-user/php-git/index.c:118:8: warning: assignment makes pointer from integer without a cast [enabled by default]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/index_entry.c -o index_entry.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/index_entry.c -fPIC -DPIC -o .libs/index_entry.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/index_entry.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/index_entry.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclaration of 'php_ob_get_buffer' [-Wredundant-decls]
/usr/include/php/main/php_output.h:40:12: note: previous declaration of 'php_ob_get_buffer' was here
/usr/include/php/main/php_output.h:50:12: warning: redundant redeclaration of 'php_ob_get_length' [-Wredundant-decls]
/usr/include/php/main/php_output.h:41:12: note: previous declaration of 'php_ob_get_length' was here
In file included from /home/ec2-user/php-git/index_entry.c:25:0:
/home/ec2-user/php-git/php_git2.h: In function 'create_tree_entry_from_entry':
/home/ec2-user/php-git/php_git2.h:270:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/bin/sh /home/ec2-user/php-git/libtool --mode=compile cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/config.c -o config.lo
libtool: compile: cc -I. -I/home/ec2-user/php-git -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -c /home/ec2-user/php-git/config.c -fPIC -DPIC -o .libs/config.o
In file included from /home/ec2-user/php-git/php_git2.h:35:0,
from /home/ec2-user/php-git/config.c:25:
/usr/include/php/main/php.h:262:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls]
/usr/include/unistd.h:542:15: note: previous declaration of 'environ' was here
In file included from /usr/include/php/main/php.h:385:0,
from /home/ec2-user/php-git/php_git2.h:35,
from /home/ec2-user/php-git/config.c:25:
/usr/include/php/main/php_output.h:49:12: warning: redundant redeclarati

from php-git.

 avatar commented on July 1, 2024

/bin/sh /home/ec2-user/php-git/libtool --mode=link cc -DPHP_ATOM_INC -I/home/ec2-user/php-git/include -I/home/ec2-user/php-git/main -I/home/ec2-user/php-git -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 -I/home/ec2-user/php-git/libgit2/include -DHAVE_CONFIG_H -g -O2 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Winline -Wunused-macros -Wredundant-decls -Wstrict-aliasing=2 -Wswitch-enum -Wdeclaration-after-statement -o git2.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/ec2-user/php-git/modules git2.lo repository.lo commit.lo blob.lo tree.lo tree_builder.lo tree_entry.lo signature.lo walker.lo reference.lo index.lo index_entry.lo config.lo remote.lo tag.lo odb.lo odb_object.lo backend.lo -lgit2 -Wl,-rpath,/home/ec2-user/php-git/libgit2/build -L/home/ec2-user/php-git/libgit2/build
libtool: link: cc -shared .libs/git2.o .libs/repository.o .libs/commit.o .libs/blob.o .libs/tree.o .libs/tree_builder.o .libs/tree_entry.o .libs/signature.o .libs/walker.o .libs/reference.o .libs/index.o .libs/index_entry.o .libs/config.o .libs/remote.o .libs/tag.o .libs/odb.o .libs/odb_object.o .libs/backend.o -lgit2 -L/home/ec2-user/php-git/libgit2/build -Wl,-rpath -Wl,/home/ec2-user/php-git/libgit2/build -Wl,-soname -Wl,git2.so -o .libs/git2.so
libtool: link: ( cd ".libs" && rm -f "git2.la" && ln -s "../git2.la" "git2.la" )
/bin/sh /home/ec2-user/php-git/libtool --mode=install cp ./git2.la /home/ec2-user/php-git/modules
libtool: install: cp ./.libs/git2.so /home/ec2-user/php-git/modules/git2.so
libtool: install: cp ./.libs/git2.lai /home/ec2-user/php-git/modules/git2.la
libtool: finish: PATH="/usr/local/bin:/bin:/usr/bin:/home/ec2-user/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin:/usr/local/bin:/sbin" ldconfig -n /home/ec2-user/php-git/modules

Libraries have been installed in:
/home/ec2-user/php-git/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:

  • add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
  • add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
  • use the `-Wl,-rpath -Wl,LIBDIR' linker flag
  • have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

Build complete.
Don't forget to run 'make test'.

[ec2-user@ci]❯ sudo make install
Installing shared extensions: /usr/lib64/php/modules/

[ec2-user@ci]❯ ls -l /usr/lib64/php/modules/git2.so
-rwxr-xr-x 1 root root 1.6M Dec 4 11:57 /usr/lib64/php/modules/git2.so

[ec2-user@ci]❯ sudo echo 'extension=git2.so' > /etc/php.d/git2.ini

[ec2-user@ci]❯ cat /etc/php.d/git2.ini

extension=git2.so
[ec2-user@ci]❯ file $(which php)
/usr/bin/php: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

[ec2-user@ci]❯ file /usr/lib64/php/modules/git2.so
/usr/lib64/php/modules/git2.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped

[ec2-user@ci]❯ php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/git2.so' - /usr/lib64/php/modules/git2.so: undefined symbol: git_index_get in Unknown on line 0

[ec2-user@ci]build❯ nm -D /usr/lib64/php/modules/git2.so|grep git_index_get
U git_index_get
00000000000547cb T git_index_get_byindex
000000000005482a T git_index_get_bypath

from php-git.

gwijayas avatar gwijayas commented on July 1, 2024

I got the same message with php 5.4 stock from Ubuntu 12.10. Buat load successfully with php 5.3.18 install personally

from php-git.

gwijayas avatar gwijayas commented on July 1, 2024

ups. My error only happen if using libgit2 from their repo, not from this repo. . Succefully compiled on 5.4.10 and 5.3.20. But if using libgit2 repo, failed on both php

from php-git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.