Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 31 Mar 2013 11:30:35 +0400
Subject: Re: embedded Owl - glibc/i586 build error SOLVED

On 29-Mar-2013 13:52:54 +0100, Pavel Kankovsky wrote:

 >> I tried setting ARCHITECTURE=i386 in buildworld.conf together
 >> with passing "-march=i486 -mtune=i586" to %optflags (via
 >> ~build/.rpmmacros), and everything went fine except the only
 >> package. Alas, that's glibc:
 >> error: conflicting types for '__lll_lock_wait'

 > It's Glibc's way of telling you NPTL is not
 > supported on i386 according to comment #4 here:
 > <>

That's why I use -march=i486

 > I think you need to build it with ARCHITECTURE=i486 or i586 but
 > it'll take some cunning to make &al. swallow it. uses the ARCHITECTURE= parameter for getting correct
%optflags from ~build/.rpmmacros; besides that, I simply changed
%define _target_platform i486-openwall-linux
in glibc.spec and it built just fine. So, the final solution is

1. Change to "-march=i486 -mtune=i586" in ~build/.rpmmacros
2. Add the following lines to glibc.spec:

%if 0%(test %_target_platform = i386-openwall-linux && echo 1)
	%define _target_platform i486-openwall-linux

I think this may be safely committed to mainstream. Also, we may
want to define %_target_platform using ~build/.rpmmacros as well.

Solar, all?

Alexey V. Vissarionov aka Gremlin from Kremlin <gremlin  gremlin  ru>
GPG key ID: 0xEF3B1FA8, keyserver: hkp://
GPG key fingerprint: 8832 FE9F A791 F796 8AC9 6E4E 909D AC45 EF3B 1FA8

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