linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Scilab compiling problem
@ 1999-05-13  0:13 Martin Costabel
  1999-05-13 13:54 ` Martin Costabel
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Costabel @ 1999-05-13  0:13 UTC (permalink / raw)
  To: linuxppc-dev


Since I had scilab running on linuxppc-R5 a long time ago, I wanted to
give the src.rpm from the redhat powertools directory a try. After a
little tweaking, it compiles OK and goes almost all the way through the
process of building the binary rpm.

Right at the end, it stops after the following lines

+ cd /var/tmp/scilab-root/usr/bin
+ ln -s ../lib/scilab-2.4.1/bin/scilab scilab
+ exit 0
Processing files: scilab
Finding provides...
Finding requires...
BFD: /var/tmp/scilab-root/usr/lib/scilab-2.4.1/bin/SEpsf: invalid string
offset 2147554304 >= 256 for section `'
BFD: /var/tmp/scilab-root/usr/lib/scilab-2.4.1/bin/SEpsf: invalid string
offset 2147561472 >= 256 for section `'
BFD: /var/tmp/scilab-root/usr/lib/scilab-2.4.1/bin/SEpsf: invalid string
offset 2147569664 >= 256 for section `'
BFD: /var/tmp/scilab-root/usr/lib/scilab-2.4.1/bin/SEpsf: invalid string
offset 2147612672 >= 256 for section `'
BFD: /var/tmp/scilab-root/usr/lib/scilab-2.4.1/bin/SEpsf: invalid string
offset 2147706880 >= 256 for section `'

After this it sits there and does nothing until killed by ctrl-C.

Does anyone know what this means? What is BFD?
Is this a bug in a) rpm b) binutils c) egcs d) somewhere else?
The file .../SEpsf is a binary which seems to run OK. 

--
Martin


--
Martin

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Scilab compiling problem
  1999-05-13  0:13 Scilab compiling problem Martin Costabel
@ 1999-05-13 13:54 ` Martin Costabel
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Costabel @ 1999-05-13 13:54 UTC (permalink / raw)
  To: linuxppc-dev


Nothing like being able to answer your own questions :)

I spent some time with the maximum-rpm book and got it running now.
The bugs were in the scilab.spec script and in the find-requires script
from rpm-3.0.1-4.

Martin Costabel wrote:
> 
> Since I had scilab running on linuxppc-R5 a long time ago, I wanted to
> give the src.rpm from the redhat powertools directory a try. After a
> little tweaking, it compiles OK and goes almost all the way through the
> process of building the binary rpm.
> 
> Right at the end, it stops after the following lines
> 
[..]
> Finding provides...
> Finding requires...
> BFD: /var/tmp/scilab-root/usr/lib/scilab-2.4.1/bin/SEpsf: invalid string
> offset 2147554304 >= 256 for section `'
[..]

These last messages were due to some braindamage in the spec file. It
tried to change binary files (instead of only shell scripts) using perl.
Here is the code from scilab.spec:

# Nuke attempts to setenv SCI from build directory.
( cd $RPM_BUILD_ROOT/usr/lib/scilab-*
  for F in `grep -l ${RPM_BUILD_DIR} ./util/* ./bin/*`
  do
    perl -pi -e "s+${RPM_BUILD_DIR}+/usr/lib+" ${F}
  done
)

These binaries are then seriously damaged. Restricting the search to
shell scripts eliminates the problem and allows rpm to successfully
build a binary rpm. 

Unfortunately, the latter then complains about unsatisfied dependencies
named "SCIDIR=../../.." and "SHELL". 

This comes from a bug in the /usr/lib/rpm/find-requires script from rpm
version rpm-3.0.1-4: This script searches not only the dependencies
given by ldd, but also the first lines of shell scripts. Unfortunately
it takes also the first lines of Makefiles, which is a bug. Here is a
patch:

--- /usr/lib/rpm/find-requires.ori      Thu May 13 15:18:08 1999
+++ /usr/lib/rpm/find-requires  Thu May 13 15:22:47 1999
@@ -7,7 +7,7 @@
 
 filelist=`sed "s/['\"]/\\\&/g"`
 exelist=`echo $filelist | xargs -r file | fgrep executable | cut -d:
-f1 `
-scriptlist=`echo $filelist | xargs -r file | egrep ":.*
(commands|script) " | cut -d: -f1 `
+scriptlist=`echo $filelist | xargs -r file | egrep ":.* (perl|script) "
| cut -d: -f1 `
 liblist=`echo $filelist | xargs -r file | grep "shared object" | cut -d
: -f1 `
 
 for f in $exelist; do

With these changes (and the replacement of the supplied glibc21 patch by
one I had found long ago), rpm now creates a working
scilab-2.4.1-1.ppc.rpm.

--
Martin

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-05-13 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-13  0:13 Scilab compiling problem Martin Costabel
1999-05-13 13:54 ` Martin Costabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).