multiple inclusion of file

2012-04-24 Thread Gray, Steve, Wipro

Hello, I am in the process of trying to install the PCRE library.  I run the 
configure command with the various options, and I then run the make command, 
and this is when I get the error, "warning: file /usr/sfw/lib/libstdc++.so: 
attempted multiple inclusion of file".  I am on a Solaris 10 operating system.  
Have you seen this error message?  Is there something that I can do to get past 
this so that I can get the PCRE library installed?  How do I solve this?  If 
you have had this question asked before, I apologize for asking again, but I am 
at my rope's end trying to get past this. I am new to PCRE, so if my questions 
seem irrelevant or pointless, I apologize.  I just need to get started. If you 
would like me to send you my configure options, I can do that, or any other 
information that you need from me, I'll be glad to provide.

Thanks

<>___
https://lists.gnu.org/mailman/listinfo/libtool


Re: multiple inclusion of file

2012-04-24 Thread Bob Friesenhahn

On Tue, 24 Apr 2012, Gray, Steve, Wipro wrote:


Hello, I am in the process of trying to install the PCRE library.  I run the 
configure command with the various
options, and I then run the make command, and this is when I get the error, 
“warning: file
/usr/sfw/lib/libstdc++.so: attempted multiple inclusion of file”.  I am on a 
Solaris 10 operating system.  Have
you seen this error message?  Is there something that I can do to get past this 
so that I can get the PCRE
library installed?  How do I solve this?  If you have had this question asked 
before, I apologize for asking
again, but I am at my rope’s end trying to get past this. I am new to PCRE, so 
if my questions seem irrelevant or
pointless, I apologize.  I just need to get started. If you would like me to 
send you my configure options, I can
do that, or any other information that you need from me, I’ll be glad to 
provide.


I see this message every day.  This is only a warning and not an 
error.  How is it blocking you from building and installing the 
package?


Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/___
https://lists.gnu.org/mailman/listinfo/libtool


Re: multiple inclusion of file

2012-04-24 Thread Robert Boehne
Steve,

Find out what the path for libstdc++.so is for the one you want,
then set LDFLAGS=-L/correct/path/  when you build the library that it's
complaining about.

Note that it may not be PCRE, but it could be something that PCRE links to.

Use "ldd" or "ldd -s" to find out which libraries are pulling in libstdc++
and from where.

HTH,

Robert

On Tue, Apr 24, 2012 at 11:13 AM, Gray, Steve, Wipro <
steve.gray.wi...@sonymusic.com> wrote:

> Hello, I am in the process of trying to install the PCRE library.  I run
> the configure command with the various options, and I then run the make
> command, and this is when I get the error, “warning: file
> /usr/sfw/lib/libstdc++.so: attempted multiple inclusion of file”.  I am
> on a Solaris 10 operating system.  Have you seen this error message?  Is
> there something that I can do to get past this so that I can get the PCRE
> library installed?  How do I solve this?  If you have had this question
> asked before, I apologize for asking again, but I am at my rope’s end
> trying to get past this. I am new to PCRE, so if my questions seem
> irrelevant or pointless, I apologize.  I just need to get started. If you
> would like me to send you my configure options, I can do that, or any other
> information that you need from me, I’ll be glad to provide.
>
> ** **
>
> Thanks
>
> ** **
>
> ___
> https://lists.gnu.org/mailman/listinfo/libtool
>
>
<>___
https://lists.gnu.org/mailman/listinfo/libtool


Re: multiple inclusion of file

2012-04-24 Thread Bob Friesenhahn

On Tue, 24 Apr 2012, Robert Boehne wrote:


Steve,

Find out what the path for libstdc++.so is for the one you want,
then set LDFLAGS=-L/correct/path/  when you build the library that it's 
complaining about.

Note that it may not be PCRE, but it could be something that PCRE links to.

Use "ldd" or "ldd -s" to find out which libraries are pulling in libstdc++ and 
from where.


I think that the situation is that when linking with the C++ compiler, 
the C++ compiler automatically adds linkage to its own libstdc++.so. 
Libtool also adds linkage to libstdc++.so (as a dependency) so the 
linker sees the (hopefully) same shared library listed twice.  There 
would be a severe problem if libtool was to request linking with a 
different libstdc++.so than the C++ compiler needs.


Solaris ld warns about this issue, and presumably GNU ld does not.

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/___
https://lists.gnu.org/mailman/listinfo/libtool


Re: multiple inclusion of file

