Bernard and Andrea, sorry for the delay testing this out.
It didn't quite work. My initial analysis was wrong -- I didn't notice
that on the initrd, /lib64 is just a symbolic link to /lib. That's odd,
but it's intentional, so I don't want to mess with it. As long as we
don't have 32-bit and 64-bit versions of the same library, it should be
fine.
The problem is, that's what happens with libnss* on x86_64. The standard
x86_64 boel_binaries.tar.gz contains the 32-bit version of
lib/libnss_files-2.3.4.so. When boel_binaries is untarred, it overwrites
the 64-bit version because of that symbolic link! Since SSH is linked
against the 64-bit version, it dies.
Basically, we need to be sure only the 64-bit versions of libnss* make
it into boel_binaries on x86_64 (or if both make it into the tarfile,
that the 64-bit versions get untarred last). I think the 32-bit version
is getting pulled in from OPENSSH_OTHER_FILES, which is defined in
openssh.rul. This patch may fix it, but I don't have a build system set
up to test it on. Take a look and see what you think.
Thanks again for the help.
- Josh
Index: make.d/openssh.rul
===================================================================
--- make.d/openssh.rul (revision 3734)
+++ make.d/openssh.rul (working copy)
@@ -20,9 +20,12 @@
OPENSSH_CONF_FILES := $(TOPDIR)/etc/ssh/ssh_config \
$(TOPDIR)/etc/ssh/sshd_config
+ifeq ($(ARCH),x86_64)
+ OPENSSH_OTHER_FILES := $(shell echo /lib64/libnss_files*)
+else
+ OPENSSH_OTHER_FILES := $(shell echo /lib/libnss_files*)
+endif
-OPENSSH_OTHER_FILES := $(shell echo /lib/libnss_files*)
-
OPENSSH_SOURCE := $(SRC_DIR)/$(OPENSSH_TARBALL)
ifeq ($(ARCH),i386)
=== End patch ===
Bernard Li wrote:
> Hi Joshua:
>
> This bug should be fixed in trunk.
>
> If you would like to test, you can try these RPMs I just built:
>
> http://www.bcgsc.ca/downloads/oscar/systemimager
>
> Thanks,
>
> Bernard
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Joshua Cope
>> Sent: Monday, July 17, 2006 5:29
>> To: [EMAIL PROTECTED]; [email protected]
>> Subject: Re: [Sisuite-users] SSH on x86_64
>>
>> Hearing no response, I looked into the ssh-keygen problem on
>> x86_64. A
>> strace showed that it's failing on a getpwuid() call, which in turn
>> fails to locate /lib64/libnss_files.so.2. Copying a working
>> library from
>> a running x86_64 system fixed the problem on my system.
>>
>> It may just be a matter of adding the 64-bit library to
>> boel_binaries,
>> but I don't know enough about the linker/loader to fix this
>> myself. I've
>> filed bug request 1523803 with more details.
>>
>> - Josh
>>
>>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users