Compiling git-snapshot-20069831
Hello,
I enclose here the file that includes error messages.
Best regards,
Jorma Karvonen
[email protected]
Hello,
I tried to compile (with gcc 4.0.3) git-snapshot-20060831 and got the following error messges:
make --prefix=/usr/local
mailinfo.o: In funtion 'convert_to_utf8':git-snapshot-20060831/mailinfo.c:482: undefined reference to 'libiconv_open' git-snapshot-20060831/mailinfo.c:503: undefined reference to 'libiconv' git-snapshot-20060831/mailinfo.c:504: undefined reference to 'libiconv_close'
collect2: ld returned 1 exit status
then I tried make --prefix=/usr/local NEEDS_LIBICONV=1 and got the following error messsages:
In file included from http.c:1:
http.h:6:23: error: curl/curl.h: Tiedostoa tai hakemistoa ei ole http.h:7:23: error: curl/easy.h: Tiedostoa tai hakemistoa ei ole
In file included from http.c:1:
http.h:27: error: syntax error before 'CURLcode'
http.h:27: warning: no semicolon at end of struct or union
http.h:29: error: syntax error before '}' token
http.h:33: error: syntax error before 'CURL'
http.h:33: warning: no semicolon at end of struct or union
http.h:36: error: syntax error before 'curl_result'
http.h:36: warning: type defaults to 'int' in declaration of 'curl_result' http.h:36: warning: data definition has no type or storage class http.h:43: error: syntax error before '}' token
http.h:85: error: 'CURL_ERROR_SIZE' undeclared here (not in a function) http.c:163: error: syntax error before '*' token
http.c:164: warning: return type defaults to 'int'http.c: In function 'get_curl_handle':
http.c:165: error: 'CURL' undeclared (first use in this function) http.c:165: error: (Each undeclared identifier is reported only once http.c:165: error: for each function it appears in.)
http.c:165: error: 'result' undeclared (first use in this function) http.c:165: warning: implicit declaration of function 'curl_easy_init' http.c:167: warning: implicit declaration of function 'curl_easy_setopt' http.c:167: error: 'CURLOPT_SSL_VERIFYPEER' undeclared (first use in this function) http.c:173: error: 'CURLOPT_SSLCERT' undeclared (first use in this function) http.c:183: error: 'CURLOPT_CAINFO' undeclared (first use in this function) http.c:184: error: 'CURLOPT_FAILONERROR' undeclared (first use in this function) http.c:187: error: 'CURLOPT_LOW_SPEED_LIMIT' undeclared (first use in this function) http.c:189: error: 'CURLOPT_LOW_SPEED_TIME' undeclared (first use in this function) http.c:193: error: 'CURLOPT_FOLLOWLOCATION' undeclared (first use in this function) http.c:196: error: 'CURLOPT_VERBOSE' undeclared (first use in this function) http.c:198: error: 'CURLOPT_USERAGENT' undeclared (first use in this function) http.c: In function 'http_init':
http.c:210: warning: implicit declaration of function 'curl_slist_append' http.c:210: warning: assignment makes pointer from integer without a cast http.c:211: warning: assignment makes pointer from integer without a cast http.c: In function 'http_cleanup':
http.c:278: error: dereferencing pointer to incomplete type http.c:279: warning: implicit declaration of function 'curl_easy_cleanup' http.c:279: error: dereferencing pointer to incomplete type http.c:280: error: dereferencing pointer to incomplete typehttp.c: In function 'get_active_slot':
http.c:311: error: dereferencing pointer to incomplete type http.c:312: error: dereferencing pointer to incomplete type http.c:315: error: dereferencing pointer to incomplete type http.c:316: error: dereferencing pointer to incomplete type http.c:317: error: dereferencing pointer to incomplete type http.c:318: error: dereferencing pointer to incomplete type http.c:324: error: dereferencing pointer to incomplete type http.c:325: error: dereferencing pointer to incomplete type http.c:327: error: dereferencing pointer to incomplete type http.c:332: error: dereferencing pointer to incomplete type http.c:334: error: dereferencing pointer to incomplete type http.c:341: error: dereferencing pointer to incomplete type http.c:342: error: dereferencing pointer to incomplete type http.c:343: error: dereferencing pointer to incomplete type http.c:344: error: dereferencing pointer to incomplete type http.c:345: error: dereferencing pointer to incomplete type http.c:346: error: dereferencing pointer to incomplete type http.c:347: error: dereferencing pointer to incomplete type http.c:347: error: 'CURLOPT_HTTPHEADER' undeclared (first use in this function) http.c:348: error: dereferencing pointer to incomplete type http.c:349: error: dereferencing pointer to incomplete type http.c:349: error: 'CURLOPT_ERRORBUFFER' undeclared (first use in this function) http.c: In function 'run_active_slot':
http.c:421: error: dereferencing pointer to incomplete type http.c:422: error: dereferencing pointer to incomplete type http.c:422: warning: implicit declaration of function 'curl_easy_perform' http.c:422: error: dereferencing pointer to incomplete typehttp.c: In function 'closedown_active_slot':
http.c:431: error: dereferencing pointer to incomplete typehttp.c: In function 'release_active_slot':
http.c:437: error: dereferencing pointer to incomplete type http.c:438: warning: implicit declaration of function 'curl_multi_remove_handle' http.c:438: error: 'curlm' undeclared (first use in this function) http.c:438: error: dereferencing pointer to incomplete type http.c:439: error: dereferencing pointer to incomplete type http.c:440: error: dereferencing pointer to incomplete type http.c:442: warning: implicit declaration of function 'fill_active_slots' http.c: In function 'finish_active_slot':
http.c:448: warning: implicit declaration of function 'curl_easy_getinfo' http.c:448: error: dereferencing pointer to incomplete type http.c:448: error: 'CURLINFO_HTTP_CODE' undeclared (first use in this function) http.c:448: error: dereferencing pointer to incomplete type http.c:450: error: dereferencing pointer to incomplete type http.c:451: error: dereferencing pointer to incomplete type http.c:454: error: dereferencing pointer to incomplete type http.c:455: error: dereferencing pointer to incomplete type http.c:455: error: dereferencing pointer to incomplete type http.c:456: error: dereferencing pointer to incomplete type http.c:456: error: dereferencing pointer to incomplete type http.c:460: error: dereferencing pointer to incomplete type http.c:461: error: dereferencing pointer to incomplete type http.c:461: error: dereferencing pointer to incomplete typehttp.c: In function 'finish_all_active_slots':
http.c:470: error: dereferencing pointer to incomplete type http.c:474: error: dereferencing pointer to incomplete type
make: *** [http.o] Error 1
Best regards,
Jorma Karvonen
Hi,
since you do have a recent snapshot, why not try ./configure, as Pasky suggested?
BTW I cannot read Finnish, but it probably says that you do not have curl installed. configure would detect that, and automatically set NO_CURL=1.
Ciao,
Dscho
Quoted 11 lines · Johannes Schindelin
Hi,
since you do have a recent snapshot, why not try ./configure, as Pasky suggested?
BTW I cannot read Finnish, but it probably says that you do not have curl installed. configure would detect that, and automatically set NO_CURL=1.
Ciao,
Dscho
Sorry,
but I have not any git installed and there is no configure file in installing directory. It was the first thing I checked after extracting the git-snapshot-20060831.bz2 file. The INSTALL file does not mention the ./configure command, either.
When I tested
make NEEDS_LIBICONV=1 NO_CURL=1
the make succeeded but when trying make install I got error messages shown in the enclosed file.
Best regards,
Jorma Karvonen
karvjorm (at) users (dot) sourceforge (dot) net
make install;
/bin/sh: curl-config: command not found
gcc -o http.o -c -g -O2 -Wall -DSHA1_HEADER='<openssl/sha.h>' -DDEFAULT_GIT_TEMPLATE_DIR='"/root/share/git-core/templates/"' -DGIT_USER_AGENT='"git/1.3.GIT"' http.c In file included from http.c:1:
http.h:6:23: error: curl/curl.h: Tiedostoa tai hakemistoa ei ole (no file or directory)
http.h:7:23: error: curl/easy.h: Tiedostoa tai hakemistoa ei ole (no file or directory)
In file included from http.c:1:
http.h:27: error: syntax error before 'CURLcode'
http.h:27: warning: no semicolon at end of struct or union
http.h:29: error: syntax error before '}' token
http.h:33: error: syntax error before 'CURL'
http.h:33: warning: no semicolon at end of struct or union
http.h:36: error: syntax error before 'curl_result'
http.h:36: warning: type defaults to 'int' in declaration of 'curl_result'
http.h:36: warning: data definition has no type or storage class
http.h:43: error: syntax error before '}' token
http.h:85: error: 'CURL_ERROR_SIZE' undeclared here (not in a function)
http.c:163: error: syntax error before '*' token
http.c:164: warning: return type defaults to 'int'http.c: In function 'get_curl_handle':
http.c:165: error: 'CURL' undeclared (first use in this function)
http.c:165: error: (Each undeclared identifier is reported only once
http.c:165: error: for each function it appears in.)
http.c:165: error: 'result' undeclared (first use in this function)
http.c:165: warning: implicit declaration of function 'curl_easy_init'
http.c:167: warning: implicit declaration of function 'curl_easy_setopt'
http.c:167: error: 'CURLOPT_SSL_VERIFYPEER' undeclared (first use in this function)
http.c:173: error: 'CURLOPT_SSLCERT' undeclared (first use in this function)
http.c:183: error: 'CURLOPT_CAINFO' undeclared (first use in this function)
http.c:184: error: 'CURLOPT_FAILONERROR' undeclared (first use in this function)
http.c:187: error: 'CURLOPT_LOW_SPEED_LIMIT' undeclared (first use in this function)
http.c:189: error: 'CURLOPT_LOW_SPEED_TIME' undeclared (first use in this function)
http.c:193: error: 'CURLOPT_FOLLOWLOCATION' undeclared (first use in this function)
http.c:196: error: 'CURLOPT_VERBOSE' undeclared (first use in this function)
http.c:198: error: 'CURLOPT_USERAGENT' undeclared (first use in this function)http.c: In function 'http_init':
http.c:210: warning: implicit declaration of function 'curl_slist_append'
http.c:210: warning: assignment makes pointer from integer without a cast
http.c:211: warning: assignment makes pointer from integer without a casthttp.c: In function 'http_cleanup':
http.c:278: error: dereferencing pointer to incomplete type
http.c:279: warning: implicit declaration of function 'curl_easy_cleanup'
http.c:279: error: dereferencing pointer to incomplete type
http.c:280: error: dereferencing pointer to incomplete typehttp.c: In function 'get_active_slot':
http.c:311: error: dereferencing pointer to incomplete type
http.c:312: error: dereferencing pointer to incomplete type
http.c:315: error: dereferencing pointer to incomplete type
http.c:316: error: dereferencing pointer to incomplete type
http.c:317: error: dereferencing pointer to incomplete type
http.c:318: error: dereferencing pointer to incomplete type
http.c:324: error: dereferencing pointer to incomplete type
http.c:325: error: dereferencing pointer to incomplete type
http.c:327: error: dereferencing pointer to incomplete type
http.c:332: error: dereferencing pointer to incomplete type
http.c:334: error: dereferencing pointer to incomplete type
http.c:341: error: dereferencing pointer to incomplete type
http.c:342: error: dereferencing pointer to incomplete type
http.c:343: error: dereferencing pointer to incomplete type
http.c:344: error: dereferencing pointer to incomplete type
http.c:345: error: dereferencing pointer to incomplete type
http.c:346: error: dereferencing pointer to incomplete type
http.c:347: error: dereferencing pointer to incomplete type
http.c:347: error: 'CURLOPT_HTTPHEADER' undeclared (first use in this function)
http.c:348: error: dereferencing pointer to incomplete type
http.c:349: error: dereferencing pointer to incomplete type
http.c:349: error: 'CURLOPT_ERRORBUFFER' undeclared (first use in this function)http.c: In function 'run_active_slot':
http.c:421: error: dereferencing pointer to incomplete type
http.c:422: error: dereferencing pointer to incomplete type
http.c:422: warning: implicit declaration of function 'curl_easy_perform'
http.c:422: error: dereferencing pointer to incomplete typehttp.c: In function 'closedown_active_slot':
http.c:431: error: dereferencing pointer to incomplete typehttp.c: In function 'release_active_slot':
http.c:437: error: dereferencing pointer to incomplete type
http.c:438: warning: implicit declaration of function 'curl_multi_remove_handle'
http.c:438: error: 'curlm' undeclared (first use in this function)
http.c:438: error: dereferencing pointer to incomplete type
http.c:439: error: dereferencing pointer to incomplete type
http.c:440: error: dereferencing pointer to incomplete type
http.c:442: warning: implicit declaration of function 'fill_active_slots'http.c: In function 'finish_active_slot':
http.c:448: warning: implicit declaration of function 'curl_easy_getinfo'
http.c:448: error: dereferencing pointer to incomplete type
http.c:448: error: 'CURLINFO_HTTP_CODE' undeclared (first use in this function)
http.c:448: error: dereferencing pointer to incomplete type
http.c:450: error: dereferencing pointer to incomplete type
http.c:451: error: dereferencing pointer to incomplete type
http.c:454: error: dereferencing pointer to incomplete type
http.c:455: error: dereferencing pointer to incomplete type
http.c:455: error: dereferencing pointer to incomplete type
http.c:456: error: dereferencing pointer to incomplete type
http.c:456: error: dereferencing pointer to incomplete type
http.c:460: error: dereferencing pointer to incomplete type
http.c:461: error: dereferencing pointer to incomplete type
http.c:461: error: dereferencing pointer to incomplete typehttp.c: In function 'finish_all_active_slots':
http.c:470: error: dereferencing pointer to incomplete type
http.c:474: error: dereferencing pointer to incomplete type
make: *** [http.o] Error 1
Hi,
Quoted 14 lines · Jorma Karvonen
Quoted 13 lines · Johannes Schindelin
Hi,
since you do have a recent snapshot, why not try ./configure, as Pasky suggested?
BTW I cannot read Finnish, but it probably says that you do not have curl installed. configure would detect that, and automatically set NO_CURL=1.
Ciao,
Dscho
Quoted 4 lines
Sorry,
but I have not any git installed and there is no configure file in installing directory.
Ooops. As mentioned elsewhere, try "make configure" first.
Quoted 5 lines
When I tested
make NEEDS_LIBICONV=1 NO_CURL=1the make succeeded but when trying make install I got error messages shown in the enclosed file.
You forgot to say "NEEDS_LIBICONV=1 NO_CURL=1" with the "make install":
make NEEDS_LIBICONV=1 NO_CURL=1 install
This would not be necessary with ./configure, since it writes these settings into a file, which is read by "make".
Ciao,
Dscho
Quoted 21 lines · Johannes Schindelin
Hi,
Quoted 16 lines · Jorma Karvonen
Quoted 14 lines · Johannes Schindelin
Hi,
since you do have a recent snapshot, why not try ./configure, as Pasky suggested?
BTW I cannot read Finnish, but it probably says that you do not have curl installed. configure would detect that, and automatically set NO_CURL=1.
Ciao,
Dscho
Quoted 9 lines
Quoted 5 lines
Sorry,
but I have not any git installed and there is no configure file in installing directory.
Ooops. As mentioned elsewhere, try "make configure" first.
I tried
make configure
and got an error message:
/bin/sh: curl-config: command not found
make: **** No rule to make target `configure'. Stop.
Then I tried
make NEEDS_LIBICONV=1 NO_CURL=1 configure
and error message was: make: **** No rule to make target `configure'. Stop.
Quoted 8 lines
This would not be necessary with ./configure, since it writes these settings into a file, which is read by "make".
Ciao,
Dscho
Hi,
Quoted 8 lines · Jorma Karvonen
I tried
make configure
and got an error message:
/bin/sh: curl-config: command not found
make: **** No rule to make target `configure'. Stop.
Okay. I deem this a bug in our Makefile.
Could you please try "autoconf" and _then_ "./configure"?
Hth,
Dscho
Quoted 15 lines · Johannes Schindelin
Hi,
Quoted 9 lines · Jorma Karvonen
I tried
make configure
and got an error message:
/bin/sh: curl-config: command not found
make: **** No rule to make target `configure'. Stop.
Quoted 8 lines
Okay. I deem this a bug in our
Makefile.Could you please try "autoconf" and _then_ "./configure"?
Hth,
Dscho
Hi,
I tried autoconf and result was:
autoconf: no input file
Best regards,
Jorma Karvonen
karvjorm (at) users (dot) sourceforge (dot) net
Quoted 4 lines · Jorma Karvonen
Quoted 2 lines · Johannes Schindelin
On Thu, 31 Aug 2006, Jorma Karvonen wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
I tried
make configure
and got an error message:
/bin/sh: curl-config: command not found
make: **** No rule to make target `configure'. Stop.
The offending line seems to be
curl_check := $(shell (echo 070908; curl-config --vernum) | sort -r | sed -ne 2p)
and it is turned off if you always run make with NO_CURL=1. Or write NO_CURL=1 (or NO_CURL=YesPlease) in the config.mak file
Quoted 7 lines
Quoted 4 lines
Okay. I deem this a bug in our
Makefile.Could you please try "autoconf" and _then_ "./configure"?
I tried autoconf and result was:
autoconf: no input file
"autoconf -o configure configure.ac" then
By the way, from what directory you try to run make from? autoconf default input file is configure.ac, and AFAIK it is present in 'master' from quite some time, and perhaps in 'maint' as well.
What is in GIT-VERSION-FILE aftre running GIT-VERSION-GEN?
Below my results of running make configure in git/ working directory:
1047:jnareb@roke:~/git> make configureGIT_VERSION = 1.4.2.gf713
rm -f configure configure.ac+
sed -e 's/@@GIT_VERSION@@/1.4.2.gf713/g' \
configure.ac > configure.ac+
autoconf -o configure configure.ac+
rm -f configure.ac+
Signature · 3 lines
Jakub Narebski Warsaw, Poland ShadeHawk on #git
Quoted 15 lines · Johannes Schindelin
Hi,
Quoted 9 lines · Jorma Karvonen
I tried
make configure
and got an error message:
/bin/sh: curl-config: command not found
make: **** No rule to make target `configure'. Stop.
Quoted 8 lines
Okay. I deem this a bug in our
Makefile.Could you please try "autoconf" and _then_ "./configure"?
Hth,
Dscho
Hi,
I tried git-snapshot-20060901 and everything is now OK.
make prefix=/usr/local NEEDS_LIBICONV=1 NO_CURL=1
and
make prefix=/usr/local NEEDS_LIBICONV=1 NO_CURL=1 install
were the correct commands and git is now installed.
Thank you very much,
Jorma Karvonen
Quoted 8 lines · Jorma Karvonen
Quoted 5 lines · Johannes Schindelin
since you do have a recent snapshot, why not try ./configure, as Pasky suggested?
BTW I cannot read Finnish, but it probably says that you do not have curl installed. configure would detect that, and automatically set NO_CURL=1.
Quoted 8 lines
Sorry,
but I have not any git installed and there is no configure file in installing directory. It was the first thing I checked after extracting the git-snapshot-20060831.bz2 file. The INSTALL file does not mention the ./configure command, either.
From INSTALL file, 'maint' branch:
Alternatively you can use autoconf generated ./configure script to set up install paths (via config.mak.autogen), so you can write instead
$ autoconf ;# as yourself if ./configure doesn't exist yet
$ ./configure --prefix=/usr ;# as yourself
$ make all doc ;# as yourself
# make install install-doc ;# as rootQuoted 1 line
From INSTALL file, 'next' and 'master' branches (here since 2006-08-08):
Alternatively you can use autoconf generated ./configure script to set up install paths (via config.mak.autogen), so you can write instead
$ make configure ;# as yourself
$ ./configure --prefix=/usr ;# as yourself
$ make all doc ;# as yourself
# make install install-doc ;# as rootQuoted 6 lines
When I tested
make NEEDS_LIBICONV=1 NO_CURL=1
the make succeeded but when trying make install I got error messages shown in the enclosed file.
Try then
$ NEEDS_LIBICONV=YesPlease NO_CURL=YesPlease make
Signature · 3 lines
Jakub Narebski Warsaw, Poland ShadeHawk on #git
Quoted 11 lines · Jakub Narebski
Quoted 5 lines · Jorma Karvonen
When I tested
make NEEDS_LIBICONV=1 NO_CURL=1
the make succeeded but when trying make install I got error messages shown in the enclosed file.
Try then
$ NEEDS_LIBICONV=YesPlease NO_CURL=YesPlease make
I think you meant
$ make NEEDS_LIBICONV=YesPlease NO_CURL=YesPlease install
there, Jakub.
Jorma, since the Makefile has no ideas on state, it only notices that some files it needs to make a complete install with the parameters you're passing it when also passing 'install' are missing, it tries to build them, but without the NEEDS_LIBICONV and NO_CURL flags. Pass them both when doing normal 'make' and when doing 'make install' and you'll be fine. You might also want to check if your distribution provides a pre-compiled package. If that's the case, you should be able to get away with something easy such as
$ apt-get install git
or
$ yum install git
Good luck
Signature · 3 lines
Andreas Ericsson [email protected] OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231
Quoted 2 lines · Johannes Schindelin
BTW I cannot read Finnish
Tssk, tssk. Bad Dscho.
"Tiedostoa tai hakemistoa ei ole" just means "No such file or directory".
EVERYBODY knows that.
It's not like there's even a single ä or ö in the whole sentence, so you can't even blame the strange letters (and that's unusual, since in Finnish, usually every other letter is 'ä' if only just to confuse the uninitiated).
Linus
Hi,
Quoted 9 lines · Linus Torvalds
Quoted 2 lines · Johannes Schindelin
BTW I cannot read Finnish
Tssk, tssk. Bad Dscho.
"Tiedostoa tai hakemistoa ei ole" just means "No such file or directory".
EVERYBODY knows that.
Ouch.
Well, I lied. I could _read_ it. But I did not _understand_ it.
If I had read something along the lines of "Des is owwer ned douh!", I'd stand a chance to understand it.
Honestly, give me something like German, French, Italian, even Swedish or Franconian, I'll happily read and understand it. And you only understand it because you happened to live there, and besides drinks and sauna, there is nothing more interesting than this language consisting of multi-syllable words ;-)
Ciao,
Dscho
Quoted 4 lines · Johannes Schindelin
since you do have a recent snapshot, why not try ./configure, as Pasky suggested?
BTW I cannot read Finnish, but (...)
So when sending error codes it would be better to set LC_ALL=C (or equivalent) before producing and sending error message.
Quoted 2 lines
(...) it probably says that you do not have curl
installed. configure would detect that, and automatically set NO_CURL=1.
Without curl http:// and https:// transports won't work. So you perhaps want to install curl instead.
Quoted 1 line
From INSTALL:
Alternatively you can use autoconf generated ./configure script to set up install paths (via config.mak.autogen), so you can write instead
$ make configure ;# as yourself, if configure does not exist
$ ./configure --prefix=/usr ;# as yourself
$ make all doc ;# as yourself
# make install install-doc ;# as rootSignature · 3 lines
Jakub Narebski Warsaw, Poland ShadeHawk on #git