git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: recent patch breaks the build ?

From
AWAndrew Wozniak <awozniak@mc.com>
Date
Nov 16, 2005, 19:47 UTC
Message-ID
<437B8CEC.8040002@mc.com>
In-Reply-To
<7v64qs8kuo.fsf@assigned-by-dhcp.cox.net>

Yes, that suggestion worked - it is similar to other code fragments and ifdefs within the same file.

Unfortunately, now there are other failures:

gcc -o http-push.o -c -g -O2 -Wall -DSHA1_HEADER='<openssl/sha.h>' http-push.c http-push.c: In function `start_mkcol': http-push.c:479: `CURLOPT_HTTPGET' undeclared (first use in this function) http-push.c:479: (Each undeclared identifier is reported only once http-push.c:479: for each function it appears in.) http-push.c: In function `start_move': http-push.c:581: `CURLOPT_HTTPGET' undeclared (first use in this function) http-push.c: In function `refresh_lock': http-push.c:615: `CURLOPT_HTTPGET' undeclared (first use in this function) http-push.c: In function `fetch_index': http-push.c:890: `CURLOPT_HTTPGET' undeclared (first use in this function) http-push.c: In function `lock_remote': http-push.c:1215: `CURLOPT_HTTPGET' undeclared (first use in this function) http-push.c: In function `main':

I grep'd for these defines and they are nowhere to be found! Is some other package needed to resolve these undefines on my RH7.2 build host?

I'm really surprised that the unmodified tarball source fails to build. Just curious, is the git project rebuilt on a "nightly" basis to verify recent patches?

Thanks again, Andrew
Junio C Hamano wrote:
Show 36 quoted lines
> Andrew Wozniak <awozniak@mc.com> writes:
> 
>> Have just started using git for u-boot related development. After 
>> downloading git-snapshot-20051116 tarball and attempting a build under 
>> RH7.2, I get the following failure:
> 
> Would this help?
> 
> -- >8 --
> 
> diff --git a/http-fetch.c b/http-fetch.c
> index 21cc1b9..45e97f9 100644
> --- a/http-fetch.c
> +++ b/http-fetch.c
> @@ -902,16 +902,18 @@ static void fetch_alternates(char *base)
>  	char *data;
>  	struct active_request_slot *slot;
>  	static struct alt_request alt_req;
> -	int num_transfers;
>  
> +#ifdef USE_CURL_MULTI
>  	/* If another request has already started fetching alternates,
>  	   wait for them to arrive and return to processing this request's
>  	   curl message */
>  	while (got_alternates == 0) {
> +		int num_transfers;
>  		curl_multi_perform(curlm, &num_transfers);
>  		process_curl_messages();
>  		process_request_queue();
>  	}
> +#endif
>  
>  	/* Nothing to do if they've already been fetched */
>  	if (got_alternates == 1)
> 
> 
Previous: Junio C HamanoNext: Andreas Ericsson
Message 3 of 15 in “recent patch breaks the build ?”
  1. Andrew WozniakNov 16, 2005
  2. Junio C HamanoNov 16, 2005
  3. Andrew WozniakNov 16, 2005
  4. Andreas EricssonNov 16, 2005
  5. Junio C HamanoNov 16, 2005
  6. Nick HengeveldNov 16, 2005
  7. Johannes SchindelinNov 16, 2005
  8. Nick HengeveldNov 17, 2005
  9. Junio C HamanoNov 17, 2005
  10. Nick HengeveldNov 17, 2005
  11. Junio C HamanoNov 17, 2005
  12. Johannes SchindelinNov 17, 2005
  13. Johannes SchindelinNov 17, 2005
  14. Nick HengeveldNov 17, 2005
  15. Johannes SchindelinNov 17, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.