小编Jam*_*mes的帖子

无法接收PACKAGE意图的广播

我正在尝试注册广播接收器以接收包事件的广播事件.以下是清单文件中的代码和接收器.日志状态永远不会发生,但我可以清楚地看到"HomeLoaders"(Launcher)调试语句的相同广播触发.我错过了什么?

public class IntentListener extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        // TODO Auto-generated method stub
        Log.i("INTENT LISTNER:", intent.getAction());
    }
}

<receiver android:name="IntentListener" android:enabled="true" android:exported="true">
    <intent-filter>
        <data android:scheme="package"></data>
        <action android:name="android.intent.action.PACKAGE_ADDED"></action>
        <action android:name="android.intent.action.PACKAGE_ADDED"></action>
        <action android:name="android.intent.action.PACKAGE_CHANGED"></action>
    </intent-filter>
</receiver>
Run Code Online (Sandbox Code Playgroud)

android

5
推荐指数
1
解决办法
3559
查看次数

在Solaris上构建binutils 2.21.1a时出错

我正在尝试在Solaris sun4u sparc SunOS 5.10上从http://ftp.gnu.org/gnu/binutils构建binutils 2.21.1a .我使用的是gcc 4.0.2版.当我构建这是错误:

cc1: warnings being treated as errors
compress.c: In function 'bfd_compress_section_contents':
compress.c:100: warning: implicit declaration of function 'compressBound'
make[2]: *** [compress.lo] Error 1
make[2]: Leaving directory `/nfs/netapp0/user/home/hart/downloads/binutils-2.21.1/bfd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/nfs/netapp0/user/home/hart/downloads/binutils-2.21.1/bfd'
*** Error code 2
make: Fatal error: Command failed for target `all'
Run Code Online (Sandbox Code Playgroud)

我添加--disable-werror到配置行尝试绕过它,并希望继续构建.不幸的是,这也没有用,我在链接时得到了这个新的,相关的错误:

Undefined                       first referenced
 symbol                             in file
compressBound                       ../bfd/.libs/libbfd.a(compress.o)
ld: fatal: Symbol referencing errors. No output written to size
collect2: ld …
Run Code Online (Sandbox Code Playgroud)

solaris gnu build-error binutils

4
推荐指数
1
解决办法
2377
查看次数

标签 统计

android ×1

binutils ×1

build-error ×1

gnu ×1

solaris ×1