- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试编译 Tizen 源代码。编译工具使用rpm构建环境。在编译特定包时,我遇到 rpm 构建问题“Bad exit status from/var/tmp/rpm-tmp.b1DgAt (%build)”
这是我的构建日志
Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_PushUrlRequestListener.cpp.o
[ 8s] [ 69%] Building CXX object CMakeFiles/osp-messaging.dir src/FMsg_WapPushManagerImpl.cpp.o
[ 8s] [ 71%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_WapPushMessageImpl.cpp.o
[ 8s] [ 73%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_ComposerEvent.cpp.o
[ 8s] [ 75%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_ComposerEventArg.cpp.o
[ 8s] [ 77%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_RecipientListImpl.cpp.o
[ 8s] [ 79%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsEvent.cpp.o
[ 8s] [ 81%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsEventArg.cpp.o
[ 9s] [ 83%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsManagerImpl.cpp.o
[ 9s] [ 85%] [ 87%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsMessageImpl.cpp.o
[ 9s] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_CbsChannelImpl.cpp.o
[ 9s] [ 89%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_CbsMessageImpl.cpp.o
[ 9s] [ 91%] [ 93%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_EtwsPrimaryNotificationImpl.cpp.o
[ 9s] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_MsgUtil.cpp.o
[ 9s] [ 95%] [ 97%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_SmsMmsCallbackHandler.cpp.o
[ 9s] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_MessagingMessageTypes.cpp.o
[ 9s] [100%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_MessagingIpcProxy.cpp.o
[ 10s] In file included from /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingMessageTypes.cpp:24:0:
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:35:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:37:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:38:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:42:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:43:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:45:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc /FMsg_MessagingMessageTypes.h:46:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:49:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:50:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:51:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:52:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:53:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:54:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:55:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:56:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:61:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:63:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:64:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] In file included from /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingMessageTypes.cpp:24:0:
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:65:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] make[2]: *** [CMakeFiles/osp-messaging.dir/src/FMsg_MessagingMessageTypes.cpp.o] Error 1
[ 10s] make[2]: *** Waiting for unfinished jobs....
[ 10s] In file included from /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:31:0:
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:35:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:37:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:38:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:42:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:43:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:45:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:46:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:49:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:50:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:51:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:52:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:53:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:54:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:55:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:56:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:61:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:63:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:64:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] In file included from /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:31:0:
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/inc/FMsg_MessagingMessageTypes.h:65:1: error: 'MessagingMsgStart' was not declared in this scope
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp: In member function 'virtual void Tizen::Messaging::_MessagingProxy::OnIpcResponseReceived(Tizen::Io::_IpcClient&, const IPC::Message&)':
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:122:2: error: duplicate case value
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:121:2: error: previously used here
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:123:2: error: duplicate case value
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:121:2: error: previously used here
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:124:2: error: duplicate case value
[ 10s] /home/abuild/rpmbuild/BUILD/osp-messaging-1.2.2.0/src/FMsg_MessagingIpcProxy.cpp:121:2: error: previously used here
[ 10s] make[2]: *** [CMakeFiles/osp-messaging.dir/src/FMsg_MessagingIpcProxy.cpp.o] Error 1
[ 11s] make[1]: *** [CMakeFiles/osp-messaging.dir/all] Error 2
[ 11s] make: *** [all] Error 2
[ 11s] error: Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build)
[ 11s]
[ 11s]
[ 11s] RPM build errors:
[ 11s] Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build)
我正在使用以下规范文件
%define _debug_package %{nil}
%define __strip /bin/true
Name: osp-messaging
Summary: osp messaging library
Version: 1.2.2.0
Release: 2
Group: System/Libraries
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(chromium)
BuildRequires: pkgconfig(capi-appfw-application)
BuildRequires: pkgconfig(msg-service)
BuildRequires: pkgconfig(push)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(email-service)
BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libwbxml2)
BuildRequires: pkgconfig(osp-appfw)
BuildRequires: osp-appfw-internal-devel
BuildRequires: pkgconfig(osp-net)
BuildRequires: osp-net-internal-devel
BuildRequires: pkgconfig(osp-bluetooth)
BuildRequires: pkgconfig(osp-nfc)
BuildRequires: pkgconfig(osp-json)
BuildRequires: pkgconfig(osp-shell)
# runtime requires
Requires: osp-appfw
Requires: osp-bluetooth
Requires: osp-nfc
Requires: osp-json
Requires: osp-shell
%description
osp messaging library
%package devel
Summary: osp messaging library (Development)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description devel
osp messaging library (DEV)
%package internal-devel
Summary: osp messaging library (Internal)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description internal-devel
osp messaging library (Internal-DEV)
%package debug
Summary: osp messaging library (Development)
Group: TO_BE/FILLED_IN
Requires: %{name} = %{version}-%{release}
%description debug
osp messaging library (DEV)
%prep
%setup -q
%build
%if 0%{?tizen_build_binary_release_type_eng}
CXXFLAGS="$CXXFLAGS -D_SECURE_LOG"
%endif
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %{ix86}
%if 0%{?simulator}
CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
%else
CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ " cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
%endif
%else
%if 0%{?tizen_build_binary_release_type_eng}
CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
%else
CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed v-fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
%endif
%endif
# Call make instruction with smp support
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/license
cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%manifest osp-messaging.manifest
/usr/share/license/%{name}
%{_libdir}/osp/*.so*
%files devel
%{_includedir}/osp/*.h
%{_libdir}/pkgconfig/osp-messaging.pc
%files internal-devel
%{_includedir}/osp/messaging/*.h
%files debug
%{_libdir}/osp/debug/*.so*
该错误与 rpm 构建有关,有人可以帮助我解决此 rpm 错误吗?
最佳答案
上述错误是由于 rpm 构建环境在运行时链接文件造成的,因此在规范文件的 build
部分下显示错误
要解决上述错误,请在包的规范文件的开头添加以下行
%define __debug_package %{nil}
如果已经有类似的代码(%define ^_debug_package %{nil}),请将其替换为上面的代码
osp
包中的错误也可以通过将以上行添加到规范文件中来解决。
并且还要确保您使用发布存储库 URL 进行编译,可以使用以下发布存储库 URL
关于rpmbuild -/var/tmp/rpm-tmp.b1DgAt (%build) 的退出状态错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21595748/
这个问题已经有答案了: Can I bind an array to an IN() condition in a PDO query? (23 个回答) 已关闭 5 年前。 任何人都可以看到我如何在
我阅读了关于此的 bash 手册页,但我不明白其中的区别。我对它们进行了测试,它们似乎产生了完全相同的结果。 如果值不是通过命令行参数设置的,我想设置一个变量的默认值。 #!/bin/bash var
我为我的网站开了一家商店,并让它运行起来,但我意识到它无法正确购买商品。换句话说,您不会走进一家商店,拿起一件商品,购买,再次购买,购买,再次购买,等等,以获得想要的数量。你一次捕获他们。我的网站缺少
基本上,我想知道为什么会这样(将列表的内存地址作为参数传递): void init_lista (elemPtr *list) { *list = NULL; } int main(){
看到这个问题:Is there a (built-in) way in JavaScript to check if a string is a valid number?还有这个:jsperf ,其
我有以下字符串: 我想用正则表达式替换所有后面有 px 的数字,并用 X 乘以它们的值。 (X 是一个变量)。 所以如果X=3,结果就是 请注意 X 必须是我将检索到函数的变量 最佳答案 以下代码
这个问题在这里已经有了答案: 关闭 13 年前。 同时 (var != var) System.out.println("循环.."); 执行它..如何声明..var
我只是好奇。我想知道表达式是否有特定原因 var &= expr 行为方式与不同 var = var && expr. 看起来第一个表达式中的表达式正在执行,而不管 var 上的 false 值。 我
我有这个 Ruby 代码: var1 = 10 puts var1.object_id var1 = var1 + 0 puts var1.object_id var1 = var1 + 1 puts
这个问题在这里已经有了答案: 关闭 10 年前。 Possible Duplicate: demote boost::function to a plain function pointer 所以我
好吧,堆栈溢出, 我花了几个小时来解决 javascript 中的问题(在 NodeJS 服务器中编写),但我真的不明白。 这就是发生的事情: var data = {x: 50}; var temp
首先,我在这里处理 1 和 0,我很清楚 1 == true 和 0 == false。但是我很好奇为什么这不起作用: $var = 1; echo $var; /* 1 */ $var = $var
标题说的是什么:将变量封装在 {}、"" 或 "{}"中是什么意思?我无法在网上找到关于此的任何解释 - 除了使用不会产生任何结果的符号外,我无法引用它们。 这是一个例子: declare -a gr
我需要将信息发送到我的 Html。例如 $(document).ready(function() { var = "'#"+result.tag+"'" // var = '#tag_dinamy
是否可能,如果可以,如何将以下表达式转换为一行? DEV=$(lsblk -no KNAME,MODEL | grep 'ModelNAME') DEV=${DEV%%'ModelNAME'} 简单的
isset($var) == "Test" 和 isset($var) && $var == 'Test" 有什么区别? 最佳答案 这里是一个简短的例子: $var = "Chuck Test"; v
isset($var) == "Test" 和 isset($var) && $var == 'Test" 有什么区别? 最佳答案 这里是一个简短的例子: $var = "Chuck Test"; v
如果我有一个字符串:[Object a:var b:var c:var]; 如何将 a:、b: 和 c: 与正则表达式匹配? 我试过:\[.+\s+(.+:).+\] 但它不适用于 a、b 和 c,它
这个问题在这里已经有了答案: Why does this if-statement combining assignment and an equality check return true? (
我正在 Powershell 中使用 SCSM,但遇到了 if 语句的问题。 我有一个函数,它根据作为变量传递给函数的条件收集数据。 例子: $JMLs1 = collectTickets -crit
我是一名优秀的程序员,十分优秀!