2012-04-24 Thread Robert Boehne
Bob - correct on all counts :)

It can be problematic though, even when the two libstdc++.so files are
symlinks or otherwise identical.  If you provide libstdc++.so in a "runtime
only" package, you don't want the compiler's location to be hardcoded.  The
fix is to simply force a particular path with -L in LDFLAGS.

As I mentioned before though, it may be that a library your project depends
on that's actually hard coded the wrong path - Solaris ld will still
complain about what you're currently linking.  I don't think PCRE depends
on anything else that is c++ though, so it's probably coming from libtool
adding something different.

I'm not really a fan of Libtool adding an explicit dependency for libstdc++
really.  Libtool won't do this if you're using a different c++ compiler,
and the only case where this might help you out would be when your main
program isn't c++, and since Libtool doesn't help with this in that
situation, it probably shouldn't treat gcc as a special case.

HTH

On Tue, Apr 24, 2012 at 2:17 PM, Bob Friesenhahn <
bfrie...@simple.dallas.tx.us> wrote:

> On Tue, 24 Apr 2012, Robert Boehne wrote:
>
>  Steve,
>>
>> Find out what the path for libstdc++.so is for the one you want,
>> then set LDFLAGS=-L/correct/path/  when you build the library that it's
>> complaining about.
>>
>> Note that it may not be PCRE, but it could be something that PCRE links
>> to.
>>
>> Use "ldd" or "ldd -s" to find out which libraries are pulling in
>> libstdc++ and from where.
>>
>
> I think that the situation is that when linking with the C++ compiler, the
> C++ compiler automatically adds linkage to its own libstdc++.so. Libtool
> also adds linkage to libstdc++.so (as a dependency) so the linker sees the
> (hopefully) same shared library listed twice.  There would be a severe
> problem if libtool was to request linking with a different libstdc++.so
> than the C++ compiler needs.
>
> Solaris ld warns about this issue, and presumably GNU ld does not.
>
>
> Bob
> --
> Bob Friesenhahn
> bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/**
> users/bfriesen/ 
> GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
>
___
https://lists.gnu.org/mailman/listinfo/libtool


RE: multiple inclusion of file

2012-04-24 Thread Gray, Steve, Wipro
Bob,

I was expecting some type of a completion message at the end of the make 
command.  I did not image that this was the end of the make command and that I 
could continue.  I never tried to continue.  Now that you told me that is just 
a warning and not an error, I proceeded to run the "make check" command and it 
came back with "1 of 6 tests failed".  I continued with the "make install" and 
it completed without any errors.  I don't know if I should be concerned with 
the "1 of 6 tests failed" after the "make check" command.  The 1 test that 
failed was "./RunTest: syntax error at line 138: `(' unexpected FAIL: RunTest". 
 All the other tests said "passed".  Should I be concerned about the 1 test 
that did not pass?  I did save the output to a file.
I had no way of knowing that the "multiple inclusion of file" message was just 
that, a message and not an error.  Like I said I was looking for some type of 
completion message, like the one that I got after I installed the "openssl" 
package. Anyway, thanks for your quick response. I am going to try and 
configure my "nginx webserver" now that I think I got the PCRE library 
installed.  Wish me luck.

Thanks a lot



-Original Message-
From: Bob Friesenhahn [mailto:bfrie...@simple.dallas.tx.us] 
Sent: Tuesday, April 24, 2012 2:25 PM
To: Gray, Steve, Wipro
Cc: libtool@gnu.org
Subject: Re: multiple inclusion of file

On Tue, 24 Apr 2012, Gray, Steve, Wipro wrote:
> 
> Hello, I am in the process of trying to install the PCRE library.  I 
> run the configure command with the various options, and I then run the 
> make command, and this is when I get the error, “warning: file
> /usr/sfw/lib/libstdc++.so: attempted multiple inclusion of file”.  I 
> am on a Solaris 10 operating system.  Have you seen this error 
> message?  Is there something that I can do to get past this so that I 
> can get the PCRE library installed?  How do I solve this?  If you have 
> had this question asked before, I apologize for asking again, but I am 
> at my rope’s end trying to get past this. I am new to PCRE, so if my 
> questions seem irrelevant or pointless, I apologize.  I just need to get 
> started. If you would like me to send you my configure options, I can do 
> that, or any other information that you need from me, I’ll be glad to provide.

I see this message every day.  This is only a warning and not an error.  How is 
it blocking you from building and installing the package?

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
___
https://lists.gnu.org/mailman/listinfo/libtool


RE: multiple inclusion of file

2012-04-24 Thread Gray, Steve, Wipro
In my configure statement I have "LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib"
I run the configure command with this option and I run the make command and I 
still get the "multiple inclusion of file error"

From: Robert Boehne [mailto:rboe...@gmail.com]
Sent: Tuesday, April 24, 2012 3:12 PM
To: Gray, Steve, Wipro
Cc: libtool@gnu.org
Subject: Re: multiple inclusion of file

Steve,

Find out what the path for libstdc++.so is for the one you want,
then set LDFLAGS=-L/correct/path/  when you build the library that it's 
complaining about.

Note that it may not be PCRE, but it could be something that PCRE links to.

Use "ldd" or "ldd -s" to find out which libraries are pulling in libstdc++ and 
from where.

HTH,

Robert
On Tue, Apr 24, 2012 at 11:13 AM, Gray, Steve, Wipro 
mailto:steve.gray.wi...@sonymusic.com>> wrote:

Hello, I am in the process of trying to install the PCRE library.  I run the 
configure command with the various options, and I then run the make command, 
and this is when I get the error, "warning: file /usr/sfw/lib/libstdc++.so: 
attempted multiple inclusion of file".  I am on a Solaris 10 operating system.  
Have you seen this error message?  Is there something that I can do to get past 
this so that I can get the PCRE library installed?  How do I solve this?  If 
you have had this question asked before, I apologize for asking again, but I am 
at my rope's end trying to get past this. I am new to PCRE, so if my questions 
seem irrelevant or pointless, I apologize.  I just need to get started. If you 
would like me to send you my configure options, I can do that, or any other 
information that you need from me, I'll be glad to provide.

Thanks


___
https://lists.gnu.org/mailman/listinfo/libtool

<>___
https://lists.gnu.org/mailman/listinfo/libtool


Re: multiple inclusion of file

2012-04-24 Thread Robert Boehne
Run ldd -s on the resulting shared librry that generates the error.
It should show libstdc++.so coming from two different paths, and will also
show which share library each one is coming from.
I suspect that one of them is hardcoded in a file you're linking to (not
specified on your link line).

Robert

On Tue, Apr 24, 2012 at 2:47 PM, Gray, Steve, Wipro <
steve.gray.wi...@sonymusic.com> wrote:

> In my configure statement I have “LDFLAGS="-L/usr/sfw/lib -R/usr/sfw/lib"*
> ***
>
> I run the configure command with this option and I run the make command
> and I still get the “multiple inclusion of file error”
>
> ** **
>
> *From:* Robert Boehne [mailto:rboe...@gmail.com]
> *Sent:* Tuesday, April 24, 2012 3:12 PM
>
> *To:* Gray, Steve, Wipro
> *Cc:* libtool@gnu.org
> *Subject:* Re: multiple inclusion of file
>
> ** **
>
> Steve,
>
>
> Find out what the path for libstdc++.so is for the one you want,
> then set LDFLAGS=-L/correct/path/  when you build the library that it's
> complaining about.
>
> Note that it may not be PCRE, but it could be something that PCRE links to.
>
> Use "ldd" or "ldd -s" to find out which libraries are pulling in libstdc++
> and from where.
>
> HTH,
>
> Robert
>
> On Tue, Apr 24, 2012 at 11:13 AM, Gray, Steve, Wipro <
> steve.gray.wi...@sonymusic.com> wrote:
>
> 
>
> Hello, I am in the process of trying to install the PCRE library.  I run
> the configure command with the various options, and I then run the make
> command, and this is when I get the error, “warning: file
> /usr/sfw/lib/libstdc++.so: attempted multiple inclusion of file”.  I am
> on a Solaris 10 operating system.  Have you seen this error message?  Is
> there something that I can do to get past this so that I can get the PCRE
> library installed?  How do I solve this?  If you have had this question
> asked before, I apologize for asking again, but I am at my rope’s end
> trying to get past this. I am new to PCRE, so if my questions seem
> irrelevant or pointless, I apologize.  I just need to get started. If you
> would like me to send you my configure options, I can do that, or any other
> information that you need from me, I’ll be glad to provide.
>
>  
>
> Thanks
>
>  
>
>
> ___
> https://lists.gnu.org/mailman/listinfo/libtool
>
> ** **
>
<>___
https://lists.gnu.org/mailman/listinfo/libtool