【问题标题】:FreeBSD: Makefile Malformed conditional (${PORT_OPTIONS:MLIBSIGSEGV}), make fatal errorFreeBSD:Makefile Malformed conditional (${PORT_OPTIONS:MLIBSIGSEGV}),产生致命错误
【发布时间】:2012-09-25 16:08:07
【问题描述】:

我正在寻找一种在 FreeBSD 6.3 上的 ports 文件夹中为各种 ports 包进行 make install 的方法。

我正在尝试使用端口安装 m4,但出现此错误。

[root@SM2-BSD /usr/ports/devel/m4]# make install
"Makefile", line 38: Malformed conditional (${PORT_OPTIONS:MLIBSIGSEGV})
"Makefile", line 41: if-less else
"Makefile", line 43: if-less endif
make: fatal errors encountered -- cannot continue

这是在我做了之后发生的

portsnap fetch extract update

在进行 make install 时,我在 emacs 端口中也遇到了类似的错误。

[root@SM2-BSD /usr/ports/editors/emacs]# make install
"Makefile", line 83: Malformed conditional (${PORT_OPTIONS:MCANNA})
"Makefile", line 92: if-less endif
"Makefile", line 100: Malformed conditional (${PORT_OPTIONS:MSVG})
"Makefile", line 106: Malformed conditional (${PORT_OPTIONS:MGTK2})
"Makefile", line 109: if-less elif
"Makefile", line 112: if-less elif
"Makefile", line 115: if-less elif
"Makefile", line 118: if-less elif
"Makefile", line 121: if-less endif
"Makefile", line 123: Malformed conditional (!${PORT_OPTIONS:MSCROLLBARS})
"Makefile", line 125: if-less endif
"Makefile", line 127: Malformed conditional (!${PORT_OPTIONS:MSYNC_INPUT})
"Makefile", line 129: if-less endif
"Makefile", line 131: Malformed conditional (${PORT_OPTIONS:MJPEG})
"Makefile", line 133: if-less else
"Makefile", line 135: if-less endif
"Makefile", line 137: Malformed conditional (${PORT_OPTIONS:MTIFF})
"Makefile", line 139: if-less else
"Makefile", line 141: if-less endif
"Makefile", line 143: Malformed conditional (${PORT_OPTIONS:MGIF})
"Makefile", line 145: if-less else
"Makefile", line 147: if-less endif
"Makefile", line 149: Malformed conditional (${PORT_OPTIONS:MPNG})
"Makefile", line 151: if-less else
"Makefile", line 153: if-less endif
"Makefile", line 155: Malformed conditional (${PORT_OPTIONS:MXPM})
"Makefile", line 157: if-less else
"Makefile", line 159: if-less endif
"Makefile", line 161: Malformed conditional (${PORT_OPTIONS:MXFT})
"Makefile", line 165: Malformed conditional (${PORT_OPTIONS:MM17N})
"Makefile", line 168: if-less else
"Makefile", line 170: if-less endif
"Makefile", line 171: Malformed conditional (${PORT_OPTIONS:MOTF})
"Makefile", line 174: if-less else
"Makefile", line 176: if-less endif
"Makefile", line 177: if-less else
"Makefile", line 179: Malformed conditional (${PORT_OPTIONS:MM17N})
"Makefile", line 181: if-less elif
"Makefile", line 183: if-less endif
"Makefile", line 185: if-less endif
"Makefile", line 187: Malformed conditional (${PORT_OPTIONS:MMAGICK})
"Makefile", line 190: if-less else
"Makefile", line 192: if-less endif
"Makefile", line 194: Malformed conditional (${PORT_OPTIONS:MGSETTINGS})
"Makefile", line 197: if-less else
"Makefile", line 199: if-less endif
"Makefile", line 201: Malformed conditional (${PORT_OPTIONS:MGCONF})
"Makefile", line 204: if-less else
"Makefile", line 206: if-less endif
"Makefile", line 208: Malformed conditional (${PORT_OPTIONS:MXIM})
"Makefile", line 210: if-less else
"Makefile", line 212: if-less endif
"Makefile", line 214: if-less endif
"Makefile", line 216: Malformed conditional (${PORT_OPTIONS:MSOUND})
"Makefile", line 218: if-less else
"Makefile", line 220: if-less endif
"Makefile", line 222: Malformed conditional (${PORT_OPTIONS:MDBUS})
"Makefile", line 225: if-less else
"Makefile", line 227: if-less endif
"Makefile", line 229: Malformed conditional (${PORT_OPTIONS:MXML})
"Makefile", line 232: if-less else
"Makefile", line 234: if-less endif
"Makefile", line 236: Malformed conditional (${PORT_OPTIONS:MGNUTLS})
"Makefile", line 239: if-less else
"Makefile", line 241: if-less endif
make: fatal errors encountered -- cannot continue

【问题讨论】:

    标签: makefile freebsd


    【解决方案1】:

    您的make 实用程序太旧,无法处理当前端口树的 Makefile 使用的功能。您必须更新操作系统或make 实用程序及其使用的所有基础架构(*.mk 文件)。后者是一项艰巨的任务,不推荐。如果您不想更新当前操作系统,那么在虚拟机中安装当前操作系统怎么样? VirtualBox 可能是一个好的开始(尽管您可能在这里面临另一个鸡与蛋的问题:VirtualBox 端口 Makefile 可能会导致相同的错误。)我会认真考虑将您的操作系统更新为 9-STABLE 并让所有这些问题成为不是问题。

    【讨论】:

    • 我建议使用 9-RELEASE,而不是 9-STABLE。
    猜你喜欢
    • 2017-08-21
    • 1970-01-01
    • 2016-04-30
    • 1970-01-01
    • 1970-01-01
    • 2014-06-17
    • 2011-07-21
    • 2016-10-27
    • 1970-01-01
    相关资源
    最近更新 更多