Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 82962 - generated libtool fails on Irix std C++
generated libtool fails on Irix std C++
Product: Red Hat Linux
Classification: Retired
Component: libtool (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Karsten Hopp
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2003-01-28 19:02 EST by Wagner T. Correa
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-12-20 02:25:39 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Wagner T. Correa 2003-01-28 19:02:48 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212

Description of problem:
The libtool file generated on Linux doesn't work on Irix when compiling a
library written in standard C++.

To compile such a library on Irix, you have to pass the flag -LANG:std to the
compiler and the linker.  But libtool thinks that that flag specifies a path to
search for libraries.

This is a known problem, and in libtool there is an attempt to fix it:

      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
      # so, if we see these flags be careful not to treat them like -L
        case $with_gcc/$host in
          compile_command="$compile_command $arg"
          finalize_command="$finalize_command $arg"

The problem is that earlier in the libtool file with_gcc is defined as blank,
instead of defined as "no":

# Is the compiler the GNU C compiler?

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. write a standard C++ library
2. create a tarball on Linux
3. try to compile the library on Irix

Actual Results:  The linking phase will fail because the -LANG:std flag is not
passed correctly to the linker.

Expected Results:  libtool should have defined with_gcc=no.

Additional info:

If you change libtool so that with_gcc=no, then the linking phase succeeds.
Comment 1 Jens Petersen 2003-05-01 10:45:37 EDT
I recommend to report this problem on bug-libtool@gnu.org.
Comment 2 Jens Petersen 2003-07-08 08:41:53 EDT
Looks like this is fixed in libtool-1.5:

	case $with_gcc/$host in
	no/*-*-irix* | /*-*-irix*)
	  compile_command="$compile_command $arg"
	  finalize_command="$finalize_command $arg"

libtool-1.5 is now in rawhide - could you try with that please?

Note You need to log in before you can comment on or make changes to this bug.