Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Expat.o missing error on solaris 10 (gcc)

by Anonymous Monk
on Feb 12, 2014 at 00:41 UTC ( #1074562=note: print w/ replies, xml ) Need Help??


in reply to Expat.o missing error on solaris 10

, i am getting this error that Expat.o is not available

One has nothing to do with the other

Expat.o is a file that should be generated when you run make so that auto/XML/Parser/Expat/Expat.so can be generated

Your problem will probably go away if you start using gcc

To quote Re: DBD::mysql on Solaris 10

5.10.1 isn't exactly new, try a newer one :)

Which compiler are you using?

$ perl -V:cc cc='gcc';

I suggest you get perl-5.14.2 and compile it using gcc , install it privately (do not install over system perl), then try installing mysql

These might be of interest:
http://twiki.org/cgi-bin/view/Codev/SolarisInstallCookbookPerlModules
http://search.cpan.org/~aburlison/Solaris-PerlGcc-1.3/pod/perlgcc.pod
Setting up perlbrew for Linux and Solaris
Compile Error for Sun Solaris 10 module IO
Problem Compiling under Solaris using DBI and DBD::DB2


Comment on Re: Expat.o missing error on solaris 10 (gcc)
Select or Download Code
Re^2: Expat.o missing error on solaris 10 (gcc)
by topgunzzz (Initiate) on Feb 12, 2014 at 03:08 UTC

    I am using 5.8.4. Unfortunately i cannot upgrade it at this point. I updated the Makefile to point to gcc instead of cc. I am getting the same error. Is there any other work around?

    This is perl, v5.8.4 built for sun4-solaris-64int (with 37 registered patches, see perl -V for more detail)

      Here is the output when i use gcc

      # /usr/ccs/bin/make gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_E +RRNO -DVERSION=\"2.36\" -DXS_VERSION=\"2.36\" -fPIC "-I/usr/perl +5/5.8.4/lib/sun4-solaris-64int/CORE" Expat.c gcc: language arch=v8 not recognized gcc: Expat.c: linker input file unused because linking not done Running Mkbootstrap for XML::Parser::Expat () chmod 644 Expat.bs rm -f blib/arch/auto/XML/Parser/Expat/Expat.so LD_RUN_PATH="/usr/local/bin:/usr/local/include" gcc -G Expat.o -o bl +ib/arch/auto/XML/Parser/Expat/Expat.so gcc: Expat.o: No such file or directory gcc: no input files *** Error code 1 make: Fatal error: Command failed for target `blib/arch/auto/XML/Parse +r/Expat/Expat.so'

        Here is the output when i use gcc ...

        Did you start with a fresh directory of XML-Parser?

        This seems wrong  gcc: language arch=v8 not recognized

        In the OP you had similar  cc: unrecognized option `-KPIC'  

        If you use the same compiler to build perl and the extra modules, you won't have to guess at what the correct compiler options should be

        If you search for it gcc: language arch=v8 not recognized you 'll find
        says something about include paths Problems installing DBD::mysql on Solaris 8 - Page 1
        says recompile perl Problem compiling DBD::Informix in Solaris10/SPARC

        I recommend to recompile perl

        While its quite possible to do it the other way -- you'll have to learn more than you ever wanted to know :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074562]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2014-12-26 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls