Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

perl DBI failed compilation

13 views
Skip to first unread message

bluethundr

unread,
May 29, 2012, 7:33:28 PM5/29/12
to
Hello list,

I am attempting to use the perl DBI on a solaris 10 sparc machine.
configure runs fine but I get an error on make.

This is the error I am seeing:

cc: DBI.o: No such file or directory
cc: no input files
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.s


Here's everything from that perl Makefile.pl && make session:

[db07-dc2:~/DBI-1.618] user% perl Makefile.PL && make 2>&1 >& perlbug.
+txt
Skip blib/arch/auto/DBI/Driver_xst.h (unchanged)
Skip blib/lib/DBD/Proxy.pm (unchanged)
Skip blib/lib/DBI/Gofer/Response.pm (unchanged)
Skip blib/lib/DBI/Gofer/Transport/Base.pm (unchanged)
Skip blib/lib/DBI/Util/_accessor.pm (unchanged)
Skip blib/lib/DBD/DBM.pm (unchanged)
Skip blib/arch/auto/DBI/DBIXS.h (unchanged)
Skip blib/lib/dbixs_rev.pl (unchanged)
Skip blib/lib/DBI/Const/GetInfoType.pm (unchanged)
Skip blib/lib/DBI/Gofer/Serializer/DataDumper.pm (unchanged)
Skip blib/lib/DBI/DBD/Metadata.pm (unchanged)
Skip blib/lib/DBD/Gofer/Transport/pipeone.pm (unchanged)
Skip blib/lib/DBI/Const/GetInfo/ODBC.pm (unchanged)
Skip blib/lib/DBI/ProfileDumper/Apache.pm (unchanged)
Skip blib/lib/DBD/File/Roadmap.pod (unchanged)
Skip blib/arch/auto/DBI/Driver.xst (unchanged)
Skip blib/lib/DBD/File.pm (unchanged)
Skip blib/lib/DBI/Util/CacheMemory.pm (unchanged)
Skip blib/lib/DBD/NullP.pm (unchanged)
Skip blib/lib/DBI/ProfileSubs.pm (unchanged)
Skip blib/arch/auto/DBI/dbi_sql.h (unchanged)
Skip blib/lib/DBD/File/HowTo.pod (unchanged)
Skip blib/lib/DBD/Gofer.pm (unchanged)
Skip blib/arch/auto/DBI/dbivport.h (unchanged)
Skip blib/arch/auto/DBI/dbd_xsh.h (unchanged)
Skip blib/lib/DBI/DBD/SqlEngine/HowTo.pod (unchanged)
Skip blib/arch/auto/DBI/dbixs_rev.h (unchanged)
Skip blib/lib/DBD/Gofer/Transport/Base.pm (unchanged)
Skip blib/lib/DBD/Gofer/Transport/corostream.pm (unchanged)
Skip blib/lib/DBI/FAQ.pm (unchanged)
Skip blib/lib/DBD/Gofer/Policy/rush.pm (unchanged)
Skip blib/lib/DBI/SQL/Nano.pm (unchanged)
Skip blib/lib/DBI/Const/GetInfo/ANSI.pm (unchanged)
Skip blib/lib/DBI/Gofer/Request.pm (unchanged)
Skip blib/lib/DBD/Gofer/Transport/stream.pm (unchanged)
Skip blib/lib/DBD/Gofer/Policy/classic.pm (unchanged)
Skip blib/lib/DBI/Const/GetInfoReturn.pm (unchanged)
Skip blib/lib/DBD/Gofer/Policy/Base.pm (unchanged)
Skip blib/lib/DBI.pm (unchanged)
Skip blib/lib/DBI/Gofer/Serializer/Storable.pm (unchanged)
Skip blib/lib/DBI/Gofer/Transport/stream.pm (unchanged)
Skip blib/lib/DBD/Sponge.pm (unchanged)
Skip blib/lib/DBD/Gofer/Policy/pedantic.pm (unchanged)
Skip blib/lib/DBI/W32ODBC.pm (unchanged)
Skip blib/lib/DBI/DBD/SqlEngine/Developers.pod (unchanged)
Skip blib/lib/DBI/Gofer/Transport/pipeone.pm (unchanged)
Skip blib/lib/DBD/Gofer/Transport/null.pm (unchanged)
Skip blib/lib/Bundle/DBI.pm (unchanged)
Skip blib/lib/DBD/File/Developers.pod (unchanged)
Skip blib/lib/DBI/Profile.pm (unchanged)
Skip blib/lib/DBI/ProfileDumper.pm (unchanged)
Skip blib/lib/DBI/ProxyServer.pm (unchanged)
Skip blib/lib/DBI/Gofer/Serializer/Base.pm (unchanged)
Skip blib/arch/auto/DBI/dbipport.h (unchanged)
Skip blib/lib/DBI/Gofer/Execute.pm (unchanged)
Skip blib/lib/DBI/DBD.pm (unchanged)
Skip blib/lib/DBI/DBD/SqlEngine.pm (unchanged)
Skip blib/lib/Win32/DBIODBC.pm (unchanged)
Skip blib/lib/DBI/PurePerl.pm (unchanged)
Skip blib/lib/DBD/ExampleP.pm (unchanged)
Skip blib/lib/DBI/ProfileData.pm (unchanged)
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ER
+RNO -xO3 -xspace -xildoff -DVERSION=\"1.618\" -DXS_VERSION=\"1.61
+8\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DDBI_NO_
+THREADS Perl.c
cc: unrecognized option `-KPIC'
cc: language ildoff not recognized
cc: Perl.c: linker input file unused because linking not done
/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.
+8.4/lib/ExtUtils/typemap -typemap typemap DBI.xs > DBI.xsc && mv DBI
+.xsc DBI.c
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ER
+RNO -xO3 -xspace -xildoff -DVERSION=\"1.618\" -DXS_VERSION=\"1.61
+8\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DDBI_NO_
+THREADS DBI.c
cc: unrecognized option `-KPIC'
cc: language ildoff not recognized
cc: DBI.c: linker input file unused because linking not done
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.so
cc -G DBI.o -o blib/arch/auto/DBI/DBI.so \
\

