<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>SKGaur&#039;s Blog</title>
	<atom:link href="http://sumitkgaur.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sumitkgaur.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 25 Jan 2010 10:25:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sumitkgaur.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>SKGaur&#039;s Blog</title>
		<link>http://sumitkgaur.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sumitkgaur.wordpress.com/osd.xml" title="SKGaur&#039;s Blog" />
	<atom:link rel='hub' href='http://sumitkgaur.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Compile gcc for Solaris 10 on x86 platform</title>
		<link>http://sumitkgaur.wordpress.com/2010/01/25/compile-gcc-for-solaris-10-on-x86-platform/</link>
		<comments>http://sumitkgaur.wordpress.com/2010/01/25/compile-gcc-for-solaris-10-on-x86-platform/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:25:44 +0000</pubDate>
		<dc:creator>sumitkgaur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Compile gcc for Solaris 10 on x86 platform]]></category>

		<guid isPermaLink="false">http://sumitkgaur.wordpress.com/2010/01/25/compile-gcc-for-solaris-10-on-x86-platform/</guid>
		<description><![CDATA[Buzz sentence for me these days &#8220;How to compile gcc on Solaris10 for x86 platform&#8221;. There are a lot of problems and missing links exists in the latest source code available for gcc. Use following steps to get gcc compiled successfully on S10 for x86. 1) Download the gcc source code using any tool available [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=9&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Buzz sentence for me these days &#8220;How to compile gcc on Solaris10 for x86 platform&#8221;. There are a lot of problems and missing links exists in the latest source code available for gcc. Use following steps to get gcc compiled successfully on S10 for x86.<br />
1) Download the gcc source code using any tool available to you, for example in my case i used svn to download the aource tree of gcc.<br />
svn checkout http://gcc.gnu.org/svn/gcc/trunk gcc<br />
This will create a gcc directory with all source files init.<br />
2) Download latest binutils from http://ftp.gnu.org/gnu/binutils/ to compile loader and other tools.<br />
3) Optional thing is to create a seprate directory by linking all the source files for running gmake.<br />
4) Now first compile binutil directory using following command<br />
./configure &#8211;prefix= &#8211;with-gmp= &#8211;with-mpfr=</p>
<p>** Here &#8211;with-gmp and &#8211;with-mpfr paths need to set before running configure command. So if you do not have gmp and mprf library then first download and compile them.<br />
The GNU MP Bignum Library<br />
The MPFR Library</p>
<p>then<br />
./gmake<br />
./gmake install<br />
5) Now go in gcc soource dir<br />
./configure &#8211;prefix= &#8211;with-gmp-include= &#8211;with-gmp-lib= -with-mpfr-include= &#8211;with-mpfr-lib= &#8211;disable-nls<br />
&#8211;disable-multilib &#8211;with-gnu-ld &#8211;with-gnu-as<br />
./gmake -j 8<br />
./gmake install</p>
<p>now you are done .</p>
<p>BUT it is not that easy &#8230; these are some troubles i faced and fixed. Have an look &#8230;</p>
<p>1) Following changes are required for lib/gen-classlist.sh</p>
<p> abs_top_builddir=`cd &#8220;${top_builddir}&#8221;; pwd`<br />
&gt; abs_top_srcdir=`cd &#8220;/net/dv1.india/vol/wsvol/ws1/sg160228/OPENAIS/gcc/libjava/classpath&#8221;; pwd`<br />
&gt; if test &#8220;$abs_top_builddir&#8221; != &#8220;$abs_top_srcdir&#8221;; then</p>
<p> if test -f ${top_builddir}/lib/classes.2; then</p>
<p>2) Following changes are required for classpath/lib/Makefile</p>
<p>&lt; if ! [ -e gnu ]; then mkdir gnu; fi<br />
&lt; if ! [ -e gnu/java ]; then mkdir gnu/java; fi<br />
&lt; if ! [ -e gnu/java/locale ]; then mkdir gnu/java/locale; fi<br />
 if test ! -d gnu; then mkdir gnu; fi<br />
