This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/12891]New: implicit declaration of function â_doprntâ in libiberty/vfprintf.c


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]