cc: DBI.o: No such file or directory
cc: no input files
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.s
+o'



It seems like it might be a compiler issue, but when I try out gcc and
cc on their own they seem fine.

[db07-dc2:~/DBI-1.618] root% cc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/spec
+s
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr
+/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6


[db07-dc2:~] root% gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/spec
+s
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr
+/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6



Before running configure and make I set my CC and GCC settings like
this:

[db07-dc2:~/DBI-1.618] root% echo $GCC
/usr/local/bin/gcc
[db07-dc2:~/DBI-1.618] root% echo $cc
/usr/local/bin/cc

I was wondering if someone might have had a similar experience and
what you might be able to do to get past this issue and start using
the perl DBI in scripts?

Thanks in advance!

Jonathan Leffler

unread,
May 30, 2012, 12:30:54 AM5/30/12
to
On 5/29/12 4:33 PM, bluethundr wrote:

> I am attempting to use the perl DBI on a solaris 10 sparc machine.
> configure runs fine but I get an error on make.
>
> This is the error I am seeing:
>
> cc: DBI.o: No such file or directory
> cc: no input files
> *** Error code 1
> make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.s

...

> cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ER
> +RNO -xO3 -xspace -xildoff -DVERSION=\"1.618\" -DXS_VERSION=\"1.61
> +8\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DDBI_NO_
> +THREADS Perl.c
> cc: unrecognized option `-KPIC'
> cc: language ildoff not recognized
> cc: Perl.c: linker input file unused because linking not done

Your problem is that you're not using the same C compiler that was used
to build Perl.

You need to use a compiler that is substantially the same as the one
used to build Perl, so that all compiler options are accepted. Trying
to do otherwise leads to baldness as you tear your hair out over errors.
Don't bother trying; it is really hard work. Either get the right
compiler, or build your own Perl with the compiler you have (but don't
remove or damage the system-provided Perl unless you're a braver person
than I am).

--
Jonathan Leffler #include <disclaimer.h>
Email: jlef...@earthlink.net, jlef...@us.ibm.com
Guardian of DBD::Informix v2011.0612 -- http://dbi.perl.org/
0 new messages