[Aurora-sparc-devel] [SPARC64] libselinux-1.19.1-8.src.rpm

Christian Joensson christian.joensson at gmail.com
Tue May 16 07:40:34 EDT 2006


[Maybe a bit off topic here, let me know if I should drop this(these?)
thread(threads), for now, I hope you can accept the information herein
as memory support for me and others interested until the foot is set
down on what the Aurora project wants with sparc64 variants...]

Now, libselinux...

barfs like this:

cc  -shared -o libselinux.so.1 avc.lo avc_internal.lo avc_sidtab.lo
booleans.lo checkAccess.lo check_context.lo compute_av.lo
compute_create.lo compute_relabel.lo compute_user.lo context.lo
disable.lo enabled.lo fgetfilecon.lo freeconary.lo freecon.lo
fsetfilecon.lo getcon.lo get_context_list.lo get_default_type.lo
getenforce.lo getexeccon.lo getfilecon.lo getfscreatecon.lo
getpeercon.lo getpidcon.lo getprevcon.lo init.lo lgetfilecon.lo
load_policy.lo lsetfilecon.lo matchmediacon.lo matchpathcon.lo
policyvers.lo query_user_context.lo rpm.lo selinux_config.lo
setenforce.lo setexeccon.lo setfilecon.lo setfscreatecon.lo
-Wl,-soname,libselinux.so.1,-z,defs
/usr/bin/ld: warning: sparc:v9 architecture of input file `avc.lo' is
incompatible with sparc output

due to not being able to build shared libs... again, -m64 fixes it, in
the libselinux case, a simple CC='gcc -m64' in front of the rpmbuild command
does the trick for me.

CC='gcc -m64' rpmbuild --rebuild libselinux-1.19.1-8.src.rpm --target=sparc64

uhm, why is libselinux-1.19.1-8.src.rpm in the updates dir, the
build-2.0 dir contains libselinux-1.23.10-2 .. a newer version, right?
-- 
Cheers,

/ChJ


More information about the Aurora-sparc-devel mailing list