Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Re: libtool warning on redhat 7.1 native mipsel compile
@ 2002-01-11 20:08 Adrian.Hulse
  2002-01-11 20:08 ` H . J . Lu
  0 siblings, 1 reply; 18+ messages in thread
From: Adrian.Hulse @ 2002-01-11 20:08 UTC (permalink / raw)
  To: H . J . Lu; +Cc: linux-mips


I don't know for sure just yet, the package takes a long time to compile.
The last time I compiled the package it failed to build - whether it is due
to the warnings or not I don't really know - maybe not.

 But as a result of trying to get the package to compile I came across the
"mips-1" problem and thought I'd post my findings to the list, as it seems
to have the potential to affect a lot of builds.



                                                                                              
                    "H . J . Lu"                                                              
                    <hjl@lucon.org       To:     Adrian.Hulse@taec.toshiba.com                
                    >                    cc:     linux-mips@oss.sgi.com                       
                                         Subject:     Re: libtool warning on redhat 7.1       
                    01/11/02 11:56        native mipsel compile                               
                    AM                                                                        
                                                                                              
                                                                                              




On Fri, Jan 11, 2002 at 11:53:42AM -0800, Adrian.Hulse@taec.toshiba.com
wrote:
>
> I have come across many libtool warnings when native compiling redhat 7.1
> packages on my mips board.
>
> An example warning is :
>
> *** Warning: This library needs some functionality provided by -lc
> *** I have the capability to make that library automatically link in when
> *** you link to this library. But I can only do this if you have a
> *** shared version of the library, which you do not appear to have.
>

Does that cause any problems?


H.J.

^ permalink raw reply	[flat|nested] 18+ messages in thread
* libtool warning on redhat 7.1 native mipsel compile
@ 2002-01-11 19:53 Adrian.Hulse
  2002-01-11 19:56 ` H . J . Lu
  2002-01-11 20:12 ` Maciej W. Rozycki
  0 siblings, 2 replies; 18+ messages in thread
From: Adrian.Hulse @ 2002-01-11 19:53 UTC (permalink / raw)
  To: linux-mips


I have come across many libtool warnings when native compiling redhat 7.1
packages on my mips board.

An example warning is :

*** Warning: This library needs some functionality provided by -lc
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

So I ran file on libc-2.2.4.so, and it gave me the following output :

/lib/libc-2.2.4.so: ELF 32-bit LSB mips-1 shared object, MIPS R3000_LE [bfd
bug], version 1 (SYSV), not stripped

Which I believe is telling me the library is shared. A search on the web
revealed some passed problems with file and libtool, but going by my
libtool's version number I should be OK.
To cut a long story short I traced the problem to a number of script files
which define a string to be :

     ELF [0-9][0-9]*-bit [LM]SB (shared object | dynamic lib)

When this is used as a match against libc-2.2.4.so's output the "mips-1"
part causes a mismatch and libtool complains the library is not a shared
library file. Note, as far as I have checked most of the library files in
the redhat 7.1 distribution include this "mips-1".

As dirty fix I hand hacked all occurences of

     ELF [0-9][0-9]*-bit [LM]SB (shared object | dynamic lib)

and changed them to

     ELF [0-9][0-9]*-bit [LM]SB mips-1 (shared object | dynamic lib)

and sure enough all but one of the libtool warnings went away. The only one
reamining was directed towards linking against libgcc, which is an archive
so I'll let that one go.

Not understanding the workings of everything, my simple analysis of this
problem is that :

"if file did not output "mips-1" the problem would not exist".

Does anyone know why mips-1 is there ? Should it be there because it has
the potential to break a lot of scripts out there.

Does anyone know how to fix either the libraries or the program "file" so
that "mips-1" is not output.

Any help on this will be greatly appreciated

TIA

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

end of thread, other threads:[~2002-01-15 16:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-11 20:08 libtool warning on redhat 7.1 native mipsel compile Adrian.Hulse
2002-01-11 20:08 ` H . J . Lu
2002-01-12  5:26   ` Ralf Baechle
2002-01-12  5:42     ` H . J . Lu
2002-01-12  5:48       ` Ralf Baechle
2002-01-12 13:36       ` Robin Humble
2002-01-12 17:22         ` H . J . Lu
2002-01-13  4:04           ` Robin Humble
2002-01-13  6:27             ` H . J . Lu
2002-01-14 11:44               ` Maciej W. Rozycki
2002-01-14 17:50                 ` H . J . Lu
2002-01-15 12:57                   ` Brian Murphy
2002-01-15 15:46                     ` H . J . Lu
2002-01-14 11:35       ` Maciej W. Rozycki
2002-01-14 17:56         ` H . J . Lu
  -- strict thread matches above, loose matches on Subject: below --
2002-01-11 19:53 Adrian.Hulse
2002-01-11 19:56 ` H . J . Lu
2002-01-11 20:12 ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox