Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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/ 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:
Setting up perlbrew for Linux and Solaris
Compile Error for Sun Solaris 10 module IO
Problem Compiling under Solaris using DBI and DBD::DB2

Replies are listed 'Best First'.
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 rm -f blib/arch/auto/XML/Parser/Expat/ LD_RUN_PATH="/usr/local/bin:/usr/local/include" gcc -G Expat.o -o bl +ib/arch/auto/XML/Parser/Expat/ 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/'

        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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074562]
[marto]: ignore me!
[marto]: youtubes warning
erix's frame of reference is again woefully inadequate
[marto]: The_Venture_Bros.. highly recommended

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2018-02-21 11:21 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (279 votes). Check out past polls.