Summary: | lang/mono: failed to build port (4.0.1.28) | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Sergey Brunov <sergey.v.brunov> | ||||
Component: | Individual Port(s) | Assignee: | freebsd-mono (Nobody) <mono> | ||||
Status: | Closed Unable to Reproduce | ||||||
Severity: | Affects Many People | CC: | andoriyu, romain, sergey.v.brunov, w.litter | ||||
Priority: | --- | Flags: | sergey.v.brunov:
maintainer-feedback+
|
||||
Version: | Latest | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Sergey Brunov
2015-06-19 09:27:07 UTC
But it compiles with poudriere. I take a look in poudriere and got mono compile in the port with following flags (maybe someone can interpret this. I don't think all flags are necessarily but I haven't all tested yet - it needs time). The command is: make install clean MONO_SHARED_DIR="/wrkdirs/usr/ports/lang/mono/work" INSTALL_STRIP_FLAG="-s" LC_ALL=C TZ=UTC XDG_DATA_HOME=/wrkdirs/usr/ports/lang/mono/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/mono/work HOME=/wrkdirs/usr/ports/lang/mono/work TMPDIR="/tmp" NO_PIE=yes SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" CC="cc" CFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" CPP="cpp" LDFLAGS=" -fstack-protector" LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 444" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" ac_cv_header_sys_inotify_h=no ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl XDG_DATA_ SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=262144 CFLAGS+=-lpthread (most of this flags are in the Makefile - I think the important difference are the pathes of MONO and XDG - some of the other errors seems locale errors). Changed the Makefile and put in: OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls at last I had a error, the Makefile seems a little malformated ***missing separator on line 61 (last line, now last line is 67) I deleted the the line .include <bsd.port.mk> and the empty line before and tipped with vi in .include <bsd.port.mk> maybe a not printable character, or something else. with this it compiled and installed fine. Forgot one thing: The tons of warnings during the compilation are nearly the same as with poudriere. (Seems not a good code). ok, I check all. So I can reduce the flags to: make install clean XDG_DATA_HOME=/wrkdirs/usr/ports/lang/mono/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/lang/mono/work HOME=/wrkdirs/usr/ports/lang/mono/work NO_PIE=yes PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" CC="cc" CFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" CPP="cpp" LDFLAGS=" -fstack-protector" LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing" CFLAGS="-lpthread" Created attachment 159388 [details]
lang/mono Makefile
The problem in the above Makefile is: It ignored LIBS="" or LIBS=. I stilll had to write it on the commandline. I want to write following above (but it does not save this post, I repeat it). I was trying to put all (necessarily) flags poudriere used in the Makefile, it compiles fine if I start compilatation with make install clean LIBS=. But it does not compile without that. I guess I did something wrong in the syntax. It is solved with update to 4.0.3.20. Close as per requested |