配置错误

时间:2018-03-31 05:31:39

标签: macos configure

Mac OS X

我配置然后制作我的odbc二进制文件。

这是configure命令:

./configure CFLAGS="-arch i386 -arch x86_64 -D par1=1024" --enable-pthreads --with-iodbc=/usr/local/iODBC --with-libpq=$pg_dir

但结果是:

...
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
./configure: line 4506: syntax error near unexpected token `with,'
./configure: line 4506: `PGAC_ARG_REQ(with, odbcver,'
make: *** [config.status] Error 2
...

是什么原因以及检查和修复的内容?

我跑

  

autoconf的

----------
autoconf
aclocal.m4:21: warning: this file was generated for autoconf 2.68.
You have another version of autoconf.  It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autoreconf'.
configure.ac:331: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
configure.ac:331: the top level
configure.ac:331: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:197: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:643: AS_IF is expanded from...
../../lib/autoconf/general.m4:2598: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2608: AC_COMPILE_IFELSE is expanded from...
configure.ac:331: the top level
configure.ac:64: error: possibly undefined macro: AC_DEFINE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

1 个答案:

答案 0 :(得分:1)

其中一个原因是:宏PGAC_ARG_REQ和其他一些未定义,我找到* .m4,复制并且它可以工作。

非常感谢L' l给予了极大的帮助!