- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- a library with debugging information is working fi...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 06:02 PM
тАО01-22-2006 06:02 PM
when i build that with out debugging information it soesnt work.
the thing is i am using optimization Level 3 for compiling. when we build with debugging info the optimization level is decreased to 2 . may b that removes some of the symbols.
But when i built that with +O2 that still didnt work.
the compiulation string i m using is
+O2 +Oconservative +Ovolatile +Onofail_safe +Ofastaccess +Onopipeline +ESlit
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 06:35 PM
тАО01-22-2006 06:35 PM
Re: a library with debugging information is working fine but without that is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 06:38 PM
тАО01-22-2006 06:38 PM
Re: a library with debugging information is working fine but without that is not working.
Is it a shared library or archive ? What error message you get when it loads ? Try to give more information possible,
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 06:53 PM
тАО01-22-2006 06:53 PM
Re: a library with debugging information is working fine but without that is not working.
what is the error message you are getting when using that library? Change optimization level to 3 as +03 and compile with debug symbols.
check symbols information with odump or elfdump.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 06:58 PM
тАО01-22-2006 06:58 PM
Re: a library with debugging information is working fine but without that is not working.
whats happenening is when we are compiling with -g option some extra symbols are coming as compared with the compilation without -g symbols. Means it is removing some symbols at compilation with +O3 flag. and at run time those symbols are required.
only core dump is coming during execution of the program.
since it is very big project its difficult to track the exact point of failure.
can anyone suggest me the probable reasons whic can lead to such type of errors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 07:01 PM
тАО01-22-2006 07:01 PM
Re: a library with debugging information is working fine but without that is not working.
Tyr running your application with "tusc" to find out where exactly it core dumps. "tusc" can be downloaded from,
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.8/
-Arun
P.S Remember to assign points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 07:02 PM
тАО01-22-2006 07:02 PM
Re: a library with debugging information is working fine but without that is not working.
UX_SOURCE -DHP -DSYSV -DCDF -DUNIX -DTND -D__HP_NO_STRING_OVERLOADS -DB1000 +DAportable
this s the compile string
ld -b -o ../lib/libpig.sl cachain.o cactime.o caulic.o camsgf.o dbgwrite.o casig.o castring.o CAgetenv.o catrans.o catstenv.o capstat.o capstats.o caimsgv.o caimsgio.o calic.o liccciem.o cad.o CAchmod.o CAget_tty.o enf_exists.o SIGNAL.o casetusr.o ca_hostname.o casrcpth.o caddcpath.o execgenrs.o pwcrypt.o ca_nodename.o ca_nodename_has.o caprof.o structpk.o caregex.o cauwvapi.o sdsapi.o cauwvsaf.o cauwvsds.o casystype.o quehlp.o cawcmbcn.o ufcmpcnv.o match.o calocale.o cmlocale.o caping.o camfunc.o dynlib.o chkemcci.o loaddll2.o cauemevt_ldr.o cauopr_ldr.o -lnsl -lpthread -ldld -lm -lcrypt -L/opt/CA/CAlib -lccimt -lenf
THIS IS THE BUILD STRING.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 07:11 PM
тАО01-22-2006 07:11 PM
SolutionOne more thing, have you applied all necessary latest pathces related to compiler and linker ? Probably, this could be due to a known bug with +O3. You can download patches from, http://www1.itrc.hp.com/service/patch/search.do?BC=patch.breadcrumb.main|&pageContextName=hpux:::
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 07:13 PM
тАО01-22-2006 07:13 PM
Re: a library with debugging information is working fine but without that is not working.
in the C program a function call is there.
the definition of the called is in different library.
there is no conditional check to execute that function call (means taht statement has to be executed always).
on compilation with -g option that symbol is there in its object file but on compiling without -g option the symbol is not found in that object file. i used nm to do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-22-2006 09:23 PM
тАО01-22-2006 09:23 PM
Re: a library with debugging information is working fine but without that is not working.
can you please help me in finding out the patch for the +O3 problem. i tried the making the hostname.fs file on my system and uploaded that on the site. there are atoo many patches coming .so what to apply here.?
i am attaching the hostname.fs file here.
please help me.