I have to debug a function getopt_long in glibc-2.11.3-17.31.1.
For that how can I download and install its corresponding glibc-debug on SLES 11?
You'll have to compile the source with debug symbols.
Once you download the tarball; un-tar the same and then do the following (inside the source directory which produces post un-tar -Run the following):
1)
./configure
2)
make
3)
make_install
Thanks praveen for the reply.
I am sorry if I am not clear but my question was from which site and how can I download the corresponding glibc-debug and glibc source for glibc-2.11.3-17.31.1 for SLES 11?
---------- Post updated at 09:34 PM ---------- Previous update was at 08:52 PM ----------
Will glibc source from GNU Project Archives be useful for SLES 11?
If getopt_long is crashing, it's quite probably because you've given it bad values, not because something's buggy inside it. Look at the values you give it carefully.
sure corona.
I did not find any issue with the passed inputs.
But I will check it.
Dunno what OS, but in Solaris you can truss to see calls using -u'*'. Can strace do that? I don't think tusc can.
I am using suse linux enterprise server.
strace was not of much help.
Perhaps if you showed us the code that is crashing(not just the line, but some before it as well) we could point you at what you should check out in more detail.
The last element of the array has to be filled with zeros.
Man Page for getopt_long (all Section 3) - The UNIX and Linux Forums
Crude ways to specify the size in pre-OO days.