Mailing List Archive

solaris 2.5 problems
Sun SPARC 4 running Solaris 2.5
GCC 2.7.2
Ran ./configure and accepted all defaults.

The following problems can up while trying to build perl5.001m --

util.c: In function `mess':
util.c:835: conflicting types for `vsprintf'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdio.h:184: previous
declaration of `vsprintf'

*** Commented out and contined.

pp_sys.c: In function `dooneliner':
pp_sys.c:2341: `sys_nerr' undeclared (first use this function)
pp_sys.c:2341: (Each undeclared identifier is reported only once
pp_sys.c:2341: for each function it appears in.)
make: *** [pp_sys.o] Error 1

*** Solaris 2.5 doesn't seem to have a sys_nerr.
My fix: for(errno = 0; sterror(errno); errno++) {

gcc -o miniperl miniperlmain.o libperl.a -L/usr/local/lib -lsocket -lnsl -lgdb
m -ldl -lm -lc -lcrypt /lib/libcrypt.a
Undefined first referenced
symbol in file
do_aspawn libperl.a(pp_sys.o)
sterror libperl.a(pp_sys.o)
do_spawn libperl.a(pp_sys.o)
ld: fatal: Symbol referencing errors. No output written to miniperl
make: *** [miniperl] Error 1


*** It's this last one that I can't solve. Perhaps 2.5 doesn't have these
or perhaps I'm dumb and did something wrong. If you have any suggestions on
the later problem, please let me know! Since right now, I can't get it
compiled.

- matthew

----
matthew zeier "To live and die, it seems, is a waste
matthew@interaccess.com without a dream." - BoDeans
......................................................................
Programmer / Online Junkie Ph. 708/483-8787
Re: solaris 2.5 problems [ In reply to ]
> From: matthew zeier <matthew@interaccess.com>
>
> Sun SPARC 4 running Solaris 2.5
> GCC 2.7.2
> Ran ./configure and accepted all defaults.
>
> The following problems can up while trying to build perl5.001m --
>
> util.c: In function `mess':
> util.c:835: conflicting types for `vsprintf'
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdio.h:184: previous
> declaration of `vsprintf'

Just a guess: did you run GCC fixincludes after installing Solaris 2.5?

Tim.