public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug gdb/12891] New: implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c @ 2011-06-15 4:58 kamaraju at gmail dot com 2011-06-15 21:01 ` [Bug gdb/12891] " tromey at redhat dot com ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: kamaraju at gmail dot com @ 2011-06-15 4:58 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12891 Summary: implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c Product: gdb Version: 7.2 Status: NEW Severity: normal Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: kamaraju@gmail.com when compiling gdb with -Werror option, the compilation stops with the following error. if [ x"" != x ]; then \ i486-linux-gnu-gcc -c -DHAVE_CONFIG_H -g -Werror -I. -I/home/gdb/gdb-7.2/gdb-7.2/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic /home/gdb/gdb-7.2/gdb-7.2/libiberty/vfprintf.c -o pic/vfprintf.o; \ else true; fi i486-linux-gnu-gcc -c -DHAVE_CONFIG_H -g -Werror -I. -I/home/gdb/gdb-7.2/gdb-7.2/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic /home/gdb/gdb-7.2/gdb-7.2/libiberty/vfprintf.c -o vfprintf.o /home/gdb/gdb-7.2/gdb-7.2/libiberty/vfprintf.c: In function ‘vfprintf’: /home/gdb/gdb-7.2/gdb-7.2/libiberty/vfprintf.c:14:3: error: implicit declaration of function ‘_doprnt’ [-Werror=implicit-function-declaration] cc1: all warnings being treated as errors make[3]: *** [vfprintf.o] Error 1 make[3]: Leaving directory `/home/gdb/gdb-7.2/gdb-7.2/build/objdir/libiberty' make[2]: *** [all-libiberty] Error 2 make[2]: Leaving directory `/home/gdb/gdb-7.2/gdb-7.2/build/objdir' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/gdb/gdb-7.2/gdb-7.2/build/objdir' make: *** [debian/stamp-makefile-build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 debian_chroot:sid:kusumanchi:/home/gdb/gdb-7.2# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/i386-linux-gnu/gcc/i486-linux-gnu/4.6.1/lto-wrapper Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.0-13' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-multiarch --with-multiarch-defaults=i386-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/i386-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib/i386-linux-gnu --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.6.1 20110611 (prerelease) (Debian 4.6.0-13) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/12891] implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c 2011-06-15 4:58 [Bug gdb/12891] New: implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c kamaraju at gmail dot com @ 2011-06-15 21:01 ` tromey at redhat dot com 2011-06-15 22:56 ` kamaraju at gmail dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: tromey at redhat dot com @ 2011-06-15 21:01 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12891 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com --- Comment #1 from Tom Tromey <tromey at redhat dot com> 2011-06-15 21:01:03 UTC --- It seems to me that vfprintf.c should not be compiled on a Debian box. I suspect the error occurs elsewhere. Maybe libiberty/config.log would be helpful. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/12891] implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c 2011-06-15 4:58 [Bug gdb/12891] New: implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c kamaraju at gmail dot com 2011-06-15 21:01 ` [Bug gdb/12891] " tromey at redhat dot com @ 2011-06-15 22:56 ` kamaraju at gmail dot com 2011-06-16 13:33 ` tromey at redhat dot com 2022-04-08 1:45 ` [Bug build/12891] " tromey at sourceware dot org 3 siblings, 0 replies; 5+ messages in thread From: kamaraju at gmail dot com @ 2011-06-15 22:56 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12891 --- Comment #2 from Kamaraju Kusumanchi <kamaraju at gmail dot com> 2011-06-15 22:56:05 UTC --- Created attachment 5794 --> http://sourceware.org/bugzilla/attachment.cgi?id=5794 libiberty/config.log is attached As per the request, I am attaching the libiberty/config.log -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug gdb/12891] implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c 2011-06-15 4:58 [Bug gdb/12891] New: implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c kamaraju at gmail dot com 2011-06-15 21:01 ` [Bug gdb/12891] " tromey at redhat dot com 2011-06-15 22:56 ` kamaraju at gmail dot com @ 2011-06-16 13:33 ` tromey at redhat dot com 2022-04-08 1:45 ` [Bug build/12891] " tromey at sourceware dot org 3 siblings, 0 replies; 5+ messages in thread From: tromey at redhat dot com @ 2011-06-16 13:33 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12891 --- Comment #3 from Tom Tromey <tromey at redhat dot com> 2011-06-16 13:32:18 UTC --- I think the problem is in autoconf. libiberty uses AC_REPLACE_FUNCS and apparently this is not -Werror safe. From the log: configure:5913: checking for vfprintf configure:5913: i486-linux-gnu-gcc -o conftest -g -Werror conftest.c >&5 conftest.c:86:6: error: conflicting types for built-in function 'vfprintf' [-Werror] cc1: all warnings being treated as errors You could report this to the autoconf maintainers. Meanwhile, don't configure with -Werror. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug build/12891] implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c 2011-06-15 4:58 [Bug gdb/12891] New: implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c kamaraju at gmail dot com ` (2 preceding siblings ...) 2011-06-16 13:33 ` tromey at redhat dot com @ 2022-04-08 1:45 ` tromey at sourceware dot org 3 siblings, 0 replies; 5+ messages in thread From: tromey at sourceware dot org @ 2022-04-08 1:45 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=12891 Tom Tromey <tromey at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED Component|gdb |build CC| |tromey at sourceware dot org --- Comment #4 from Tom Tromey <tromey at sourceware dot org> --- Not really a gdb bug, more of an autoconf thing and/or don't pass -Werror to configure. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-08 1:45 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-06-15 4:58 [Bug gdb/12891] New: implicit declaration of function ‘_doprnt’ in libiberty/vfprintf.c kamaraju at gmail dot com 2011-06-15 21:01 ` [Bug gdb/12891] " tromey at redhat dot com 2011-06-15 22:56 ` kamaraju at gmail dot com 2011-06-16 13:33 ` tromey at redhat dot com 2022-04-08 1:45 ` [Bug build/12891] " tromey at sourceware dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).