I have build gcc :
tchaikovski:[~/rpl/rpl-4.0.0.prerelease.9/tools/ncurses-5.7] > gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../configure --prefix=/usr/shared-apps
--enable-languages=c,c++,fortran --enable-shared --enable-threads=solaris
--enable-nls --enable-checking=release --with-mpfr=/usr/shared-apps/
--with-gnu-ld
Thread model: solaris
gcc version 4.3.2 (GCC)
tchaikovski:[~/rpl/rpl-4.0.0.prerelease.9/tools/ncurses-5.7] >
This compiler suite works fine, but I'm not able to build ncurses 5.7
(ncurses 5.6 can be built with the same compiler).
tchaikovski:[~/rpl/build/tools/ncurses-5.7] >
.../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/configure
--prefix=/usr/shared-apps/ --without-progs --enable-broken_linker
....
gcc -mtune=niagara -mcpu=niagara --param max-inline-insns-single=1200 -o
background ../objects/background.o -I../test
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/test -DHAVE_CONFIG_H
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/test/../include -I.
-I../include -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -DNDEBUG
-I/usr/shared-apps//include/ncurses -mtune=niagara -mcpu=niagara --param
max-inline-insns-single=1200 `echo "-static -L../lib -lform -lmenu -lpanel
-lncurses -dynamic " | sed -e 's/-lform.*-lpanel[^ ]*//'` -lm
/usr/shared-apps/lib/gcc/sparc-sun-solaris2.10/4.3.2/../../../../sparc-sun-solaris2.10/bin/ld:
cannot find -lm
collect2: ld returned 1 exit status
make[1]: *** [background] Error 1
If I try :
tchaikovski:[~/rpl/build/tools/ncurses-5.7] >
.../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/configure
--prefix=/usr/shared-apps
I obtain another error related to ld :
gcc ../objects/clear.o -I../progs
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/progs -DHAVE_CONFIG_H
gcc ../objects/clear.o -I../progs
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/progs -DHAVE_CONFIG_H
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/progs/../include -I.
-I../include -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -DNDEBUG
-I/usr/shared-apps/include/ncurses -mtune=niagara -mcpu=niagara --param
max-inline-insns-single=1200 -static -L../lib -lncurses -dynamic -o clear
gcc ../objects/toe.o -I../progs
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/progs -DHAVE_CONFIG_H
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/progs/../include -I.
-I../include -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -DNDEBUG
-I/usr/shared-apps/include/ncurses -mtune=niagara -mcpu=niagara --param
max-inline-insns-single=1200 -static -L../lib -lncurses -L../lib -lncurses
-dynamic -o toe
/usr/shared-apps/lib/gcc/sparc-sun-solaris2.10/4.3.2/../../../../sparc-sun-solaris2.10/bin/ld:
cannot find -lc
collect2: ld returned 1 exit status
make[1]: *** [clear] Error 1
make[1]: *** Waiting for unfinished jobs....
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/progs/../include -I.
-I../include -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -DNDEBUG
-I/usr/shared-apps/include/ncurses -mtune=niagara -mcpu=niagara --param
max-inline-insns-single=1200 -static -L../lib -lncurses -dynamic -o clear
gcc ../objects/toe.o -I../progs
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/progs -DHAVE_CONFIG_H
-I../../../../rpl-4.0.0.prerelease.9/tools/ncurses-5.7/progs/../include -I.
-I../include -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -DNDEBUG
-I/usr/shared-apps/include/ncurses -mtune=niagara -mcpu=niagara --param
max-inline-insns-single=1200 -static -L../lib -lncurses -L../lib -lncurses
-dynamic -o toe
/usr/shared-apps/lib/gcc/sparc-sun-solaris2.10/4.3.2/../../../../sparc-sun-solaris2.10/bin/ld:
cannot find -lc
collect2: ld returned 1 exit status
make[1]: *** [clear] Error 1
make[1]: *** Waiting for unfinished jobs....
Any idea ?
Same library can be built without any trouble on linux with the same
compiler.
Regards,
JKB
_______________________________________________
Bug-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ncurses