#116 Error compiling htdig-3.1.6

cannot reproduce
other (29)
Ron Toub

First problem I have had. I have it working under Solaris 2.7.
We are upgrading to Solaris 8 and I am getting the following error.

gcc -c -O -I. -I./../include -D_REENTRANT ../btree/bt_cursor.c
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 806: error: unknown opcode ".subsection"
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 806: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 827: error: unknown opcode ".previous"
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 827: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 1526: error: unknown opcode ".subsection"
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 1526: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 1542: error: unknown opcode ".previous"
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 1542: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 2497: error: unknown opcode ".subsection"
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 2497: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 2515: error: unknown opcode ".previous"
/usr/ccs/bin/as: "/var/tmp/cc0vYV28.s", line 2515: error: statement syntax
*** Error code 1
make: Fatal error: Command failed for target `bt_cursor.o'

I am stumped?


    • labels: --> other
    • milestone: --> cannot reproduce
    • status: open --> closed-works-for-me
  • Logged In: YES

    This is a problem with your compiler setup. The Solaris assembler, /usr/ccs/bin/as, doesn't like the opcodes
    produced by your gcc compiler. I don't expect you'd be able to compile any C program with the compiler as it
    is now.