03-23-2011
It doesn't know where the source code is so most of the debugging information's missing. Try gdb -d /path/to/source
Also make sure your makefile didn't strip the debugging information out of it at any point.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. Programming
Hello Unix experts,
I downloaded rpm-4.0 source from ftp.redhat.com and tried to make it. There are something I could not understand.
- Makefile.in and Makefile.am instead of Makefile
- file INSTALL doesn't show clearly the steps of compiling
What are these 2 files, Makefile.in and... (2 Replies)
Discussion started by: eddie
2 Replies
2. Programming
i tried to compile a c++ file using the g++ command:
g++ <filename>.cpp -out <output_file>
and i received the following error message:
ld.so.1: gcc: fatal: relocation error: file gcc: symbol bindtextdomain: referenced symbol not found
Killed
is it that i am using incorrectly the... (1 Reply)
Discussion started by: ldrojasm
1 Replies
3. Programming
Anyone pls. help !!!
I want to debug C source file using GVD debugger. However, I am unable to find the way to debug source files.
Thanks in advance (2 Replies)
Discussion started by: argupta
2 Replies
4. SuSE
I've been usuing Suse 9.1 & 10 on 2 different machines for a while and have so far relied on ready compiled versions of programs in RPMs in order to install them.
I'm unclear what is envolved in compiling from the source code myself. I did a general google on the topic and found some unclear... (3 Replies)
Discussion started by: Mark Ward
3 Replies
5. UNIX and Linux Applications
Hi all,
I downloaded the source code for a pkg.
But i dont know how to build from it?
I have no prior experience in building from source,so could you pls help me?
I tried ./configure(after entering into the dir containing the src codes)
but it generated some errors!!!!!
Some files... (1 Reply)
Discussion started by: wrapster
1 Replies
6. Solaris
Hello,I'm trying to compile source code for Nmap.
My $PATH /usr/sbin:/usr/bin:/usr/openwin/bin:/usr/ucb:/usr/local/bin:/usr/css/bin
I type ./configure and all goes great.When I type ./make or ./make it says make not found.Why?I need a correct path for make?Thanks in advance. (2 Replies)
Discussion started by: bgf0
2 Replies
7. Programming
Hi,
I'm using the following commands to execute a proc file, but I'm unable to debug the program. What modifications do I need to make in the command options to debug the program created.
I have a proc1.pc file, using the following three steps to generate the proc1 exe. After the proc1 exe... (2 Replies)
Discussion started by: ehari
2 Replies
8. AIX
How to compile a package surce in AIX when we download its source? (2 Replies)
Discussion started by: johnveslin
2 Replies
9. Shell Programming and Scripting
I know about bash -x, set -x and -v but disappears from Command Line Interface in fraction of second ......
I am looking for a command or script ..complies each line and shows the output after executing each line ....( similar what we have in C )
Thanks in Advance (2 Replies)
Discussion started by: frintocf
2 Replies
10. AIX
I have random connections coming into my FTP server, but the source IP is not showing up in my logs. Here is what my logs look for me trying to connect as a "whatever" user that doesn't exist. You can see there is no source IP telling me where this connection came from:
Jun 27 10:13:40... (4 Replies)
Discussion started by: kah00na
4 Replies
LEARN ABOUT OPENSOLARIS
strip
strip(1) User Commands strip(1)
NAME
strip - strip symbol table, debugging and line number information from an object file
SYNOPSIS
strip [-lVx] file...
DESCRIPTION
The strip command removes the symbol table SHT_SYMTAB and its associated string table, debugging information, and line number information
from ELF object files. That is, besides the symbol table and associated string table, the following sections are removed:
.line
.debug*
.stab*
Once this stripping process has been done, limited symbolic debugging access is available for that file. Therefore, this command is nor-
mally run only on production modules that have been debugged and tested.
If strip is executed on a common archive file (see ar.h(3HEAD)) in addition to processing the members, strip removes the archive symbol ta-
ble. The archive symbol table must be restored by executing the ar(1) command with the -s option before the archive can be linked by the
ld(1) command. strip produces appropriate warning messages when this situation arises.
strip is used to reduce the file storage overhead taken by the object file.
OPTIONS
The amount of information stripped from the ELF object file can be controlled by using any of the following options. The following options
are supported:
-l Strip line number information only.Does not strip the symbol table or debugging information.
-V Prints, on standard error, the version number of strip.
-x Does not strip the symbol table. Debugging and line number information might be stripped.
OPERANDS
The following operand is supported:
file A path name referring to an executable file.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of strip: LANG, LC_ALL, LC_CTYPE, LC_MES-
SAGES, and NLSPATH.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/tmp/strp* Temporary files
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbtool |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
ar(1), as(1), ld(1), mcs(1), elf(3ELF), tmpnam(3C), a.out(4), ar.h(3HEAD), attributes(5), environ(5), standards(5)
NOTES
The symbol table section is not removed if it is contained within a segment or if the file is a relocatable object.
The line number and debugging sections are not removed if they are contained within a segment or if their associated relocation section is
contained within a segment.
The strip command is used to remove a standard predefined set of sections from an ELF object file. To remove a user specified section by
name, see mcs(1).
SunOS 5.11 5 Oct 2007 strip(1)