我尝试在安装了GCC 4.4.7版的Linux机器上构建Postgresql9.3.9。 配置部分顺利执行命令:
./configure --prefix=/apps/php/postgresql-9.3.9 --enable-thread-safety --without-readline --without-zlib --enable-nls
但是gmake部分结束于:
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -Wall -Wmissing-prototypes -Wpointer -arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -I ../../../ src / include -I / apps / php /gd-devel-2.1/include -D_GNU_SOURCE -DVAL_CONFIGURE =" \"' - prefix = / apps / php / postgresql-9.3.9' ' - 使线程安全' ' - 无需-的readline' ' - 无需-zlib的' ' - 使-NLS' ' CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing' ' CPPFLAGS = -I /应用/ PHP / GD-devel的-2.1 /包括' \"" -DVAL_CC =" \" GCC \"" -DVAL_CPPFLAGS =" \" -I / apps / php / gd-devel-2.1 / include -D_GNU_SOURCE \"" -DVAL_CFLAGS =" \" -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv \"" -DVAL_CFLAGS_SL =" \" -fpic \"" -DVAL_LDFLAGS =" \" -L ../../../ src / common -Wl, - as-needed -Wl,-rpath,' / apps / php / postgresql -9.3.9 / lib中', - 使能新的DTAG \"" -DVAL_LDFLAGS_EX =" \" \"" -DVAL_LDFLAGS_SL =" \" \"" -DVAL_LIBS =" \" -lpgport -lpgcommon -lcrypt -ldl -lm \"" -c -o pg_config.o pg_config.c
gcc.orig:' - enable-thread-safety':没有这样的文件或目录
gcc.orig:' - 没有 - readline':没有这样的文件或目录
gcc.orig:' - without-zlib':没有这样的文件或目录
gcc.orig:' - enable-nls':没有这样的文件或目录
gcc.orig:' CFLAGS = -O2:没有这样的文件或目录
gcc.orig:' CPPFLAGS = -I / apps / php / gd-devel-2.1 / include'":没有这样的文件或目录
gcc.orig:":没有这样的文件或目录
cc1:错误:无法识别的命令行选项" -fno-strict-aliasing'""
cc1:错误:无法识别的命令行选项" -fwrapv""
gmake [3]:[pg_config.o]错误1
gmake [3]:离开目录/apps/php/postgresql-9.3.9/src/bin/pg_config' gmake [2]:[all-pg_config-recurse]错误2 gmake [2]:离开目录/apps/php/postgresql-9.3.9/src/bin'
gmake [1]:[all-bin-recurse]错误2
gmake [1]:离开目录/apps/php/postgresql-9.3.9/src'
gmake:[all-src-recurse]错误2