Discussion:
[Bug-wget] Debugging issues
m***@cyber-dome.com
2018-11-09 23:17:32 UTC
Permalink
Hello all,

I managed to get my Netbeans working! (I created several projects for each
directory. Too much visual studio solutions....)

Now, I changed the "gcc" to "gcc -g" In the make files.

When I attempt to run a debug run, I get the error:
"wget2/netbeans/src/.libs/wget2: symbol lookup error:
/home/mik/wget2/netbeans/src/.libs/wget2: undefined symbol: wget_strerror"

Can you salvage me on this?

Do you have a way to run the make with debugging information generated?
(without changing the Makefile)?

For instance:
Darshit Shah
2018-11-10 09:39:54 UTC
Permalink
[Moving to wget-dev]

You should never touch any generated files. If you want to have debug symbols,
set the appropriate CFLAGS environment before running configure.

$ ./bootstrap
$ CFLAGS="-g -ggdb3 -O0" ./configure
$ make

Also, I don't use Netbeans (or any other IDE), but I don't understand why you
would have so many projects? You just need one that starts the root directory
of the repo?
Post by m***@cyber-dome.com
Hello all,
I managed to get my Netbeans working! (I created several projects for each
directory. Too much visual studio solutions....)
Now, I changed the "gcc" to "gcc -g" In the make files.
/home/mik/wget2/netbeans/src/.libs/wget2: undefined symbol: wget_strerror"
Can you salvage me on this?
Do you have a way to run the make with debugging information generated?
(without changing the Makefile)?
--
Thanking You,
Darshit Shah
PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6
m***@cyber-dome.com
2018-11-10 10:05:09 UTC
Permalink
Thank you!

-----Original Message-----
From: Darshit Shah <***@gnu.org>
Sent: Saturday, 10 November, 2018 11:40 AM
To: ***@cyber-dome.com
Cc: bug-***@gnu.org
Subject: Re: [Bug-wget] Debugging issues

[Moving to wget-dev]

You should never touch any generated files. If you want to have debug symbols,
set the appropriate CFLAGS environment before running configure.

$ ./bootstrap
$ CFLAGS="-g -ggdb3 -O0" ./configure
$ make

Also, I don't use Netbeans (or any other IDE), but I don't understand why you
would have so many projects? You just need one that starts the root directory
of the repo?
Post by m***@cyber-dome.com
Hello all,
I managed to get my Netbeans working! (I created several projects for each
directory. Too much visual studio solutions....)
Now, I changed the "gcc" to "gcc -g" In the make files.
/home/mik/wget2/netbeans/src/.libs/wget2: undefined symbol: wget_strerror"
Can you salvage me on this?
Do you have a way to run the make with debugging information generated?
(without changing the Makefile)?
--
Thanking You,
Darshit Shah
PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6
Loading...