{"thread":{"id":"537","subject":"Make errors","startedAt":"2005-05-08T19:35:04Z","lastAt":"2005-05-08T19:57:40Z","messageCount":5,"participants":["John Kacur","Daniel Barkalow","Thomas Glanzmann","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"2805","messageId":"1115580904.5536.28.camel@linux.site","threadId":"537","inReplyTo":null,"subject":"Make errors","fromName":"John Kacur","fromEmail":"jkacur@rogers.com","sentAt":"2005-05-08T19:35:04Z","receivedAt":"2005-05-08T19:35:04Z","isPatch":false,"sender":{"key":"jkacur@rogers.com","avatar":null},"body":"Ok, I'm coming late to the git game, and having some build problems.\nMy machine is amd64 (athlon64), and I fetched both\n\ngit-0.7.tar.bz2\ncogito-0.9.tar.bz2\n\nThey both fail to build in a similar fashion\nFor example, I did\nbunzip2 -c git-0.7.tar.bz2 | tar xvf -\ncd git-0.7\nexport PATH=$PWD:$PATH\nmake\n\nand it fails here:\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-convert-cache\nconvert-c\nache.c libgit.a -lz -lssl\nconvert-cache.c: In function `write_subdirectory':\nconvert-cache.c:102: warning: field precision is not type int (arg 4)\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull\nhttp-pull.c l\nibgit.a -lz -lssl -lcurl\nhttp-pull.c:10:23: curl/curl.h: No such file or directory\nhttp-pull.c:11:23: curl/easy.h: No such file or directory\nhttp-pull.c:13: error: parse error before '*' token\n\nAny hints?\n\nThanks in advance\n\nThe entire build output is attached:\n\n\n\n\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o read-cache.o read-cache.c\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o sha1_file.o sha1_file.c\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o usage.o usage.c\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o object.o object.c\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o commit.o commit.c\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o tree.o tree.c\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o blob.o blob.c\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o tag.o tag.c\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o strbuf.o strbuf.c\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>'   -c -o diff.o diff.c\nar 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\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-update-cache update-cache.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-diff-files diff-files.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-init-db init-db.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-write-tree write-tree.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-read-tree read-tree.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-commit-tree commit-tree.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-cat-file cat-file.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-fsck-cache fsck-cache.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-checkout-cache checkout-cache.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-diff-tree diff-tree.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-rev-tree rev-tree.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-show-files show-files.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-check-files check-files.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-ls-tree ls-tree.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-merge-base merge-base.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-merge-cache merge-cache.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-unpack-file unpack-file.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-export export.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-diff-cache diff-cache.c libgit.a -lz -lssl\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-convert-cache convert-cache.c libgit.a -lz -lssl\nconvert-cache.c: In function `write_subdirectory':\nconvert-cache.c:102: warning: field precision is not type int (arg 4)\ngcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull http-pull.c libgit.a -lz -lssl -lcurl\nhttp-pull.c:10:23: curl/curl.h: No such file or directory\nhttp-pull.c:11:23: curl/easy.h: No such file or directory\nhttp-pull.c:13: error: parse error before '*' token\nhttp-pull.c:13: warning: type defaults to `int' in declaration of `curl'\nhttp-pull.c:13: warning: data definition has no type or storage class\nhttp-pull.c: In function `fetch':\nhttp-pull.c:73: warning: implicit declaration of function `curl_easy_setopt'\nhttp-pull.c:73: error: `CURLOPT_FILE' undeclared (first use in this function)\nhttp-pull.c:73: error: (Each undeclared identifier is reported only once\nhttp-pull.c:73: error: for each function it appears in.)\nhttp-pull.c:74: error: `CURLOPT_WRITEFUNCTION' undeclared (first use in this function)\nhttp-pull.c:86: error: `CURLOPT_URL' undeclared (first use in this function)\nhttp-pull.c:90: warning: implicit declaration of function `curl_easy_perform'\nhttp-pull.c: In function `main':\nhttp-pull.c:191: warning: implicit declaration of function `curl_global_init'\nhttp-pull.c:191: error: `CURL_GLOBAL_ALL' undeclared (first use in this function)\nhttp-pull.c:193: warning: implicit declaration of function `curl_easy_init'\nhttp-pull.c:193: warning: assignment makes pointer from integer without a cast\nhttp-pull.c:202: warning: implicit declaration of function `curl_global_cleanup'\nmake: *** [git-http-pull] Error 1\n"},{"id":"2807","messageId":"Pine.LNX.4.21.0505081538110.30848-100000@iabervon.org","threadId":"537","inReplyTo":"1115580904.5536.28.camel@linux.site","subject":"Re: Make errors","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2005-05-08T19:43:15Z","receivedAt":"2005-05-08T19:43:15Z","isPatch":false,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"On Sun, 8 May 2005, John Kacur wrote:\n\n> gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull\n> http-pull.c libgit.a -lz -lssl -lcurl\n> http-pull.c:10:23: curl/curl.h: No such file or directory\n> http-pull.c:11:23: curl/easy.h: No such file or directory\n> http-pull.c:13: error: parse error before '*' token\n\nYou need to either install libcurl or remove \"git-http-pull\" from PROGS in\nthe Makefile. libcurl provides the HTTP implementation used to download\nheads hosted on websites.\n\n\t-Daniel\n*This .sig left intentionally blank*\n\n"},{"id":"2808","messageId":"20050508194326.GD6347@cip.informatik.uni-erlangen.de","threadId":"537","inReplyTo":"1115580904.5536.28.camel@linux.site","subject":"Re: Make errors","fromName":"Thomas Glanzmann","fromEmail":"sithglan@stud.uni-erlangen.de","sentAt":"2005-05-08T19:43:26Z","receivedAt":"2005-05-08T19:43:26Z","isPatch":false,"sender":{"key":"sithglan@stud.uni-erlangen.de","avatar":null},"body":"Hello John,\n\n> http-pull.c:10:23: curl/curl.h: No such file or directory\n> http-pull.c:11:23: curl/easy.h: No such file or directory\n> http-pull.c:13: error: parse error before '*' token\n\nInstall curl + curl development package. Your compiler complains that it\ncan't find the header files for libcurl.\n\n\tThomas\n"},{"id":"2809","messageId":"20050508194657.GF9495@pasky.ji.cz","threadId":"537","inReplyTo":"1115580904.5536.28.camel@linux.site","subject":"Re: Make errors","fromName":"Petr Baudis","fromEmail":"pasky@ucw.cz","sentAt":"2005-05-08T19:46:57Z","receivedAt":"2005-05-08T19:46:57Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Sun, May 08, 2005 at 09:35:04PM CEST, I got a letter\nwhere John Kacur <jkacur@rogers.com> told me that...\n> gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-convert-cache\n> convert-c\n> ache.c libgit.a -lz -lssl\n> convert-cache.c: In function `write_subdirectory':\n> convert-cache.c:102: warning: field precision is not type int (arg 4)\n\nI'm not sure how serious this is in practice.\n\n> gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull\n> http-pull.c l\n> ibgit.a -lz -lssl -lcurl\n> http-pull.c:10:23: curl/curl.h: No such file or directory\n> http-pull.c:11:23: curl/easy.h: No such file or directory\n> http-pull.c:13: error: parse error before '*' token\n\nYou need curl in order to compile http-pull. It is not a core part of\ngit, so if you just remove it from the makefile, things should work as\nlong as you don't want to pull over http. (You can pull Linus' and my\ntrees over rsync, not sure about Junio - I *think* he is http-only.)\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nC++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor\n"},{"id":"2819","messageId":"1115582260.5536.30.camel@linux.site","threadId":"537","inReplyTo":"Pine.LNX.4.21.0505081538110.30848-100000@iabervon.org","subject":"Re: Make errors","fromName":"John Kacur","fromEmail":"jkacur@rogers.com","sentAt":"2005-05-08T19:57:40Z","receivedAt":"2005-05-08T19:57:40Z","isPatch":false,"sender":{"key":"jkacur@rogers.com","avatar":null},"body":"On Sun, 2005-05-08 at 15:43, Daniel Barkalow wrote:\n> On Sun, 8 May 2005, John Kacur wrote:\n> \n> > gcc -g -O2 -Wall '-DSHA1_HEADER=<openssl/sha.h>' -o git-http-pull\n> > http-pull.c libgit.a -lz -lssl -lcurl\n> > http-pull.c:10:23: curl/curl.h: No such file or directory\n> > http-pull.c:11:23: curl/easy.h: No such file or directory\n> > http-pull.c:13: error: parse error before '*' token\n> \n> You need to either install libcurl or remove \"git-http-pull\" from PROGS in\n> the Makefile. libcurl provides the HTTP implementation used to download\n> heads hosted on websites.\n> \n> \t-Daniel\n> *This .sig left intentionally blank*\n> \n\nThank you, indeed it compiled fine after installing the curl-devel rpm\n\n"}]}