Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.os2.programmer.porting > #162
| From | Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> |
|---|---|
| Newsgroups | comp.os.os2.programmer.porting |
| Subject | building Lighttpd 1.4.30 using gcc 4.4.6: ___builtin_stdarg_start referenced |
| Date | 2011-12-25 23:10 -0500 |
| Organization | Netfront http://www.netfront.net/ |
| Message-ID | <jd8s3o$pkk$1@adenine.netfront.net> (permalink) |
Greetings, all...
It would surely be more fun building things if I could actually get
something to work every now and again. ;-) If I couldn't do this on
Linux with some success, I would probably chalk it up to my own lack of
ability. Anyway...
Trying to build the above, running make, I get:
lemon.c: In function 'ErrorMsg':
lemon.c:1305: warning: implicit declaration of function
'__builtin_stdarg_start'
lemon.c:1305: warning: 'ap' is used uninitialized in this function
mv -f .deps/lemon.Tpo .deps/lemon.Po
ash.exe ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -W -Wshadow
-pedant
ic -std=gnu99 -o lemon.exe lemon.o
libtool: link: gcc -g -O2 -Wall -W -Wshadow -pedantic -std=gnu99 -o
lemon.exe le
mon.o
lemon.c:1305 (lemon.o): Undefined symbol ___builtin_stdarg_start
referenced from
text segment
gcc: Internal error: Hangup (program ld.exe)
My reading of some gcc info tells me that ___builtin_stdarg_start was
deprecated by 2008 or so (see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35460), and in fact, line
1305 of lemon.c references va_start:
va_start(ap, format);
/* Prepare a prefix to be prepended to every output line */
if( lineno>0 ){
sprintf(prefix,"%.*s:%d: ",PREFIXLIMIT-10,filename,lineno);
}else{
sprintf(prefix,"%.*s: ",PREFIXLIMIT-10,filename);
}
prefixsize = strlen(prefix);
availablewidth = LINEWIDTH - prefixsize;
/* Generate the error message */
vsprintf(errmsg,format,ap);
va_end(ap);
errmsgsize = strlen(errmsg);
/* Remove trailing '\n's from the error message. */
while( errmsgsize>0 && errmsg[errmsgsize-1]=='\n' ){
errmsg[--errmsgsize] = 0;
}
I've tried this both with Paul's packaged gcc446 (and the included
gcc446.cmd, edited to reference j: instead of u:, to fit my setup), and
with the 4.4.6 build installed via yum (which was no mean feat, as
"/usr/lib/libiberty.a from install of gcc-4.4.6-11.oc00.i386 conflicts
with file from package binutils-static-2.21-1.oc00.i386" - I finally
forced it).
Anyway, I get the same stall using either gcc 4.4.6. Is
___builtin_stdarg_start defined (incorrectly) somewhere?
TIA
--
Lewis
-------------------------------------------------------------
Lewis G Rosenthal, CNA, CLP, CLE, CWTS
Rosenthal & Rosenthal, LLC www.2rosenthals.com
Need a managed Wi-Fi hotspot? www.hautspot.com
visit my IT blog www.2rosenthals.net/wordpress
-------------------------------------------------------------
--- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---
Back to comp.os.os2.programmer.porting | Previous | Next — Next in thread | Find similar
building Lighttpd 1.4.30 using gcc 4.4.6: ___builtin_stdarg_start referenced Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2011-12-25 23:10 -0500
Re: building Lighttpd 1.4.30 using gcc 4.4.6: ___builtin_stdarg_start referenced Dave Yeo <dave.r.yeo@gmail.com> - 2011-12-25 21:30 -0800
Re: building Lighttpd 1.4.30 using gcc 4.4.6: ___builtin_stdarg_start referenced Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2011-12-26 16:37 -0500
Re: building Lighttpd 1.4.30 using gcc 4.4.6: ___builtin_stdarg_start referenced Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2011-12-26 22:23 -0500
Re: building Lighttpd 1.4.30 using gcc 4.4.6: ___builtin_stdarg_start referenced Dave Yeo <dave.r.yeo@gmail.com> - 2011-12-26 23:06 -0800
Re: building Lighttpd 1.4.30 using gcc 4.4.6: ___builtin_stdarg_start referenced Dave Yeo <dave.r.yeo@gmail.com> - 2011-12-27 00:09 -0800
Re: building Lighttpd 1.4.30 using gcc 4.4.6: ___builtin_stdarg_start referenced Lewis Rosenthal <lgrosenthal@2-de-sp-am-2rosenthals.com> - 2011-12-27 08:40 -0500
csiph-web