Bug 179

Summary: Installation fails on binutils 2.15 on Solaris 8/9
Product: binutils Reporter: John Carroll <john.carroll>
Component: adminAssignee: Daniel Jacobowitz <drow>
Status: RESOLVED FIXED    
Severity: minor CC: bug-binutils, jbuck
Priority: P3    
Version: 2.15   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed: 2004-10-23 19:21:22

Description John Carroll 2004-05-24 23:09:34 UTC
When attempting to install binutils on a Sun Solaris 8 or 9 system, I get 
errors in the installation script saying that it can't find ./install-sh.  I 
have included the first and last errors that show up below.  I get a total of 
about 12 errors, all similar to what is shown below.  The final error is 
fatal, which causes all subsequent installation to stop, so the actual 
executables never get installed (which is why I am even concerned).  I have 
tried this on a clean install of both Solaris 8 and 9, with only GNU gcc 
2.95.3, make 3.80, flex 2.5.4a, m4 1.4, and bison 1.875 installed.

# pwd
/usr/local/src/GNU/binutils-2.15
# make install
/bin/sh ./mkinstalldirs /usr/local /usr/local
make[1]: Entering directory `/usr/local/src/GNU/binutils-2.15/bfd'
Making install in doc
make[2]: Entering directory `/usr/local/src/GNU/binutils-2.15/bfd/doc'
make[3]: Entering directory `/usr/local/src/GNU/binutils-2.15/bfd/doc'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/GNU/binutils-2.15/bfd/doc'
/bin/sh ../../mkinstalldirs /usr/local/man/info
 ./install-sh -c -m 644 ./bfd.info /usr/local/man/info/bfd.info
/bin/sh: ./install-sh: not found
...
*snip*
...
/bin/sh ./libtool  --mode=install ./install-sh -c 
libbfd.la /usr/local/lib/libbf
d.la
./install-sh -c .libs/libbfd.lai /usr/local/lib/libbfd.la
./libtool: ./install-sh: not found
make[3]: *** [install_libbfd] Error 1
make[3]: Leaving directory `/usr/local/src/GNU/binutils-2.15/bfd'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/usr/local/src/GNU/binutils-2.15/bfd'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/GNU/binutils-2.15/bfd'
make: *** [install-bfd] Error 2
Comment 1 Daniel Jacobowitz 2004-05-24 23:11:45 UTC
Subject: Re:  New: Installation fails on binutils 2.15 on Solaris 8/9

How did you run configure?  It looks like you used ./configure; please
try creating a separate object directory and running
/full/path/to/src/configure instead.

I don't know why this broke now...

Comment 2 John Carroll 2004-05-24 23:21:47 UTC
Subject: RE:  Installation fails on binutils 2.15 on Solaris 8/9

 ./configure --prefix=/usr/local --infodir=/usr/local/man/info

Configure finds install-sh just fine, but I will try the full path for
configure and let you know what happens.

I am surprised that it doesn't work as well, since looking at all the
Makefiles, I can't find a reference to ./install-sh, only
./../install-sh, except in the Makefile in the main directory.

And 2.14 installs just fine.

Thanks,
John
 
John Patrick Carroll
Systems Administrator
Raytheon Polar Services Company
John.Carroll@usap.gov
(720) 568-2125

-----Original Message-----
From: drow at sources dot redhat dot com
[mailto:sourceware-bugzilla@sources.redhat.com] 
Sent: Monday, May 24, 2004 5:12 PM
To: Carroll, John
Subject: [Bug admin/179] Installation fails on binutils 2.15 on Solaris
8/9


------- Additional Comments From drow at sources dot redhat dot com
2004-05-24 23:11 -------
Subject: Re:  New: Installation fails on binutils 2.15 on Solaris 8/9

How did you run configure?  It looks like you used ./configure; please
try creating a separate object directory and running
/full/path/to/src/configure instead.

I don't know why this broke now...



Comment 3 John Carroll 2004-05-25 00:52:04 UTC
Subject: RE:  Installation fails on binutils 2.15 on Solaris 8/9

Using the full path for configure seems to solve the problem.  Not sure
why a relative path worked for 2.14 and not 2.15, but as long as it
works now, I am happy.  You can close the bug ticket, if you like, or if
you wanna find the root cause, you can leave it open... Either way works
for me.  :^)

Thanks,
John
 
John Patrick Carroll
Systems Administrator
Raytheon Polar Services Company
John.Carroll@usap.gov
(720) 568-2125

-----Original Message-----
From: drow at sources dot redhat dot com
[mailto:sourceware-bugzilla@sources.redhat.com] 
Sent: Monday, May 24, 2004 5:12 PM
To: Carroll, John
Subject: [Bug admin/179] Installation fails on binutils 2.15 on Solaris
8/9


------- Additional Comments From drow at sources dot redhat dot com
2004-05-24 23:11 -------
Subject: Re:  New: Installation fails on binutils 2.15 on Solaris 8/9

How did you run configure?  It looks like you used ./configure; please
try creating a separate object directory and running
/full/path/to/src/configure instead.

I don't know why this broke now...



Comment 4 Daniel Jacobowitz 2004-10-23 19:21:22 UTC
Patch posted.
Comment 5 Ben Elliston 2004-12-06 02:01:37 UTC
Fixed with this patch:

2004-10-23  Daniel Jacobowitz  <dan@debian.org>

        * configure.in: Use an absolute path to install-sh.
        * configure: Regenerated.

Tested; fixed.
Comment 6 Daniel Jacobowitz 2005-04-08 17:33:26 UTC
*** Bug 824 has been marked as a duplicate of this bug. ***