&gt; if test ! -d gnu/java; then mkdir gnu/java; fi<br />
&gt; if test ! -d gnu/java/locale; then mkdir gnu/java/locale; fi</p>
<p>&gt; if test ! -d gnu/javax/swing/plaf/gtk/icons; then mkdir -p gnu/javax/swing/plaf/gtk/icons; fi</p>
<p> if test ! -d $$p; then mkdir $$p; fi; \</p>
<p>3) Following changes are required for libjava/scripts/jar</p>
<p> if test -f &#8220;$2&#8243;/&#8221;$1&#8243;; then</p>
<p> elif test -f &#8220;$1&#8243;; then</p>
<p> mkdir_p_fun () {</p>
<p> mkdir_p=&#8217;mkdir_p_fun&#8217;<br />
+<br />
4) Following changes are required for /gcc/gcc/Makefile</p>
<p>&lt; STRICT2_WARN = -pedantic -Wno-long-long -Wno-variadic-macros \<br />
 STRICT2_WARN = -pedantic -Wno-long-long \<br />
&gt; -Wold-style-definition -Wmissing-format-attribute \</p>
<p>&lt; echo &#039;SYSTEM_HEADER_DIR=&quot;&#039;&quot;$(SYSTEM_HEADER_DIR)&quot;&#039;&quot;&#039;<br />
 $(DESTDIR)$(itoolsdatadir)/mkheaders.conf<br />
