LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-09-2009, 08:47 AM   #1
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
rpmbuild: skipping incompatible libXt.so when building new OpenSSH on Suse 10


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!

Last edited by AlucardZero; 10-09-2009 at 09:03 AM.
 
Old 10-10-2009, 02:39 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Quote:
Originally Posted by AlucardZero View Post
Code:
# rpmbuild -vv -ba openssh.spec 
#[...]
/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
#[...]
RPM build errors:
    Unknown option ? in verify_permissions(:-:)
Apparently there's two problems compiling OpenSSH on SuSE PPC PPC. The first one I don't know about, unless this should not be /usr/X11R6/lib64/ but /usr/lib64/ instead, and the second one looks like a problem in the .spec file? What does it say about "verify_permissions"?


Quote:
Originally Posted by AlucardZero View Post
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. (..) I tried the same on a 10.1 ppc system, and it failed with the same error, only looking for -lssh not -lXt. (..) 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!
If OpenSSH i available for SuSE PPC 10, 10.1 and 10.2 then I wonder if there's (vendor or upstream) bug tracker issues. Did you check? Did you compare the patches of the closest vendor OpenSSH version with the upstream 5.3p1 version? Does the closest vendor OpenSSH version .src.rpm compile cleanly on any of your SuSE PPC?


Quote:
Originally Posted by AlucardZero View Post
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.
Building a RPM from a source tarball, apart from patch issues should not be a problem as long as the dependencies match up. That leaves installation location, which is a ./configure time --prefix issue easily corrected in the .spec file, and a usable SysV initscript you could draw in (%source) as well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/bin/ld: skipping incompatible /usr/lib/libXpm.so when searching for -lXpm sqn Linux - Server 2 05-12-2009 03:53 AM
skipping incompatible C libraries? rgmayoral Linux - Software 2 10-18-2007 06:29 AM
error running rpmbuild -ta on cups source.tar.gz involving openssh? possible? Nahmus Linux - Software 6 04-14-2007 02:20 AM
ld is "skipping incompatible" libraries The_Nerd Programming 3 09-13-2005 11:34 PM
FC2 test 3 mouse skipping a beat, movie skipping also jang Fedora 1 10-28-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration