Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [autobuild.buildroot.net] Build results for 2015-01-24
Date: Sun, 25 Jan 2015 16:44:51 +0100	[thread overview]
Message-ID: <54C50F73.50702@openwide.fr> (raw)
In-Reply-To: <20150125073015.49B3C1013EF@stock.ovh.net>

Hi all,

Le 25/01/2015 08:30, Thomas Petazzoni a ?crit :
> Build statistics for 2015-01-24
>              libselinux-2.1.13 | 2 

> 
> Detail of failures
> ===================
>         bfin |              libselinux-2.1.13 | NOK | http://autobuild.buildroot.net/results/9e25e908d100886ad0c0a108000c7a283c2e350b/
>         bfin |              libselinux-2.1.13 | NOK | http://autobuild.buildroot.net/results/af38d7a4199372f49f1e22504fbbfc321d7234ed/

For some reason, ld report some undefined symbols when building the shared library libselinux.so.1 on bfin.

[...] -Wl,-soname,libselinux.so.1,-z,defs,-z,relro

callbacks.c:(.text+0x82): undefined reference to `_security_check_context'
callbacks.c:(.text+0x92): undefined reference to `_is_selinux_enabled'
label.c:(.text+0x172): undefined reference to `_selinux_raw_to_trans_context'
label_db.c:(.text+0xe4): undefined reference to `_selinux_sepgsql_context_path'
label_file.c:(.text+0xa24): undefined reference to `_selinux_file_context_subs_dist_path'
label_file.c:(.text+0xa38): undefined reference to `_selinux_file_context_subs_path'
label_file.c:(.text+0xa4c): undefined reference to `_selinux_file_context_path'
label_media.c:(.text+0xf2): undefined reference to `_selinux_media_context_path'
label_x.c:(.text+0xee): undefined reference to `_selinux_x_context_path'
mapping.c:(.text+0x25a): undefined reference to `_avc_reset'
sestatus.c:(.text+0x17e): undefined reference to `_security_getenforce'
sestatus.c:(.text+0x214): undefined reference to `_security_deny_unknown'
collect2: ld returned 1 exit status

All missing symbols are defined in selinux_internal.h or avc_internal.h
by hidden_proto() which is defined in src/dso.h.

hidden_proto() add some asm code which depends on architecture:
# if defined(__alpha__) || defined(__mips__)
#  define hidden_def(fct) \
     asm (".globl " #fct "\n" #fct " = " #fct "_internal");
# else
#  define hidden_def(fct) \
     asm (".globl " #fct "\n.set " #fct ", " #fct "_internal");
#endif

I suppose this asm code is not supported on bfin.
Maybe disable libselinux on bfin ?

Best regards,
Romain Naour

  parent reply	other threads:[~2015-01-25 15:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-25  7:30 [Buildroot] [autobuild.buildroot.net] Build results for 2015-01-24 Thomas Petazzoni
2015-01-25 10:38 ` Vicente Olivert Riera
2015-01-25 15:44 ` Romain Naour [this message]
2015-01-26 13:55   ` Matthew Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54C50F73.50702@openwide.fr \
    --to=romain.naour@openwide.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox