trowa has asked for the wisdom of the Perl Monks concerning the following question:

hi fellow monks, I'm using gcc 3.0.2 and sybperl 2.14 on sun 5.8 platform. However, same thing happens using gcc 3.0.3 and sybperl 2.13, I think this may be a sun OS issue, but I'm not sure. I can't seem to get anything to compile correctly, also using gnu make. Any input would be helpful. Thanks!
# perl ./Makefile.PL Sybase OpenClient 11.1.1 found. The sybperl modules need access to a Sybase server to run the tests. To clear an entry please enter 'undef' Sybase server to use (default: HOSTSYBASE): User ID to log in to Sybase (default: sa): Password (default: undef): Sybase OpenClient 11.1.1 found. Writing Makefile for Sybase::BCP Sybase OpenClient 11.1.1 found. Writing Makefile for Sybase::BLK Sybase OpenClient 11.1.1 found. Running in threaded mode - looking for _r libraries... Found -lct_r for -lct Found -lcs_r for -lcs Found -ltcl_r for -ltcl Found -lcomn_r for -lcomn Found -lintl_r for -lintl Found -lblk_r for -lblk Writing Makefile for Sybase::CTlib Sybase OpenClient 11.1.1 found. Writing Makefile for Sybase::DBlib Sybase OpenClient 11.1.1 found. Writing Makefile for Sybase::Sybperl Writing Makefile for Sybase # make make[1]: Entering directory `/tmp/sybperl-2.14/BCP' Manifying ../blib/man3/Sybase::BCP.3 make[1]: Leaving directory `/tmp/sybperl-2.14/BCP' make[1]: Entering directory `/tmp/sybperl-2.14/BLK' Manifying ../blib/man3/Sybase::BLK.3 make[1]: Leaving directory `/tmp/sybperl-2.14/BLK' make[1]: Entering directory `/tmp/sybperl-2.14/CTlib' Skip ../blib/lib/Sybase/CTlib.pod (unchanged) Skip ../blib/lib/Sybase/CTlib.pm (unchanged) gcc -c -I/opt/Sybase/include -DUSE_REENTRANT_API -D_POSIX_PTHREAD_SEMA +NTICS -D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGE +FILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.14\" -DXS_VERSI +ON=\"2.14\" -fPIC -I/usr/local/ActivePerl-5.6/lib/5.6.1/sun4-solaris- +thread-multi/CORE -DCTLIBVS=100 -DSYBPLVER='"2.14"' -DDO_TIE CTlib.c /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 742: error: unknown opcod +e ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 742: error: statement syn +tax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 757: error: unknown opcod +e ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 757: error: statement syn +tax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 963: error: unknown opcod +e ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 963: error: statement syn +tax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 979: error: unknown opcod +e ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 979: error: statement syn +tax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 2984: error: unknown opco +de ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 2984: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 2992: error: unknown opco +de ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 2992: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3048: error: unknown opco +de ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3048: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3071: error: unknown opco +de ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3071: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3116: error: unknown opco +de ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3116: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3139: error: unknown opco +de ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3139: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3826: error: unknown opco +de ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3826: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3849: error: unknown opco +de ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 3849: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 4433: error: unknown opco +de ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 4433: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 4453: error: unknown opco +de ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 4453: error: statement sy +ntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 16447: error: unknown opc +ode ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 16447: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 16492: error: unknown opc +ode ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 16492: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 16493: error: unknown opc +ode ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 16493: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 16516: error: unknown opc +ode ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 16516: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 20371: error: unknown opc +ode ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 20371: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 20386: error: unknown opc +ode ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 20386: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 26966: error: unknown opc +ode ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 26966: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 26989: error: unknown opc +ode ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 26989: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 27748: error: unknown opc +ode ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 27748: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 27768: error: unknown opc +ode ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 27768: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 28806: error: unknown opc +ode ".subsection" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 28806: error: statement s +yntax /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 28821: error: unknown opc +ode ".previous" /usr/ccs/bin/as: "/var/tmp/ccOnbrYh.s", line 28821: error: statement s +yntax make[1]: *** [CTlib.o] Error 1 make[1]: Leaving directory `/tmp/sybperl-2.14/CTlib' make: *** [subdirs] Error 2 # exit

Replies are listed 'Best First'.
Re: sybperl2.14 compile opcode error
by mpeppler (Vicar) on Apr 17, 2002 at 19:53 UTC
    Fletch is right - this is a compiler configuration issue.

    For sybperl problems it is usually better to post a message to the sybperl mailing list (see my web page for details.

    And I happen to disagree with Fletch regarding the preferability of DBI over sybperl...

    Michael

      With DBI, you've at least started down the road towards not being dependent on a single database.

      Of course I just hit one of the portability speedbumps myself today, finding out the hard way that Postgresql is case sensitive by default for LIKE comparisons, whereas I'd been using case insensitive MySQL. *grumble*

        Correct - but depending on the type of shop where you are, and the type of work you need to do sybperl (as in Sybase::CTlib) may be preferable.

        And as you saw portability depends a lot on SQL code that you use, and with Sybase any large project will use stored procedures, which means that the SQL is probably portable to MS-SQL, but not to anything else (at least not easily).

        And choice is good. :-)

        Michael

Re: sybperl2.14 compile opcode error
by Fletch (Bishop) on Apr 17, 2002 at 18:29 UTC

    • One or two lines of error would have been sufficient to establish the pattern
    • You've apparently got gcc trying to use the Solaris assembler
    • this isn't really a perl problem; bug your sysadmin or local C guru
    • consider using DBI rather than sybperl