Selfmade ... Samba 3.0.20a on CentOS 4.0 x64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 2006-01-11 at 09:53 +0100, Gernot Stocker wrote:
> Hi all, 
> has somebody already tried to compile the rpm of the newest samba 
> package on a 64-bit CentOS. I tried to do it with the Fedora spec file 
> and it quit with an error, that some files are not located in the lib64 
> directory. These required files are located in the lib directory. Any 
> sugesstion how this problem could be fixed in a clean way? How 
> is this problem solved during the CentOS internal package building 
> for x64 packages?
> Thanks, 
>      Gernot
> _______________________________________________

Building for x86_64 requires a special set of packages for the machine
setup.  Here is the only way I have been able to build x86_64 packages.

1. Only have x86_64 and noarch packages installed ... plus 2 packages
from the i386 distro only:  glibc.i686 and glibc-devel.i386.  Everything
else must be x86_64 or noarch only.

The way to get there is to first make it so you can see the arch when
using RPM ... by adding this to your .rpmmacros for your build user:

%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

Then when you do commands, you can see the arch ...

Then a command like this will show all ix86 packages:

rpm -qa | grep i[3,5,6]86

and this will remove all i386 and i686 packages (if any other than
glibc.i686 or glibc-devel.i386 show up):

rpm -e `rpm -qa | grep i[3,5,6]86`

Then reinstall the required glibc files:

yum install glibc.i686 glibc-devel.i386

------------------------
This will make the machine not really usable as a workstation (no
OpenOffice or other i386 items) ... SO, you might want to setup a chroot
to build in.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.centos.org/pipermail/centos/attachments/20060111/c8e36be5/attachment.bin

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux