Code:
# rpmbuild -vv -ba openssh.spec
#[...]
gcc -o x11-ssh-askpass -fmessage-length=0 -O2 -Wall -g -fno-strict-aliasing -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -L/usr/X11R6/lib64 drawing.o dynlist.o resources.o x11-ssh-askpass.o -lXt -lX11 -lSM -lICE
/usr/bin/ld: skipping incompatible /usr/X11R6/lib64/libXt.so when searching for -lXt
/usr/bin/ld: skipping incompatible /usr/X11R6/lib64/libXt.a when searching for -lXt
/usr/bin/ld: cannot find -lXt
collect2: ld returned 1 exit status
make: *** [x11-ssh-askpass] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.46470 (%build)
RPM build errors:
Unknown option ? in verify_permissions(:-:)
Bad exit status from /var/tmp/rpm-tmp.46470 (%build)
D: May free Score board((nil))
Code:
# file /usr/X11R6/lib64/libXt.so
/usr/X11R6/lib64/libXt.so: symbolic link to `libXt.so.6.0'
# file /usr/X11R6/lib64/libXt.so.6.0
/usr/X11R6/lib64/libXt.so.6.0: ELF 64-bit MSB shared object, cisco 7500, version 1 (SYSV), stripped
# file /usr/X11R6/lib64/libXt.a
/usr/X11R6/lib64/libXt.a: current ar archive
# uname -a
Linux suseppc01 2.6.16.21-0.8-ppc64 #1 SMP Mon Jul 3 18:25:39 UTC 2006 ppc64 ppc64 ppc64 GNU/Linux
# cat /etc/*release
SUSE Linux Enterprise Server 10 (ppc)
VERSION = 10
LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-ppc:core-3.0-ppc"
# rpm -qa | grep xorg-x11-devel
xorg-x11-devel-64bit-6.9.0-50.65.7 #these versions are from 10.3, but 10.0 packages didn't work either, same error
xorg-x11-devel-6.9.0-50.65.7
I'm trying to build updated (5.3p1) OpenSSH packages for use on a number of my systems. I succeeded on Suse 10 x86 and x64, but the same procedure on ppc fails as above. What I did was take the OpenSSH src rpm from Suse 10.0, changed the spec file to point at a 5.3p1 source archive and to not apply any incompatible patches, then build as above.
Simply building OpenSSH 5.3p1 from source works perfectly, but a) this installs to /usr/local and to use I'd have to change /etc/init.d/sshd and b) I have a number of systems and want RPMs to apply, not to have to compile on every system.
I tried the same on a 10.1 ppc system, and it failed with the same error, only looking for -lssh not -lXt.
I don't have the option of updating these systems to a newer service pack, but I'll try to find one that's there already. In the meantime, any ideas?
Edit: Same thing on a 10.2 system, only when looking for -lopensc! What am I doing differently? I installed the required -devel packages from the same service patch level as the system (except trying Xt from 10.3 above) on each system!