On 3/30/07, Tim Bunce <[EMAIL PROTECTED]> wrote:
On Thu, Mar 29, 2007 at 07:53:55AM -0500, Nurmi, Michael V wrote: > Below is the output I get when I try to do a make on the DBI module in > Solaris 10. This works fine on Solaris I was wondering if I need an > updated module for solaris10? Is there any DBI module that works with > solaris10? > > Please let me know what is happening. > gcc -B/usr/ccs/bin/ -c -fno-strict-aliasing -pipe > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O > -DVERSION=\"1.54\" -DXS_VERSION=\"1.54\" -fPIC > "-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE" -W -Wall > -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare > -Wno-cast-qual -DDBI_NO_THREADS Perl.c > In file included from /usr/include/sys/signal.h:34, > from /usr/include/signal.h:26, > from > /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/unixish.h:106, > from > /usr/local/lib/perl5/5.8.7/sun4-solaris/CORE/perl.h:2220, > from DBIXS.h:19, > from Perl.xs:6: > /usr/include/sys/siginfo.h:259: syntax error before "ctid_t" This kind of error indicates that the perl you're using was not built with the compiler you're using.
Or the compiler you are using (GCC) was not built for Solaris 10. I've just migrated from Solaris 8 and 9 to Solaris 10, and the headers in Solaris 10 are different from, and weirder than, the headers in Solaris 8 and 9. Actually, they're mostly cleaner, but I had to rebuild GCC on Solaris 10 (using Sun Forte to bootstrap it) because of problems with keywords, etc. I specifically ran across ctid_t at one point - I'd not gotten around to Perl at that point - with the older compiler. You need to use the same compiler that was used to build the perl you're
building DBI for. Often that means building and installing your own, separate, perl.
Was the gcc you are using built for/on Solaris 10? If not, get one that was. (Use gcc --version to find out.) -- Jonathan Leffler <[EMAIL PROTECTED]> #include <disclaimer.h> Guardian of DBD::Informix - v2007.0226 - http://dbi.perl.org "I don't suffer from insanity - I enjoy every minute of it."
