Brad you wrote about installing DBD::DB2 on solaris: I notice in your transcript, the following lines:
> cc -c -I"/opt/IBMdb2/V7.1/include" -fno-strict-aliasing -I/usr/local/include > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.20\" > -DXS_VERSION=\"0.20\" -fPIC -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -xCC > Constants.c > cc: language CC not recognized > cc: Constants.c: linker input file unused since linking not done What compiler settings are you using for the install? The "-xCC" is a Sun Compiler flag that says accept C++ style comments and various other language constructs. On gcc, the -xCC flag is a specifies explicitly the language to be used for the following files. I think you've got cc linked to gcc on your box and the -x flag is confusing the compiler. Stph -----Original Message----- From: Brad Kulick [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 2:29 PM To: [EMAIL PROTECTED] Subject: DBD installation issues.... Could someone please give me insight as to what might be the issue here. I am installing DBD::DB2 on a solaris platform. I have already installed the DB2Connect Client and DBI. Also the necessary environment variable DB2_HOME is set correctly. The issue appears to be related to installing the DB2::Constants module. Could some please advise on what the problem might be or point me to some documentation that could help.... thanks. Thanks for the help, Brad Here is the output from running the installation: % perl Makefile.PL Configuring DBD::DB2... Remember to actually read the README and CAVEATS files! Using DB2 in "/opt/IBMdb2/V7.1" System: perl5.006 DBI1.21 sunos sf-backoff-nfs1 5.6 generic_105181-11 sun4u sparc sunw,ultra-250 sun4-solaris dl_dlopen.xs Compiler: cc -O -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 Includes: -I"/opt/IBMdb2/V7.1/include" -I/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris/auto/DBI Libraries: -L/opt/IBMdb2/V7.1/lib -ldb2 Checking if your kit is complete... Looks good Checking if your kit is complete... Looks good Writing Makefile for DBD::DB2::Constants Writing Makefile for DBD::DB2 % make mkdir blib mkdir blib/lib mkdir blib/lib/DBD mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/DBD mkdir blib/arch/auto/DBD/DB2 mkdir blib/lib/auto mkdir blib/lib/auto/DBD mkdir blib/lib/auto/DBD/DB2 mkdir blib/man3 cp DB2.pod blib/lib/DBD/DB2.pod cp lib/Bundle/DBD/DB2.pm blib/lib/Bundle/DBD/DB2.pm cp DB2.pm blib/lib/DBD/DB2.pm mkdir ../blib/lib/DBD/DB2 mkdir ../blib/arch/auto/DBD/DB2/Constants mkdir ../blib/lib/auto/DBD/DB2/Constants cp Constants.pm ../blib/lib/DBD/DB2/Constants.pm AutoSplitting ../blib/lib/DBD/DB2/Constants.pm (../blib/lib/auto/DBD/DB2/Constants) /usr/bin/perl -I/usr/local/lib/perl5/5.6.0/sun4-solaris -I/usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/5.6.0/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.6.0/ExtUtils/typemap Constants.xs > Constants.xsc && mv Constants.xsc Constants.c cc -c -I"/opt/IBMdb2/V7.1/include" -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -fPIC -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -xCC Constants.c cc: language CC not recognized cc: Constants.c: linker input file unused since linking not done Running Mkbootstrap for DBD::DB2::Constants () chmod 644 Constants.bs LD_RUN_PATH="" cc -o ../blib/arch/auto/DBD/DB2/Constants/Constants.so -G -L/usr/local/lib Constants.o cc: Constants.o: No such file or directory cc: No input files *** Error code 1 make: Fatal error: Command failed for target `../blib/arch/auto/DBD/DB2/Constants/Constants.so' Current working directory /tmp/bdk/DBD-DB2-0.76/Constants *** Error code 1 make: Fatal error: Command failed for target `subdirs' % __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/
