Comments (10)
Hi abtris,
sorry, i forgot implment thread safe support.
i'll try to setup environment and check that on this weekend.
Would you wait until the update?
Cheers,
Shuhei
from php-git.
Not problem, thx for reply
from php-git.
I've just fixed this probrem.could you try to compile php-git with v0.2.1?
https://github.com/libgit2/php-git/tree/v0.2.1
from php-git.
i update from git and make:
/bin/bash /home/prskavecl/Sites/php-git/src/libtool --mode=compile cc -I. -I/home/prskavecl/Sites/php-git/src -DPHP_ATOM_INC -I/home/prskavecl/Sites/php-git/src/include -I/home/prskavecl/Sites/php-git/src/main -I/home/prskavecl/Sites/php-git/src -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 -c /home/prskavecl/Sites/php-git/src/php_git.c -o php_git.lo
libtool: compile: cc -I. -I/home/prskavecl/Sites/php-git/src -DPHP_ATOM_INC -I/home/prskavecl/Sites/php-git/src/include -I/home/prskavecl/Sites/php-git/src/main -I/home/prskavecl/Sites/php-git/src -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 -c /home/prskavecl/Sites/php-git/src/php_git.c -fPIC -DPIC -o .libs/php_git.o
In file included from /home/prskavecl/Sites/php-git/src/php_git.c:25:
/home/prskavecl/Sites/php-git/src/php_git.h:123: error: expected specifier-qualifier-list before ‘git_rawobj’
make: *** [php_git.lo] Error 1
from php-git.
oh, i see. did you use libgit2 development branch?
libgit2 development branch has many API changes. so php-git requires libgit2 v0.10.0
https://github.com/libgit2/libgit2/tree/v0.10.0
try to following install process
git clone https://github.com/libgit2/libgit2.git libgit2
cd libgit2
git checkout v0.10.0
./waf configure && ./waf build-shared
sudo ./waf install-shared
cd ..
git clone https://github.com/libgit2/php-git.git php-git
cd php-git
git checkout v0.2.1
cd src
phpize
./configure && make
sudo make install
from php-git.
ubuntu 10.04
2.6.32-33-server
Im trying to compile php-git by following instruction above, but no avail.
git clone https://github.com/libgit2/libgit2.git
cd libgit2
git checkout v0.10.0
./waf configure && ./waf build-shared && ./waf install-shared
git clone https://github.com/libgit2/php-git.git
cd php-git/src
phpize
./configure
make
/root/git/php-git/src/commit.c: In function ‘zim_git_commit_getTree’:
/root/git/php-git/src/commit.c:305: warning: passing argument 1 of ‘git_commit_tree’ from incompatible pointer type
/usr/local/include/git2/commit.h:129: note: expected ‘struct git_tree *’ but argument is of type ‘struct git_commit *’
/root/git/php-git/src/commit.c:305: error: too few arguments to function ‘git_commit_tree’
/root/git/php-git/src/commit.c: In function ‘zim_git_commit_getParent’:
/root/git/php-git/src/commit.c:365: warning: passing argument 1 of ‘git_commit_parent’ from incompatible pointer type
/usr/local/include/git2/commit.h:147: note: expected ‘struct git_commit *’ but argument is of type ‘struct git_commit ’
/root/git/php-git/src/commit.c:365: warning: passing argument 2 of ‘git_commit_parent’ makes pointer from integer without a cast
/usr/local/include/git2/commit.h:147: note: expected ‘struct git_commit *’ but argument is of type ‘int’
/root/git/php-git/src/commit.c:365: error: too few arguments to function ‘git_commit_parent’
make: ** [commit.lo] Error 1
Once I try v0.2.1 branch, I get erred as branch info is not in packed-refs file:
cd php-git
git checkout v0.2.1
error: pathspec 'v0.2.1' did not match any file(s) known to git.
Also Im interested if php-git module will be able to clone and pull via smart http with authentication.
Cheers
from php-git.
Sorry guys nevermind, I compiled module and seems like successfully loaded.
from php-git.
@evilpingus thank you reporting. i'll re-check this issue when i have a chance.
i really want to wrap network feature asap but i have to prepare our marriage.
i'll try to make some coding time if i get a chance. please wait
from php-git.
I got the same problem and need some help...my friend.
from php-git.
@yijia2413 have you checked latest branch? (https://github.com/libgit2/php-git/tree/functions)
from php-git.
Related Issues (20)
- this project will update? HOT 2
- error on make: make: *** [reference.lo] Error 1 HOT 8
- PHP extension is not loaded HOT 6
- git_tree_lookup - The requested type does not match the type in the ODB HOT 2
- README instructions for compiling HOT 2
- Version bump to 0.3.0 ?
- Getting php-git up to date HOT 8
- Automated make test failed submission HOT 1
- [run-test.php report]
- How can I stage lines and hunks?
- HELP: Cannot run any of the PHP Git related commands! HOT 2
- Cmake File Error
- Undefined function git_branch_name() HOT 1
- Calling git_treebuilder_create causes seg fault
- git_remote_connect returns false
- working on PHP7 version of php-git HOT 2
- Unable to load dynamic library - http_errno_description is Unknown
- Bindings updated to a recent version libgit2?
- git_clone Segmentation fault
- PHP 8 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-git.