NuSphere Forums Forum Index
NuSphere Forums
Reply to topic


Joined: 16 Aug 2004
Posts: 13
Reply with quote
I performed the following procedure because it appeared the shortest and least error-prone way to accomplish the replacement of libpcre.a

Quote:
make clean;
make
rm dbg/dbg-cli
rm pcre/libpcre.a
cp /usr/lib/libpcre.a pcre/
make


I got the same results. Is there anything wrong with my procedure?

_________________
Chris.

Life is a journey ...
Not a destination.
View user's profileFind all posts by cjm1956Send private message


Joined: 16 Aug 2004
Posts: 13
Reply with quote
I have a solution.

The problem is the the link order is fetching regcomp and regexec from libc and not from pcre. I did this:
Quote:
rm dbg/dbg-cli
make > make.log 2>&1

Then I hacked the output like so:
Quote:
g++ -o dbg/dbg-cli -Ldbgbase -Lgetopt dbg/dbg_cli-command.o dbg/dbg_cli-dbgclient_classes.o dbg/dbg_cli-main.o pcre/pcreposix.o pcre/pcre.o pcre/chartables.o -ldbgbase -lstdc++ -lreadline -lncurses -lgetopt

Notice that I also edited various paths, but the big change was to include the pcre stuff on the command line so it would be linked first.

Is this helpful?

_________________
Chris.

Life is a journey ...
Not a destination.
View user's profileFind all posts by cjm1956Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
seems I have to update configure to get local pcre not involved if POSIX-compatible regXXX functions are available from libc.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 16 Aug 2004
Posts: 13
Reply with quote
My experience and my reading of other posts leads me to conclude that the problem is not dbg-cli supplied pcre v. local pcre, but mixing them. I used the bdg-cli supplied code exclusively and I saw a post of somebody that uesd the locally supplied. Both of us succeeded.

Apparently EITHER will work properly, but mixing the dbg-cli supplied header with the locally supplied (libc) code seems to be catrostrophic. I support this by observing that the segfault happend while unwinding the stack, so something stored on the stack in the auto variables was mishandled.

Now that I have mine working I just need to figure out what to do with it ... Smile

_________________
Chris.

Life is a journey ...
Not a destination.
View user's profileFind all posts by cjm1956Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
you can step code, set breakpoints, inspect variables...
in general, that's all...
View user's profileFind all posts by dmitriSend private messageVisit poster's website
listener.startsession(...) returns hresult = DBGSE_WRONGREQ
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 2 of 2  

  
  
 Reply to topic