【问题标题】:Ghostscript compiling on HP-UX 11.31在 HP-UX 11.31 上编译 Ghostscript
【发布时间】:2017-11-08 08:47:58
【问题描述】:

环境:

  • HP-UX 11.31
  • GCC 4.2.3
  • Ghostscript 9.22

尝试使用“.\configure”进行编译时 我们的 Unix 管理员得到

Bad character | (octal 174), line 278Make: .  Stop.

当尝试使用 "./configure CFLAGS="-Dinline=\"\"" --prefix=/usr/ghostscript --without-gnu-make" 我们的 Unix 管理员得到:

     gcc   -O -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE="unsigned long long" -D__USE_UNIX98=1 -D"strnlen(a,b)=strlen(a)" -Dinline=""  -I./base -o ./obj/aux/genconf ./base/genconf.c  -lm -ldl
./base/genconf.c: In function 'read_token':
./base/genconf.c:891: warning: array subscript has type 'char'
..
./base/genarch.c: In function 'main':
./base/genarch.c:123: warning: unused variable 'sp'
        ./obj/aux/genarch ./obj/arch.h
..

尝试使用“./configure CC=cc -Ae CFLAGS=-D_HPUX_SOURCE -O $(XCFLAGS)”时 我们的 Unix 管理员得到:

sh: XCFLAGS:  not found.
configure: error: unrecognized option: `-Ae'
Try `./configure --help' for more information 

与 -Aa 相同。

其他使用 HP-UX 的人遇到过这个问题吗?

【问题讨论】:

    标签: ghostscript hp-ux


    【解决方案1】:

    首先,如果您要在 Ghostscript 构建期间抱怨每个警告,您将花费大量时间发布!

    FWIW,我们建议使用 gcc,而不是供应商的 cc。

    如果您打算使用 HP cc,则需要正确引用选项: ./configure CC="cc -Ae" CFLAGS="-D_HPUX_SOURCE -O $(XCFLAGS)"

    选项一般用空格隔开,所以如果你的选项包含空格,你必须加上引号。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-07
      • 2023-04-02
      • 2015-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多