Code Monkey home page Code Monkey logo

Comments (10)

chobie avatar chobie commented on June 16, 2024

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.

abtris avatar abtris commented on June 16, 2024

Not problem, thx for reply

from php-git.

chobie avatar chobie commented on June 16, 2024

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.

abtris avatar abtris commented on June 16, 2024

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.

chobie avatar chobie commented on June 16, 2024

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.

evilpingus avatar evilpingus commented on June 16, 2024

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.

evilpingus avatar evilpingus commented on June 16, 2024

Sorry guys nevermind, I compiled module and seems like successfully loaded.

from php-git.

chobie avatar chobie commented on June 16, 2024

@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.

yijia2413 avatar yijia2413 commented on June 16, 2024

I got the same problem and need some help...my friend.

from php-git.

chobie avatar chobie commented on June 16, 2024

@yijia2413 have you checked latest branch? (https://github.com/libgit2/php-git/tree/functions)

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.