2

我正在尝试libpipeline在 Mac OS X 上构建,但我遇到了其他使用autotools.

这是我得到的第一个错误:

/Developer/usr/bin/ranlib: file: .libs/libgnu.a(sig-handler.o) has no symbols

第二个错误更加神秘:

warning: /Developer/usr/bin/nm: no name list

最后,我得到了这个错误,推测这是以前错误的高潮。

Undefined symbols for architecture x86_64:
  "_program_name", referenced from:
      _error in libgnu.a(error.o)
      _error_at_line in libgnu.a(error.o)
ld: symbol(s) not found for architecture x86_64

完整日志:https ://gist.github.com/ahyattdev/7e4da95d48a6d25ad77aad926a14e7b0

重现步骤:获取源码libpipeline 1.4.1,运行configure; make

4

1 回答 1

2

此评论是对此答案的主要贡献

配置命令:

CFLAGS="-Wl,-flat_namespace,-undefined,suppress -Iwindows.h" ./configure

与特定于 Windows 的标头相关的一些错误会出现,但它只需要标头中的一些条目即可编译。

windows.h 的内容(我放在项目根目录下)

typedef intptr_t;
#define INVALID_HANDLE_VALUE -1

这将允许项目成功构建。

于 2016-04-25T00:06:17.370 回答