如何修复 buildroot 映像中错误链接的 mono lib?

如何修复 buildroot 映像中错误链接的 mono lib?

当前 buildroot 2015.11.1 配置为使用 mono 时,将在 /home/userX/buildroot/output/host/usr/lib/ 路径中搜索 libMonoPosixHelper.so。该路径和文件可能存在于我的构建计算机上,但不存在于目标上。

我有一个解决方法,可以创建此文件夹并在启动时从 RAM 磁盘中的 /usr/lib 复制 libMonoPosixHelper.so 。

以下 libMonoPosixHelper 的搜索结果来自

buildroot/output/build/

从哪里开始搜索错误的正确位置?

查找 /home/userX/buildroot -name "*.in"|grep mono|awk '{print "grep -H libMonoPosixHelper " $1}'|sh

host-mono-4.0.2.5/runtime/Makefile.in:  sed 's,target="$(prefix)/$(reloc_libdir)/libMonoPosixHelper$(libsuffix)",target="'$$d'/libMonoPosixHelper.la",' ../data/config > $@t
host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \
host-mono-4.0.2.5/support/Makefile.in:am__libMonoPosixHelper_la_SOURCES_DIST = errno.c map.c map.h mph.h \
host-mono-4.0.2.5/support/Makefile.in:am_libMonoPosixHelper_la_OBJECTS = $(am__objects_3) $(am__objects_5) \
host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_OBJECTS = $(am_libMonoPosixHelper_la_OBJECTS)
host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
host-mono-4.0.2.5/support/Makefile.in:  $(AM_CFLAGS) $(CFLAGS) $(libMonoPosixHelper_la_LDFLAGS) \
host-mono-4.0.2.5/support/Makefile.in:SOURCES = $(libMonoPosixHelper_la_SOURCES) \
host-mono-4.0.2.5/support/Makefile.in:DIST_SOURCES = $(am__libMonoPosixHelper_la_SOURCES_DIST) \
host-mono-4.0.2.5/support/Makefile.in:  libMonoPosixHelper.la           \
host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_SOURCES = \
host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LIBADD = \
host-mono-4.0.2.5/support/Makefile.in:# libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1
host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LDFLAGS = -no-undefined -avoid-version
host-mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper.la: $(libMonoPosixHelper_la_OBJECTS) $(libMonoPosixHelper_la_DEPENDENCIES) $(EXTRA_libMonoPosixHelper_la_DEPENDENCIES) 
host-mono-4.0.2.5/support/Makefile.in:  $(AM_V_CCLD)$(libMonoPosixHelper_la_LINK) -rpath $(libdir) $(libMonoPosixHelper_la_OBJECTS) $(libMonoPosixHelper_la_LIBADD) $(LIBS)
host-mono-4.0.2.5/data/config.in:   <dllmap dll="MonoPosixHelper" target="@prefix@/@reloc_libdir@/libMonoPosixHelper@libsuffix@" os="!windows" />
host-mono-4.0.2.5/mono-core.spec.in:rm -f %buildroot%_libdir/libMonoPosixHelper.a
host-mono-4.0.2.5/mono-core.spec.in:%_libdir/libMonoPosixHelper.so*
mono-4.0.2.5/runtime/Makefile.in:   sed 's,target="$(prefix)/$(reloc_libdir)/libMonoPosixHelper$(libsuffix)",target="'$$d'/libMonoPosixHelper.la",' ../data/config > $@t
mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_DEPENDENCIES = $(am__DEPENDENCIES_2) \
mono-4.0.2.5/support/Makefile.in:am__libMonoPosixHelper_la_SOURCES_DIST = errno.c map.c map.h mph.h \
mono-4.0.2.5/support/Makefile.in:am_libMonoPosixHelper_la_OBJECTS = $(am__objects_3) $(am__objects_5) \
mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_OBJECTS = $(am_libMonoPosixHelper_la_OBJECTS)
mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
mono-4.0.2.5/support/Makefile.in:   $(AM_CFLAGS) $(CFLAGS) $(libMonoPosixHelper_la_LDFLAGS) \
mono-4.0.2.5/support/Makefile.in:SOURCES = $(libMonoPosixHelper_la_SOURCES) \
mono-4.0.2.5/support/Makefile.in:DIST_SOURCES = $(am__libMonoPosixHelper_la_SOURCES_DIST) \
mono-4.0.2.5/support/Makefile.in:   libMonoPosixHelper.la           \
mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_SOURCES = \
mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LIBADD = \
mono-4.0.2.5/support/Makefile.in:# libMonoPosixHelper_la_LDFLAGS = -no-undefined -version-info 1:0:1
mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper_la_LDFLAGS = -no-undefined -avoid-version
mono-4.0.2.5/support/Makefile.in:libMonoPosixHelper.la: $(libMonoPosixHelper_la_OBJECTS) $(libMonoPosixHelper_la_DEPENDENCIES) $(EXTRA_libMonoPosixHelper_la_DEPENDENCIES) 
mono-4.0.2.5/support/Makefile.in:   $(AM_V_CCLD)$(libMonoPosixHelper_la_LINK) -rpath $(libdir) $(libMonoPosixHelper_la_OBJECTS) $(libMonoPosixHelper_la_LIBADD) $(LIBS)
mono-4.0.2.5/data/config.in:    <dllmap dll="MonoPosixHelper" target="@prefix@/@reloc_libdir@/libMonoPosixHelper@libsuffix@" os="!windows" />
mono-4.0.2.5/mono-core.spec.in:rm -f %buildroot%_libdir/libMonoPosixHelper.a
mono-4.0.2.5/mono-core.spec.in:%_libdir/libMonoPosixHelper.so*

答案1

将错误发布到buildroot bugzilla。它已修补,并且当使用 SerialPort 启动单声道可执行文件时,较新版本的 buildroot >2016 不会显示问题。

相关内容