Hi, Pervez
Thanks for your patience. I guess I find a solution:-)
Previously, I added LDFLAGS=-L<build-dir>/src/.libs, not <src-dir>/src/.libs.
.libs is generated during building, it's where built libraries are outputed.
The following is my solution. Wish It would help others.
I apply the attchment patch and export LDFLAGS=-L<build-dir>/src/.libs.
This patch solve the link problem which complains "cannot find
libboost_program_options etc.
export LDFLAGS solve the "make install" problem.
The patch is originated from Cajus Pollmeier. Thanks for his work.
And this one is applicable to qpid higher than 0.14
在 2012年3月30日 下午10:25,Pervez, Salman <[email protected]> 写道:
> Hi Zhihua, can you please post your build commands including configure and
> make? I am curious how you chose to build this and it might help solve the
> problem.
>
> When you say LDFLAGS=-L<build-dir>/src/.libs to "make install", do you really
> mean LDFLAGS=-L<source-dir>/src/.libs to "make install"? There is no .libs
> dir in my build directory that I could find. Perhaps linking with the actual
> build dir might help, I'm not sure.
>
> But ideally make install should just find stuff. So maybe the problem is with
> something you might have done earlier?
>
> Salman
>
> -----Original Message-----
> From: Zhihua Che [mailto:[email protected]]
> Sent: Friday, March 30, 2012 3:41 AM
> To: [email protected]
> Subject: Re: [Building Error] cannot find
> boost_program_option/boost_filesystem
>
> Thanks for your reply.
>
> I guess I've solved this problem and I also meet that typical link
> problem and address it using that fix-explicit-link-problem.patch:-)
> and finally make succeeded.
>
> But I'm struggling with "make install":-)
> which complains can't find -lqpidbroker. I'm sure qpidbroker is built
> and stored in src/.libs, and it still fails even if I add
> LDFLAGS=-L<build-dir>/src/.libs to "make install" command line.
>
> this is what I get.
>
> /usr/bin/ld: cannot find -lqpidbroker
> collect2: ld returned 1 exit status
> libtool: install: error: relink `ha.la' with the above command before
> installing it
>
>
>
>
> 在 2012年3月29日 下午10:13,Pervez, Salman <[email protected]> 写道:
>> What specific error do you get?
>>
>> You can try adding <path-to-boost-lib-dir> to your LDFLAGS.
>>
>> LDFLAGS="-L<path>" ...
>>
>> You can also try adding the flags -lboost_system and -lboost_filesystem to
>> your CXXFLAGS.
>>
>> It will work eventually. :)
>>
>> Salman
>>
>> -----Original Message-----
>> From: Zhihua Che [mailto:[email protected]]
>> Sent: Thursday, March 29, 2012 2:23 AM
>> To: [email protected]
>> Subject: [Building Error] cannot find boost_program_option/boost_filesystem
>>
>> Hi, everyone
>>
>> I'm building qpid from git code repository and version is
>> 5c5088749ba26b1d3d6fb8132c14d3be0b20b959. I built it using automake
>> and configure succeeded in creating Makefile. I guess the compiling is
>> ok, but linking failed due to lack of libraries boost_program_option
>> and boost_filesystem. I've installed libboost-dev, but I cannot find
>> the two libraries in my system. I've searched a lot and have no clue
>> how to get this around.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>>
>> CONFIDENTIALITY AND SECURITY NOTICE
>>
>> The contents of this message and any attachments may be confidential and
>> proprietary and also may be covered by the Electronic Communications Privacy
>> Act. This message is not intended to be used by, and should not be relied
>> upon in any way, by any third party. If you are not an intended recipient,
>> please inform the sender of the transmission error and delete this message
>> immediately without reading, disseminating, distributing or copying the
>> contents. Citadel makes no assurances that this e-mail and any attachments
>> are free of viruses and other harmful code.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
diff --git a/gdb/remote.c b/gdb/remote.c
index caf6116..157f774 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -5912,9 +5912,23 @@ process_g_packet (struct regcache *regcache)
buf_len = strlen (rs->buf);
/* Further sanity checks, with knowledge of the architecture. */
+// if (buf_len > 2 * rsa->sizeof_g_packet)
+// error (_("Remote 'g' packet reply is too long: %s"), rs->buf);
+
if (buf_len > 2 * rsa->sizeof_g_packet)
- error (_("Remote 'g' packet reply is too long: %s"), rs->buf);
+ {
+ rsa->sizeof_g_packet = buf_len ;
+ for (i = 0; i < gdbarch_num_regs (gdbarch); i++)
+ {
+ if (rsa->regs[i].pnum == -1)
+ continue;
+ if (rsa->regs[i].offset >= rsa->sizeof_g_packet)
+ rsa->regs[i].in_g_packet = 0;
+ else
+ rsa->regs[i].in_g_packet = 1;
+ }
+ }
/* Save the size of the packet sent to us by the target. It is used
as a heuristic when determining the max size of packets that the
target can safely receive. */
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]