* Make errors
@ 2005-05-08 19:35 John Kacur
2005-05-08 19:43 ` Daniel Barkalow
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: John Kacur @ 2005-05-08 19:35 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 890 bytes --]
Ok, I'm coming late to the git game, and having some build problems.
My machine is amd64 (athlon64), and I fetched both
git-0.7.tar.bz2
cogito-0.9.tar.bz2
They both fail to build in a similar fashion
For example, I did
bunzip2 -c git-0.7.tar.bz2 | tar xvf -
cd git-0.7
export PATH=$PWD:$PATH
make
and it fails here:
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-convert-cache
convert-c
ache.c libgit.a -lz -lssl
convert-cache.c: In function `write_subdirectory':
convert-cache.c:102: warning: field precision is not type int (arg 4)
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull
http-pull.c l
ibgit.a -lz -lssl -lcurl
http-pull.c:10:23: curl/curl.h: No such file or directory
http-pull.c:11:23: curl/easy.h: No such file or directory
http-pull.c:13: error: parse error before '*' token
Any hints?
Thanks in advance
The entire build output is attached:
[-- Attachment #2: out.txt --]
[-- Type: text/plain, Size: 4381 bytes --]
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o read-cache.o read-cache.c
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o sha1_file.o sha1_file.c
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o usage.o usage.c
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o object.o object.c
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o commit.o commit.c
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o tree.o tree.c
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o blob.o blob.c
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o tag.o tag.c
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o strbuf.o strbuf.c
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -c -o diff.o diff.c
ar rcs libgit.a read-cache.o sha1_file.o usage.o object.o commit.o tree.o blob.o tag.o strbuf.o diff.o
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-update-cache update-cache.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-diff-files diff-files.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-init-db init-db.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-write-tree write-tree.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-read-tree read-tree.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-commit-tree commit-tree.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-cat-file cat-file.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-fsck-cache fsck-cache.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-checkout-cache checkout-cache.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-diff-tree diff-tree.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-rev-tree rev-tree.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-show-files show-files.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-check-files check-files.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-ls-tree ls-tree.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-merge-base merge-base.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-merge-cache merge-cache.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-unpack-file unpack-file.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-export export.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-diff-cache diff-cache.c libgit.a -lz -lssl
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-convert-cache convert-cache.c libgit.a -lz -lssl
convert-cache.c: In function `write_subdirectory':
convert-cache.c:102: warning: field precision is not type int (arg 4)
gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull http-pull.c libgit.a -lz -lssl -lcurl
http-pull.c:10:23: curl/curl.h: No such file or directory
http-pull.c:11:23: curl/easy.h: No such file or directory
http-pull.c:13: error: parse error before '*' token
http-pull.c:13: warning: type defaults to `int' in declaration of `curl'
http-pull.c:13: warning: data definition has no type or storage class
http-pull.c: In function `fetch':
http-pull.c:73: warning: implicit declaration of function `curl_easy_setopt'
http-pull.c:73: error: `CURLOPT_FILE' undeclared (first use in this function)
http-pull.c:73: error: (Each undeclared identifier is reported only once
http-pull.c:73: error: for each function it appears in.)
http-pull.c:74: error: `CURLOPT_WRITEFUNCTION' undeclared (first use in this function)
http-pull.c:86: error: `CURLOPT_URL' undeclared (first use in this function)
http-pull.c:90: warning: implicit declaration of function `curl_easy_perform'
http-pull.c: In function `main':
http-pull.c:191: warning: implicit declaration of function `curl_global_init'
http-pull.c:191: error: `CURL_GLOBAL_ALL' undeclared (first use in this function)
http-pull.c:193: warning: implicit declaration of function `curl_easy_init'
http-pull.c:193: warning: assignment makes pointer from integer without a cast
http-pull.c:202: warning: implicit declaration of function `curl_global_cleanup'
make: *** [git-http-pull] Error 1
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Make errors
2005-05-08 19:35 Make errors John Kacur
@ 2005-05-08 19:43 ` Daniel Barkalow
2005-05-08 19:57 ` John Kacur
2005-05-08 19:43 ` Thomas Glanzmann
2005-05-08 19:46 ` Petr Baudis
2 siblings, 1 reply; 5+ messages in thread
From: Daniel Barkalow @ 2005-05-08 19:43 UTC (permalink / raw)
To: John Kacur; +Cc: git
On Sun, 8 May 2005, John Kacur wrote:
> gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull
> http-pull.c libgit.a -lz -lssl -lcurl
> http-pull.c:10:23: curl/curl.h: No such file or directory
> http-pull.c:11:23: curl/easy.h: No such file or directory
> http-pull.c:13: error: parse error before '*' token
You need to either install libcurl or remove "git-http-pull" from PROGS in
the Makefile. libcurl provides the HTTP implementation used to download
heads hosted on websites.
-Daniel
*This .sig left intentionally blank*
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Make errors
2005-05-08 19:43 ` Daniel Barkalow
@ 2005-05-08 19:57 ` John Kacur
0 siblings, 0 replies; 5+ messages in thread
From: John Kacur @ 2005-05-08 19:57 UTC (permalink / raw)
To: Daniel Barkalow; +Cc: git
On Sun, 2005-05-08 at 15:43, Daniel Barkalow wrote:
> On Sun, 8 May 2005, John Kacur wrote:
>
> > gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull
> > http-pull.c libgit.a -lz -lssl -lcurl
> > http-pull.c:10:23: curl/curl.h: No such file or directory
> > http-pull.c:11:23: curl/easy.h: No such file or directory
> > http-pull.c:13: error: parse error before '*' token
>
> You need to either install libcurl or remove "git-http-pull" from PROGS in
> the Makefile. libcurl provides the HTTP implementation used to download
> heads hosted on websites.
>
> -Daniel
> *This .sig left intentionally blank*
>
Thank you, indeed it compiled fine after installing the curl-devel rpm
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Make errors
2005-05-08 19:35 Make errors John Kacur
2005-05-08 19:43 ` Daniel Barkalow
@ 2005-05-08 19:43 ` Thomas Glanzmann
2005-05-08 19:46 ` Petr Baudis
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Glanzmann @ 2005-05-08 19:43 UTC (permalink / raw)
To: git
Hello John,
> http-pull.c:10:23: curl/curl.h: No such file or directory
> http-pull.c:11:23: curl/easy.h: No such file or directory
> http-pull.c:13: error: parse error before '*' token
Install curl + curl development package. Your compiler complains that it
can't find the header files for libcurl.
Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Make errors
2005-05-08 19:35 Make errors John Kacur
2005-05-08 19:43 ` Daniel Barkalow
2005-05-08 19:43 ` Thomas Glanzmann
@ 2005-05-08 19:46 ` Petr Baudis
2 siblings, 0 replies; 5+ messages in thread
From: Petr Baudis @ 2005-05-08 19:46 UTC (permalink / raw)
To: John Kacur; +Cc: git
Dear diary, on Sun, May 08, 2005 at 09:35:04PM CEST, I got a letter
where John Kacur <jkacur@rogers.com> told me that...
> gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-convert-cache
> convert-c
> ache.c libgit.a -lz -lssl
> convert-cache.c: In function `write_subdirectory':
> convert-cache.c:102: warning: field precision is not type int (arg 4)
I'm not sure how serious this is in practice.
> gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull
> http-pull.c l
> ibgit.a -lz -lssl -lcurl
> http-pull.c:10:23: curl/curl.h: No such file or directory
> http-pull.c:11:23: curl/easy.h: No such file or directory
> http-pull.c:13: error: parse error before '*' token
You need curl in order to compile http-pull. It is not a core part of
git, so if you just remove it from the makefile, things should work as
long as you don't want to pull over http. (You can pull Linus' and my
trees over rsync, not sure about Junio - I *think* he is http-only.)
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-05-08 20:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-08 19:35 Make errors John Kacur
2005-05-08 19:43 ` Daniel Barkalow
2005-05-08 19:57 ` John Kacur
2005-05-08 19:43 ` Thomas Glanzmann
2005-05-08 19:46 ` Petr Baudis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox