|
|
Hello All,
I have downloaded the gdb source code from the link:
http://www.sunfreeware.com/programlistsparc8.html#libiconv . On
compilation, there is no error when I run the configure script but when
I give "make" command the following errors are seen:I
make[1]: Entering directory
`/vobs/sdm/thirdparty/gdb-6.1/bin/bin_solaris8/opt/nortel/gdb-6.0/libiberty'
if [ x"" != x ]; then \
/vobs/sdm/thirdparty/gcc-3.3/gccroot_solaris8/bin/gcc -c
-DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional
-pedantic partition.c -o pic/partition.o; \
else true; fi
/vobs/sdm/thirdparty/gcc-3.3/gccroot_solaris8/bin/gcc -c
-DHAVE_CONFIG_H -g -O2 -I. -I./../include -W -Wall -Wtraditional
-pedantic partition.c
In file included from ../include/partition.h:46,
from partition.c:35:
/vobs/sdm/thirdparty/gcc-3.3/gccroot_solaris8/lib/gcc-lib/sparc-sun-solaris2.8/3.3/include/stdio.h:279:
error: conflicting types for `getopt'
/usr/include/stdlib.h:189: error: previous declaration of `getopt'
/vobs/sdm/thirdparty/gcc-3.3/gccroot_solaris8/lib/gcc-lib/sparc-sun-solaris2.8/3.3/include/stdio.h:281:
error: conflicting types for `getsubopt'
/usr/include/stdlib.h:165: error: previous declaration of `getsubopt'
Please let me know if anybody has any idea regarding this.
Your help will be greatly appreciated.
Regards,
Rajesh.
|
|