List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:March 11 2005 9:36am
Subject:Re: Segmentation fault->Result res = query.store();
View as plain text  
On Thu, Mar 10, 2005 at 05:52:08PM -0700, Warren Young wrote:
> >>ldd examples/.libs/resetdb
> >>
> >I obtain
> >ldd .libs/resetdb
> >       libmysqlpp.so.4 => /usr/local/lib/libmysqlpp.so.4 (0x00829000)
>
> That's strange.  I thought the examples always linked against the
> MySQL++ library in ../lib.  The fact that they apparently do not should
> be investigated.
>

[ and later... ]

On Thu, Mar 10, 2005 at 09:53:52PM -0700, Warren Young wrote:
> Turns out they do!  On first running the libtool-generated script in the 
> examples directory, a second binary is created, .libs/lt-FOO.  So my 
> correction above was incorrect, too.  One should say:
> 
> 	$ ldd .libs/lt-resetdb
> 
> to find out which libraries the resetdb example is using.

I don't have lt-resetdb.  Using the original ldd command, I get the same
result (/usr/lib in my case).  Only when I set LD_LIBRARY_PATH beforehand will
ldd give me a separate directory:


examples $ unset LD_LIBRARY_PATH
examples $ ldd .libs/resetdb
        libmysqlpp.so.4 => /usr/lib/libmysqlpp.so.4 (0x40026000)
	[...]
examples $ export LD_LIBRARY_PATH=/home/source5/mysql++-cvs/lib/.libs
examples $ ldd .libs/resetdb
        libmysqlpp.so.4 => /home/source5/mysql++-cvs/lib/.libs/libmysqlpp.so.4
(0x40015000)
	[...]


- Chris

Thread
Segmentation fault->Result res = query.store();Marco Turchi9 Mar
  • Re: Segmentation fault->Result res = query.store();Warren Young9 Mar
    • Re: Segmentation fault->Result res = query.store();Marco Turchi9 Mar
      • Re: Segmentation fault->Result res = query.store();Marco Turchi9 Mar
        • Re: Segmentation fault->Result res = query.store();Warren Young9 Mar
          • Re: Segmentation fault->Result res = query.store();Marco Turchi9 Mar
      • Re: Segmentation fault->Result res = query.store();Warren Young9 Mar
  • Re: Segmentation fault->Result res = query.store();Chris Frey9 Mar
    • Re: Segmentation fault->Result res = query.store();Warren Young9 Mar
      • Re: Segmentation fault->Result res = query.store();Marco Turchi10 Mar
        • Re: Segmentation fault->Result res = query.store();Chris Frey10 Mar
          • Re: Segmentation fault->Result res = query.store();Marco Turchi10 Mar
            • Re: Segmentation fault->Result res = query.store();Chris Frey10 Mar
              • Re: Segmentation fault->Result res = query.store();Marco Turchi10 Mar
                • Re: Segmentation fault->Result res = query.store();Chris Frey10 Mar
                  • Re: Segmentation fault->Result res = query.store();Marco Turchi10 Mar
                    • Re: Segmentation fault->Result res = query.store();Earl Miles11 Mar
                      • Re: Segmentation fault->Result res = query.store();Warren Young11 Mar
        • Re: Segmentation fault->Result res = query.store();Warren Young11 Mar
          • Re: Segmentation fault->Result res = query.store();Warren Young11 Mar
            • Re: Segmentation fault->Result res = query.store();Chris Frey11 Mar
              • Re: Segmentation fault->Result res = query.store();Warren Young12 Mar
      • mysql++ installdon thompson10 Mar
        • Re: mysql++ install solveddon thompson10 Mar