[ruby-dev:49719] [Ruby trunk Bug#12559] ./enc/iso_8859_14.c, line 253: error: syntax error near / with old fcc on Solaris 10

From: ngotogenome@...
Date: 2016-07-06 13:08:57 UTC
List: ruby-dev #49719
Issue #12559 has been reported by Naohisa Goto.

----------------------------------------
Bug #12559: ./enc/iso_8859_14.c, line 253: error: syntax error near / with old fcc on Solaris 10
https://bugs.ruby-lang.org/issues/12559

* Author: Naohisa Goto
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Solaris 10上の古い Fujitsu C Compiler (fcc) にて、以下のコンパイルエラーが発生します。

```
fcc -G -o .ext/sparc64-solaris2.10/enc/iso_8859_13.so enc/iso_8859_13.o -L. -L. -L. -KV9 -KVIS2 -L/usr/local/64/lib -R/usr/local/64/lib -KV9 -KVIS2  -L/usr/local/64/lib -R/usr/local/64/lib    -lpthread -lrt -lgmp -lsocket -ldl -lcrypt -lm  
fcc -I. -I.ext/include/sparc64-solaris2.10 -I./include -I. -I/usr/local/64/lib/libffi-3.0.10/include -I/usr/local/64/include  -D_XOPEN_SOURCE=500   -DONIG_ENC_REGISTER=rb_enc_register -KPIC  -O2 -KV9 -KVIS2  -o enc/iso_8859_14.o -c ./enc/iso_8859_14.c                                                                     
"./enc/iso_8859_14.c", line 253: error: syntax error near `/'                   
make[1]: *** [enc/iso_8859_14.o] Error 1                                        
```

"//"によるC++/C99形式のコメント行は、古いfccではサポートされていないのが原因です。




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next