On Tue, 2011-12-27 at 14:06 +0530, Ravi Kumar wrote: > Hi, > > > Can any one tell me why the file type of snmpd is shown as "shell > script text executable" instead of > "ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), > dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped" > Yes.
It is because you are looking at an uninstalled snmpd in a build directory. In order to run gdb on that one you have to issue the command ../libtool --mode=execute gdb snmpd During make install libtool will perform the final linking so the installed file will end up as an ELF file. /MF > > [root@volga agent]# pwd > software/net-snmp-5.5/agent > [root@volga agent]# file snmpd > snmpd: POSIX shell script text executable -----------------> ? > > > I am not able to run gdb with this snmpd. > > > > > [root@volga agent]# gdb snmpd > GNU gdb (GDB) Fedora (7.2-16.fc14) > Copyright (C) 2010 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show > copying" > and "show warranty" for details. > This GDB was configured as "i686-redhat-linux-gnu". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > "/home/software/net-snmp-5.5/agent/snmpd": not in executable format: > File format not recognized ---------------------> ? > (gdb) > > > > > How should I compile to get all gdb symbols in snmpd ? > > > > > > > Thanks................... > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ Net-snmp-coders mailing list > Net-snmp-coders@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders