Set::Object installation Problem

Set::Object installation Problem

am 14.10.2006 12:04:22 von mrhsug2

Hi,

I need to install Set::Object module on AIX-5.3
I follow the instructions but don't have good luck
can any one help me to see how to solve this problem
thanks in advance

Environment :

AIX : 5.3
Perl version : v5.8.2 built for aix-thread-multi
C Compiler : C for AIX Compiler, Version 5

----

perl Makefile.PL


>perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Set::Object

>make
cp lib/Set/Object.pm blib/lib/Set/Object.pm
AutoSplitting blib/lib/Set/Object.pm (blib/lib/auto/Set/Object)
/usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME"
=> "Set::
Object", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
/usr/bin/perl /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp
-typemap /usr/op
t/perl5/lib/5.8.2/ExtUtils/typemap Object.xs > Object.xsc && mv
Object.xsc Obje
ct.c
cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlon
glong -O -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\"
"-I/usr/opt/perl5/lib/5.8
..2/aix-thread-multi/CORE" Object.c
"Object.xs", line 974.66: 1506-209 (S) Character constants must end
before the e
nd of a line.
"Object.xs", line 974.13: 1506-076 (W) Character constant 't return
undef if not
a valid ref - return 0 instead' has more than one character. No more
than right
most 4 characters are used.
"Object.xs", line 999.66: 1506-209 (S) Character constants must end
before the e
nd of a line.
"Object.xs", line 999.37: 1506-076 (W) Character constant 're going to
have to a
dd 0 to' has more than one character. No more than rightmost 4
characters are us
ed.
"Object.xs", line 1029.66: 1506-209 (S) Character constants must end
before the
end of a line.
"Object.xs", line 1029.46: 1506-076 (W) Character constant 't given an
integer.'
has more than one character. No more than rightmost 4 characters are
used.
"Object.xs", line 1045.38: 1506-209 (S) Character constants must end
before the
end of a line.
"Object.xs", line 1045.27: 1506-076 (W) Character constant 's a double'
has more
than one character. No more than rightmost 4 characters are used.
"Object.xs", line 20.1: 1506-046 (S) Syntax error.
make: 1254-004 The error code from the last command is 1.


Stop.

Re: Set::Object installation Problem

am 15.10.2006 01:33:15 von unknown

mrhsug2@gmail.com wrote:
> Hi,
>
> I need to install Set::Object module on AIX-5.3
> I follow the instructions but don't have good luck
> can any one help me to see how to solve this problem
> thanks in advance
>
> Environment :
>
> AIX : 5.3
> Perl version : v5.8.2 built for aix-thread-multi
> C Compiler : C for AIX Compiler, Version 5
>
> ----
>
> perl Makefile.PL
>
>
>
>>perl Makefile.PL
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Set::Object
>
>
>>make
>
> cp lib/Set/Object.pm blib/lib/Set/Object.pm
> AutoSplitting blib/lib/Set/Object.pm (blib/lib/auto/Set/Object)
> /usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME"
> => "Set::
> Object", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);'
> /usr/bin/perl /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp
> -typemap /usr/op
> t/perl5/lib/5.8.2/ExtUtils/typemap Object.xs > Object.xsc && mv
> Object.xsc Obje
> ct.c
> cc_r -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -qmaxmem=16384
> -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
> -D_LARGE_FILES -qlon
> glong -O -DVERSION=\"1.18\" -DXS_VERSION=\"1.18\"
> "-I/usr/opt/perl5/lib/5.8
> .2/aix-thread-multi/CORE" Object.c
> "Object.xs", line 974.66: 1506-209 (S) Character constants must end
> before the e
> nd of a line.
> "Object.xs", line 974.13: 1506-076 (W) Character constant 't return
> undef if not
> a valid ref - return 0 instead' has more than one character. No more
> than right
> most 4 characters are used.
> "Object.xs", line 999.66: 1506-209 (S) Character constants must end
> before the e
> nd of a line.
> "Object.xs", line 999.37: 1506-076 (W) Character constant 're going to
> have to a
> dd 0 to' has more than one character. No more than rightmost 4
> characters are us
> ed.
> "Object.xs", line 1029.66: 1506-209 (S) Character constants must end
> before the
> end of a line.
> "Object.xs", line 1029.46: 1506-076 (W) Character constant 't given an
> integer.'
> has more than one character. No more than rightmost 4 characters are
> used.
> "Object.xs", line 1045.38: 1506-209 (S) Character constants must end
> before the
> end of a line.
> "Object.xs", line 1045.27: 1506-076 (W) Character constant 's a double'
> has more
> than one character. No more than rightmost 4 characters are used.
> "Object.xs", line 20.1: 1506-046 (S) Syntax error.
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
>

Offhand, it looks like your c compiler does not recognize '//' -style
comments. I got some warnings, but not failures under Darwin:

cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
-pipe -I/usr/local/include -Os -DVERSION=\"1.18\"
-DXS_VERSION=\"1.18\" "-I/usr/local/lib/perl5/5.8.8/darwin-2level/CORE"
Object.c
Object.xs: In function `_dispel_magic':
Object.xs:333: warning: initialization from incompatible pointer type
Object.xs: In function `_cast_magic':
Object.xs:455: warning: assignment from incompatible pointer type
Object.xs:460: warning: passing arg 2 of `Perl_sv_magicext' from
incompatible pointer type
Object.xs: In function `XS_Set__Object_is_weak':
Object.xs:831: warning: assignment makes integer from pointer without a cast

Tom Wyant

Re: Set::Object installation Problem

am 16.10.2006 09:16:00 von mrhsug2

You are right.

after removing the '//' -style comments from the source code
though still got some warning
the installation was success

THANK YOU very much!!


harryfmudd [AT] comcast [DOT] net 寫道ï¼=9A

>
> Offhand, it looks like your c compiler does not recognize '//' -style
> comments. I got some warnings, but not failures under Darwin:
>
> cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
> -pipe -I/usr/local/include -Os -DVERSION=3D\"1.18\"
> -DXS_VERSION=3D\"1.18\" "-I/usr/local/lib/perl5/5.8.8/darwin-2level/CORE"
> Object.c
> Object.xs: In function `_dispel_magic':
> Object.xs:333: warning: initialization from incompatible pointer type
> Object.xs: In function `_cast_magic':
> Object.xs:455: warning: assignment from incompatible pointer type
> Object.xs:460: warning: passing arg 2 of `Perl_sv_magicext' from
> incompatible pointer type
> Object.xs: In function `XS_Set__Object_is_weak':
> Object.xs:831: warning: assignment makes integer from pointer without a c=
ast
>=20
> Tom Wyant