从源安装 GS 时遇到问题

从源安装 GS 时遇到问题

我正在尝试从源代码安装 Ghostscript 9.23,但出现了一些我不熟悉的错误。我用的是CentOS。

$ cat /proc/version
Linux version 2.6.9-67.ELsmp ([email protected]) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)) #1 SMP Wed Nov 7 13:58:04 EST 2007

./configure运行后make出现以下错误...

./lcms2art/include/lcms2art.h:146:10: warning: "ULLONG_MAX" is not defined
./lcms2art/include/lcms2art.h:153:10: warning: "LLONG_MAX" is not defined
./lcms2art/src/cmsplugin.c: In function `_cmsReadFloat32Number':
./lcms2art/src/cmsplugin.c:195: warning: implicit declaration of function `fpclassify'
./lcms2art/src/cmsplugin.c:195: error: `FP_ZERO' undeclared (first use in this function)
./lcms2art/src/cmsplugin.c:195: error: (Each undeclared identifier is reported only once
./lcms2art/src/cmsplugin.c:195: error: for each function it appears in.)
./lcms2art/src/cmsplugin.c:195: error: `FP_NORMAL' undeclared (first use in this function)
make: *** [obj/cmsplugin.o] Error 1

这意味着什么?我如何解决它?

答案1

为了让编译器启动math.h,我在完成后在 main 中添加-std=c99了:LCMS2_CFLAGSMakefileconfigure

LCMS2_CFLAGS=-DSHARE_LCMS=$(SHARE_LCMS) -std=c99

相关内容