Can't install Unicode::String due to String.so not found

  CPAN.pm: Going to build G/GA/GAAS/Unicode-String-2.09.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Unicode::String
cp String.pm blib/lib/Unicode/String.pm
cp lib/Unicode/CharName.pm blib/lib/Unicode/CharName.pm
/usr/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp  -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap  String.xs > String.xsc && mv String.xsc String.c
cc -c    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3 -xspace -xildoff    -DVERSION=\"2.09\"  -DXS_VERSION=\"2.09\" -KPIC "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"   String.c
cc: unrecognized option `-KPIC'
cc: language ildoff not recognized
cc: String.c: linker input file unused because linking not done
Running Mkbootstrap for Unicode::String ()
chmod 644 String.bs
rm -f blib/arch/auto/Unicode/String/String.so
cc  -G String.o  -o blib/arch/auto/Unicode/String/String.so     \
        \

cc: String.o: No such file or directory
cc: no input files
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/Unicode/String/String.so'
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

cpan>

I also tried to manually compile the module but to no avail. I need it to use smbldap-tools.

Seems I am the first one who experiences this problem?

If im not wrong, I think you should be creating a softlink somewhere for the required file (hint)

Good idea, but neither String.so nor String.o exist :wink:

create it. use touch <filename>
ln -s <source path> <destination>

Ok, if THAT is a serious statement of yours, you have to learn a lot about UNIX and self-compiling...

Found a solution meanwhile, for those who look for it:

OpenSolaris comes with gcc, while the module tries to compile with the genuine cc.

Building Perl modules for Solaris

said:

Try and see if it works. Good Luck!