&#8212;<br />
&gt; echo &#8216;SYSTEM_HEADER_DIR=&#8221;$(SYSTEM_HEADER_DIR)&#8221;&#8216; &gt; $(DESTDIR)$(itoolsdatadir)/mkheaders.conf</p>
<p>5) There could the case when gcc loader could not load some directories then we need to copy that particular .so file in $BuildDir/$BuildDir/lib/ . For this i think there is some bug with binutils loader that is why it could not load same library from /usr/bin or /lib/. So need to go for above work around.</p>
<p>6) Set following environmental param if required :<br />
LD_LIBRARY_PATH , LD_RUN_PATH , CC , RPATH.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumitkgaur.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumitkgaur.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumitkgaur.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumitkgaur.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumitkgaur.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumitkgaur.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumitkgaur.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumitkgaur.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumitkgaur.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumitkgaur.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumitkgaur.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumitkgaur.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumitkgaur.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumitkgaur.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=9&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumitkgaur.wordpress.com/2010/01/25/compile-gcc-for-solaris-10-on-x86-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38cc3c3b5f8b8971843802e51199736c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumitkgaur</media:title>
		</media:content>
	</item>
		<item>
		<title>Dirrefent ways to run system command in C++ programme</title>
		<link>http://sumitkgaur.wordpress.com/2010/01/25/dirrefent-ways-to-run-system-command-in-c-programme/</link>
		<comments>http://sumitkgaur.wordpress.com/2010/01/25/dirrefent-ways-to-run-system-command-in-c-programme/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:24:50 +0000</pubDate>
		<dc:creator>sumitkgaur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Dirrefent ways to run system command in C++ programme]]></category>

		<guid isPermaLink="false">http://sumitkgaur.wordpress.com/2010/01/25/dirrefent-ways-to-run-system-command-in-c-programme/</guid>
		<description><![CDATA[Before proceding a short intro of forking (o) fork() The fork() system call will spawn a new child process which is an identical process to the parent except that has a new system process ID. The process is copied in memory from the parent and a new process structure is assigned by the kernel. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=8&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Before proceding a short intro of forking</p>
<p>(o) fork()<br />
The fork() system call will spawn a new child process which is an identical process to the parent except that has a new system process ID. The process is copied in memory from the parent and a new process structure is assigned by the kernel. The return value of the function is which discriminates the two threads of execution. A zero is returned by the fork function in the child&#8217;s process.</p>
<p>The environment, resource limits, umask, controlling terminal, current working directory, root directory, signal masks and other process resources are also duplicated from the parent in the forked child process.<br />
** Problems<br />
1) Some memory duplicated by a forked process such as file pointers, will cause intermixed output from both processes.<br />
2) Race conditions can be created due to the unpredictability of when the kernel scheduler runs portions or time slices of the process.</p>
<p>(o) vfork()<br />
Some systems have a system call vfork(), which was originally designed as a lower-overhead version of fork().The basic difference between the two is that when a new process is created with vfork(), the parent process is temporarily suspended, and the child process might borrow the parent&#8217;s address space. This strange state of affairs continues until the child process either exits, or calls execve(), at which point the parent process continues.<br />
** Problems<br />
1) A deadlock condition may occur if the child process does not terminate, the parent process will not proceed.</p>
<p>(o) int system ( const char * command )<br />
Invokes the command processor to execute a command. Once the command execution has terminated, the processor gives the control back to the program, returning an int value, whose interpretation is system-dependent. C string containing the system command to be executed.<br />
This function is implemented using fork(), exec() and waitpid(). The command string is executed by calling /bin/sh -c command-string. During execution of the command, SIGCHLD will be blocked, and SIGINT and SIGQUIT will be ignored. The call &#8220;blocks&#8221; and waits for the task to be performed before continuing.<br />
** Problems<br />
1) Rrequired memory to fork, so in case of no memory this would not work.</p>
<p>(o) popen()<br />
The popen() call opens a process by creating a pipe, forking, and invoking the shell (bourne shell on Linux). The advantage to using popen() is that it will allow one to interrogate the results of the command issued.</p>
<p>** Problems<br />
1) Rrequired memory to fork, so in case of no memory this would not work.</p>
<p>(o) exec() and execve()<br />
The exec() family of functions will initiate a program from within a program. They are also various front-end functions to execve().The functions return an integer error code. (0=Ok/-1=Fail).</p>
<p>more detailed info</p>
<p>http://www.cse.msu.edu/cgi-bin/man2html?exec?2?/usr/man</p>
<p>** Problems<br />
1) Rrequired memory to fork, so in case of no memory this would not work.</p>
<p>(o) By using kernel interface<br />
A central theme in operating system design is the kernel interface. The kernel interface is the API of the operating system, and therefore the choice of API determines the structure, features and limitations of an operating system. We can use such interfaces to run some of commands we need in emergency.</p>
<p>e.g To run reboot command include and use int reboot(int howto);</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumitkgaur.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumitkgaur.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumitkgaur.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumitkgaur.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumitkgaur.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumitkgaur.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumitkgaur.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumitkgaur.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumitkgaur.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumitkgaur.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumitkgaur.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumitkgaur.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumitkgaur.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumitkgaur.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=8&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumitkgaur.wordpress.com/2010/01/25/dirrefent-ways-to-run-system-command-in-c-programme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38cc3c3b5f8b8971843802e51199736c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumitkgaur</media:title>
		</media:content>
	</item>
		<item>
		<title>five points for gdb over dbx knowledge</title>
		<link>http://sumitkgaur.wordpress.com/2010/01/25/five-points-for-gdb-over-dbx-knowledge/</link>
		<comments>http://sumitkgaur.wordpress.com/2010/01/25/five-points-for-gdb-over-dbx-knowledge/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:24:14 +0000</pubDate>
		<dc:creator>sumitkgaur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sumitkgaur.wordpress.com/2010/01/25/five-points-for-gdb-over-dbx-knowledge/</guid>
		<description><![CDATA[I used to work with dbx for debugging any code realated bug but last project I had worked with gdb as project was for linux platform. Here are five points for gdb, need to consider too for dbx users 1) To check any hex dump for a void * type of variable use following command [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=7&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I used to work with dbx for debugging any code realated bug but last project I had worked with gdb as project was for linux platform. Here are five points for gdb, need to consider too for dbx users</p>
<p>1) To check any hex dump for a void * type of variable use following command in gdb<br />
(gdb) x/256xb buffer<br />
where 256 is the size of buffer that you could change as per your requirement.</p>
<p>2) gdb supports all the short cuts that we used to do in bash shell like command search for ctrl+r.</p>
<p>3) T check what is in the processor registers<br />
info registers</p>
<p>4) I see the assembly code my program is running use disassemble commad e.g.<br />
disassemble main</p>
<p>5) For adding source path we are using directory command that was pathmap in dbx.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumitkgaur.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumitkgaur.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumitkgaur.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumitkgaur.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumitkgaur.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumitkgaur.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumitkgaur.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumitkgaur.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumitkgaur.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumitkgaur.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumitkgaur.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumitkgaur.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumitkgaur.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumitkgaur.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=7&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumitkgaur.wordpress.com/2010/01/25/five-points-for-gdb-over-dbx-knowledge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38cc3c3b5f8b8971843802e51199736c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumitkgaur</media:title>
		</media:content>
	</item>
		<item>
		<title>packaging in linux platform</title>
		<link>http://sumitkgaur.wordpress.com/2010/01/25/packaging-in-linux-platform/</link>
		<comments>http://sumitkgaur.wordpress.com/2010/01/25/packaging-in-linux-platform/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:23:49 +0000</pubDate>
		<dc:creator>sumitkgaur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sumitkgaur.wordpress.com/2010/01/25/packaging-in-linux-platform/</guid>
		<description><![CDATA[I have never did packaging in linux platform and had faced a lot of problem in creating a simple spec file. Now as I have through with it I want to share this information in my Blog. The major portion in linux packaging process is to create a right spec file. Here I am giving [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=6&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have never did packaging in linux platform and had faced a lot of problem in creating a simple spec file. Now as I have through with it I want to share this information in my Blog.<br />
The major portion in linux packaging process is to create a right spec file. Here I am giving a sample and simplest spec file. Assumptions here are we want software get install in /opt/package- name/lib and /opt/package- name/bin directory. Given below is the containt of &#8220;Package name&#8221;.spec file :-</p>
<p>Summary: Write name of project<br />
Name: Package name<br />
Version: 0.0.1<br />
Release: 1<br />
License: GPL<br />
Group: wite any group name (for detail could go any link given below)<br />
Source: /usr/src/packages/SOURCES/-.tar.gz<br />
BuildRoot: /usr/src/packages/RPMS/x86_64/opt</p>
<p>%description<br />
Project description that will come as information after installation of package.</p>
<p>%prep<br />
%setup -q</p>
<p>%install<br />
mkdir -p $RPM_BUILD_ROOT/opt/write you package name/bin/<br />
mkdir -p $RPM_BUILD_ROOT/opt/write your package name /lib/</p>
<p>install -s -m 0755 /usr/src/packages/BUILD/-/opt/write you package name/bin/* $RPM_BUILD_ROOT/opt/write you package name/bin/<br />
install -s -m 0755 /usr/src/packages/BUILD/-/opt/write you package name/lib/*.so* $RPM_BUILD_ROOT/opt/write you package name/lib/</p>
<p>%clean<br />
rm -rf $RPM_BUILD_ROOT</p>
<p>%files<br />
%defattr(1777,root,root)</p>
<p>/opt/write you package name/bin/*<br />
/opt/write you package name/lib/*.so*</p>
<p>&#8212;&#8212;&#8212;&#8211;<br />
Done<br />
Now simply you need to run following commands</p>
<p>1) Create a rpm file in default folder of /usr/src/packages/RPMS<br />
rpmbuild -ba /usr/src/packages/SPECS/package_name.spec<br />
2) Install rpmfile to the location provided by you in spec file<br />
rpm -ivh /usr/src/packages/RPMS/******.rpm<br />
3) Remove software from the platform<br />
rpm -e magnum-lda<br />
4) Query the package and get detail that you have specified in spec file.<br />
rpm -qpl magnum-lda-1.0.0-1.x86_64.rpm</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumitkgaur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumitkgaur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumitkgaur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumitkgaur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumitkgaur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumitkgaur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumitkgaur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumitkgaur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumitkgaur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumitkgaur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumitkgaur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumitkgaur.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumitkgaur.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumitkgaur.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=6&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumitkgaur.wordpress.com/2010/01/25/packaging-in-linux-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38cc3c3b5f8b8971843802e51199736c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumitkgaur</media:title>
		</media:content>
	</item>
		<item>
		<title>Steps to burn a CD/DVD in Solaris</title>
		<link>http://sumitkgaur.wordpress.com/2010/01/25/steps-to-burn-a-cddvd-in-solaris/</link>
		<comments>http://sumitkgaur.wordpress.com/2010/01/25/steps-to-burn-a-cddvd-in-solaris/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:23:04 +0000</pubDate>
		<dc:creator>sumitkgaur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Steps to burn a CD/DVD in Solaris]]></category>

		<guid isPermaLink="false">http://sumitkgaur.wordpress.com/2010/01/25/steps-to-burn-a-cddvd-in-solaris/</guid>
		<description><![CDATA[1. Create a temporary directory. 2. Copy the files you want to burn to CD/DVD to this temporary directory. 3. Make an iso image out of it. 4. Mount the iso image (to make sure that it works) 5. Now insert the CD/DVD media in the drive and burn the data onto it. Example: 1. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=5&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Create a temporary directory.<br />
2. Copy the files you want to burn to CD/DVD to this temporary directory.<br />
3. Make an iso image out of it.<br />
4. Mount the iso image (to make sure that it works)<br />
5. Now insert the CD/DVD media in the drive and burn the data onto it.</p>
<p>Example:<br />
1. bash#&gt; mkdir ./temp_dir<br />
2. bash#&gt; cp /my_dir_path/myfiles ./temp_dir<br />
3. bash#&gt; mkisofs -J -R -o /my_dir_path/my_files.iso ./temp_dir<br />
4. bash#&gt; lofiadm -a /my_dir_path/my_files.iso<br />
/dev/lofi/1<br />
bash#&gt; mount -F hsfs /dev/lofi/1 /mnt<br />
5. bash#&gt; cd /usb<br />
bash#&gt; cdrw -i /my_dir_path/my_files.iso<br />
Looking for CD devices&#8230;<br />
Initializing device&#8230;done.<br />
Preparing to write DVD<br />
Writing track 1&#8230;done.<br />
Finalizing (Can take several minutes)&#8230;done. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumitkgaur.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumitkgaur.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumitkgaur.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumitkgaur.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumitkgaur.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumitkgaur.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumitkgaur.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumitkgaur.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumitkgaur.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumitkgaur.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumitkgaur.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumitkgaur.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumitkgaur.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumitkgaur.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=5&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumitkgaur.wordpress.com/2010/01/25/steps-to-burn-a-cddvd-in-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38cc3c3b5f8b8971843802e51199736c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumitkgaur</media:title>
		</media:content>
	</item>
		<item>
		<title>make a choice pthread_join or pthread_detach</title>
		<link>http://sumitkgaur.wordpress.com/2010/01/25/make-a-choice-pthread_join-or-pthread_detach/</link>
		<comments>http://sumitkgaur.wordpress.com/2010/01/25/make-a-choice-pthread_join-or-pthread_detach/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:22:25 +0000</pubDate>
		<dc:creator>sumitkgaur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[make a choice pthread_join or pthread_detach]]></category>

		<guid isPermaLink="false">http://sumitkgaur.wordpress.com/2010/01/25/make-a-choice-pthread_join-or-pthread_detach/</guid>
		<description><![CDATA[Depends if you want to get some sort of status code or return value from the thread. If the thread doesn&#8217;t need to signal any errors (or it signals errors in some other way than the return code), then using detach is preferable since it (slightly) reduces overhead. If you want to get the return [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=4&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Depends if you want to get some sort of status code or return value from the thread. If the thread doesn&#8217;t need to signal any errors (or it signals errors in some other way than the return code), then using detach is preferable since it (slightly) reduces overhead. If you want to get the return code from the thread, then you need to use pthread_join. pthread_join is also useful for making sure than another thread has finished it&#8217;s work.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumitkgaur.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumitkgaur.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumitkgaur.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumitkgaur.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumitkgaur.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumitkgaur.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumitkgaur.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumitkgaur.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumitkgaur.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumitkgaur.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumitkgaur.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumitkgaur.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumitkgaur.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumitkgaur.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=4&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumitkgaur.wordpress.com/2010/01/25/make-a-choice-pthread_join-or-pthread_detach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38cc3c3b5f8b8971843802e51199736c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumitkgaur</media:title>
		</media:content>
	</item>
		<item>
		<title>memory leaks</title>
		<link>http://sumitkgaur.wordpress.com/2010/01/25/memory-leaks/</link>
		<comments>http://sumitkgaur.wordpress.com/2010/01/25/memory-leaks/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:21:41 +0000</pubDate>
		<dc:creator>sumitkgaur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[memory leaks]]></category>

		<guid isPermaLink="false">http://sumitkgaur.wordpress.com/2010/01/25/memory-leaks/</guid>
		<description><![CDATA[memory leaks After debugging a lot i find out the problems with mdb and way easy dbx mem leak cheks. I am writing here steps to find out leaks in mdb Vs dbx . Also current mdb has bug that you have to set sysbp _exit before starting and that gives you pain if you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=3&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>memory leaks</p>
<p>After debugging a lot i find out the problems with mdb and way easy dbx mem leak cheks. I am writing here steps to find out leaks in mdb Vs dbx . Also current mdb has bug that you have to set sysbp _exit before starting and that gives you pain if you have big appliation to debug(specially threded one).</p>
<p>for mdb :-<br />
[root@o4test45 ]$export LD_PRELOAD=libumem.so.1<br />
[root@o4test45 ]$export UMEM_LOGGING=transaction<br />
[root@o4test45 ]$export UMEM_DEBUG=default</p>
<p>mdb /path/application<br />
&gt; ::sysbp _exit<br />
&gt; run<br />
mdb: failed to dereference symbol: unknown symbol name<br />
&gt; ::run<br />
=======&gt;&gt;&gt; FDP starting [version: 0.0.3 (2008Mar31 08:37)]<br />
mdb: fork1 detected: follow (p)arent or (c)hild? c<br />
mdb: target forked child process 16732 (debugger following child)</p>
<p>mdb: stop on SIGABRT<br />
mdb: target stopped at:<br />
libc.so.1`_lwp_kill+7: jae +0xe<br />
mdb: You&#8217;ve got symbols!<br />
Loading modules: [ ld.so.1 libumem.so.1 libc.so.1 ]<br />
&gt;<br />
&gt; ::load libumem<br />
&gt; ::findleaks<br />
BYTES LEAKED VMEM_SEG CALLER<br />
4096 1 bfd58000 MMAP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Total 1 oversized leak, 4096 bytes</p>
<p>CACHE LEAKED BUFCTL CALLER<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Total 0 buffers, 0 bytes<br />
&gt;</p>
<p>For DBX :-</p>
<p>export LD_AUDIT=/opt/SUNWspro/lib/rtcaudit.so before starting the process</p>
<p>root@o4test45 ]$export LD_AUDIT=rtcaudit.so<br />
[root@o4test45 ]$export LD_LIBRARY_PATH=/opt/SUNWspro/lib/<br />
[root@o4test45 ]$export LD_LIBRARY_PATH_64=/opt/SUNWspro/lib/amd64/<br />
[root@o4test45 ]$./bin/dbx<br />
For information about new features see `help changes&#8217;<br />
To remove this message, put `dbxenv suppress_startup_message 7.6&#8242; in your .dbxrc<br />
(dbx) dbxenv mt_sync_tracking off<br />
(dbx) attach 12279<br />
&#8230;. &#8230;. &#8230;<br />
&#8230; &#8230;. &#8230;.</p>
<p>(dbx) dbxenv rtc_auto_continue on<br />
(dbx) dbxenv rtc_error_log_file_name /tmp/dbx.errlog.101<br />
(dbx) dbxenv rtc_error_stack on<br />
(dbx) check -all<br />
access checking &#8211; ON<br />
memuse checking &#8211; ON<br />
RTC: Enabling Error Checking&#8230;<br />
RTC: Running program&#8230;<br />
(dbx) cont<br />
(dbx) showleaks -m 8 -v</p>
<p>Is it not tooo easy then mdb ?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumitkgaur.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumitkgaur.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumitkgaur.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumitkgaur.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumitkgaur.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumitkgaur.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumitkgaur.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumitkgaur.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumitkgaur.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumitkgaur.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumitkgaur.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumitkgaur.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumitkgaur.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumitkgaur.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=3&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumitkgaur.wordpress.com/2010/01/25/memory-leaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38cc3c3b5f8b8971843802e51199736c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumitkgaur</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://sumitkgaur.wordpress.com/2010/01/25/hello-world/</link>
		<comments>http://sumitkgaur.wordpress.com/2010/01/25/hello-world/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:02:46 +0000</pubDate>
		<dc:creator>sumitkgaur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=1&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sumitkgaur.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sumitkgaur.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sumitkgaur.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sumitkgaur.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sumitkgaur.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sumitkgaur.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sumitkgaur.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sumitkgaur.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sumitkgaur.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sumitkgaur.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sumitkgaur.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sumitkgaur.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sumitkgaur.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sumitkgaur.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sumitkgaur.wordpress.com&amp;blog=11643643&amp;post=1&amp;subd=sumitkgaur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sumitkgaur.wordpress.com/2010/01/25/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/38cc3c3b5f8b8971843802e51199736c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sumitkgaur</media:title>
		</media:content>
	</item>
	</channel>
</rss>
