Closed p5pRT closed 21 years ago
Could you please help me.
I'm trying to install perl5.004_04 on Solaris 2.6
But some prototype declaration may be not matched\, I think.
Below is error messages about to compile util.c with command "make"
`sh cflags libperl.so util.o` -fpic util.c CCCMD = gcc -DPERL_CORE -c -I/usr/include -I/apl/GNU/include -I/opt/include -I/usr/local/include -O util.c: In function `Perl_form': util.c:1107: number of arguments doesn't match prototype proto.h:125: prototype declaration util.c: In function `Perl_die': util.c:1164: number of arguments doesn't match prototype proto.h:70: prototype declaration util.c: In function `Perl_croak': util.c:1231: argument `pat' doesn't match prototype proto.h:47: prototype declaration util.c:1231: number of arguments doesn't match prototype proto.h:47: prototype declaration util.c: In function `Perl_warn': util.c:1288: number of arguments doesn't match prototype proto.h:529: prototype declaration
util.c:1107: is
#ifdef I_STDARG char * form(const char* pat\, ...) #else /*VARARGS0*/ char * form(pat\, va_alist) const char *pat; va_dcl #endif {
and
proto.h:125: is char* form _((const char* pat\, va_dcl));
What can I modify Makefile or configure file ??
I'm trying to install perl5.004_04 on Solaris 2.6
That's rather an old version. Unless you really need that version for reasons of compatibility with some package or application that you know will not work with a more recent perl\, I suggest you try building the latest stable version\, 5.005_03\, instead. You'll find the source at http://www.cpan.org/src/stable.tar.gz. You can also find precompiled versions at http://www.sunfreeware.com.
What can I modify Makefile or configure file ??
I don't know\, and\, since I don't run Sun systems\, I can't help. My guess is that the compiler (you don't say which compiler you're using) has got fussier about prototypes since 5.004_04 was released. But it's only a guess. -- Dominic Dunlop
=?Iso-2022-Jp?B?Ihskqk5rtfohiua2gyhcig==?= \k5\-suzuki@​frc\.nomura\.co\.jp writes:
Could you please help me.
I'm trying to install perl5.004_04 on Solaris 2.6
But some prototype declaration may be not matched\, I think.
Below is error messages about to compile util.c with command "make" --------------------------------------------------------------------------- `sh cflags libperl.so util.o` -fpic util.c CCCMD = gcc -DPERL_CORE -c -I/usr/include -I/apl/GNU/include
You shold NEVER pass -I/usr/include to gcc. It forces gcc to read headers designed for Sun's compiler rather than the ones for gcc. Gcc will automatically look in /usr/include _after_ it has checked its own places.
va_dcl and co. are very very different between gcc and sun compilers.
What can I modify Makefile or configure file ??
Loose the -I/usr/include and re-run configure from scratch. It will need to re-probe for various things.
-- Nick Ing-Simmons \nik@​tiuk\.ti\.com Via\, but not speaking for: Texas Instruments Ltd.
Migrated from rt.perl.org#2441 (status was 'resolved')
Searchable as RT2441$