1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9 <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml"$>" />
12 <title>Status for Andrew DeFaria: April 2005 Archives</title>
14 <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/Status/archives/2005_03.html" title="March 2005" />
16 <link rel="next" href="http://defaria.com/blogs/Status/archives/2005_05.html" title="May 2005" />
18 <body class="layout-one-column">
20 <div id="container-inner" class="pkg">
23 <div id="banner-inner" class="pkg">
24 <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25 <h2 id="banner-description">Searchable status reports and work log</h2>
30 <div id="pagebody-inner" class="pkg">
32 <div id="alpha-inner" class="pkg">
34 <p class="content-nav">
35 <a href="http://defaria.com/blogs/Status/archives/2005_03.html">« March 2005</a> |
36 <a href="http://defaria.com/blogs/Status/">Main</a>
37 | <a href="http://defaria.com/blogs/Status/archives/2005_05.html">May 2005 »</a>
43 <h2 class="date-header">April 28, 2005</h2>
45 <div class="entry" id="entry-346">
46 <h3 class="entry-header">GD Packaging</h3>
47 <div class="entry-content">
48 <div class="entry-body">
50 <li>Updated package script for GD to include new functionality</li>
53 <p class="entry-footer">
54 <span class="post-footers">Posted by at 6:49 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000346.html">Permalink</a>
66 <div class="entry" id="entry-345">
67 <h3 class="entry-header">GD LOS178</h3>
68 <div class="entry-content">
69 <div class="entry-body">
70 <p>Performed the following functions:</p>
73 <li>Committed CR542. Only 130 files got committed. Then I realized that none of the new files would be committed until cvs adds were done on the new files. This is because we are pulling the CR from one cvs repository to another using tar.</li>
75 <li>Compiled a list of files to be added and wrote a Perl script to add them. This took a long time to run mainly because of so many new files and because the quick algorithm I did was to chop the path name to its components and cvs add each component. This insured that all parent directories were properly cvs added however the algorithm redundantly adds parent directories. This is not harmful but slowed the progress.</li>
77 <li>After all files were added performed a commit to commit these new files to the repository</li>
79 <li>Tagged bin-image, toolbox, tst and los178 with the tag DEV_HYBRIDOS_2p0_ppc_20050428. Didn't know if it should be a REL or DEV tag. We can change this if need be.</li>
81 <li>Checked out using the above tag and built both dev and pdn</li>
83 <li>Packaged up everything into tomcat:/export/dev_archive/hybridos/2p0/20050428/solaris/media/ppc</li>
86 <p>Question: Should this tag be added to TagsLog or are DEV tags not to be documented in TagsLog.</p>
88 <p class="entry-footer">
89 <span class="post-footers">Posted by at 2:47 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000345.html">Permalink</a>
99 <h2 class="date-header">April 27, 2005</h2>
101 <div class="entry" id="entry-344">
102 <h3 class="entry-header">Port CR542 -> GD</h3>
103 <div class="entry-content">
104 <div class="entry-body">
106 <li>Worked on porting CR542 over to GD</li>
109 <h3>CR542 port to GD</h3>
111 <p>There were a few problems with this port:</p>
114 <li>Symlink used for the <a href="/blogs/Status/archives/000324.html">bison.simple fix</a> was not a good fix. If ~adefaria/ppc_dev ever disappeared (and it did/does when I clean up things), then bison.simple is simply not available any more. Had Jeff fix this by putting a copy of bison.simple into the /usr/lynx/3.1.0 area. This defect should be fixed...</p>
116 <li>Implemented new src/bin/Makefile for some fixes that Thu requested</li>
118 <li>Top level Makefile needed to put src/net before src/bin so that openssl would be build before ping6 requires it</li>
121 <p>An outstanding issue is that if /usr/local/ssl exists on the build machine, openssl attempts to build itself. It should be using $ENV_PREFIX but it isn't. This problem was not detected in LOS178 because nothing in openssl was being used (and, again, if /usr/local/ssl is not there the the build process doesn't even attempt to build openssl).</p>
123 <p class="entry-footer">
124 <span class="post-footers">Posted by at 5:59 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000344.html">Permalink</a>
134 <h2 class="date-header">April 26, 2005</h2>
136 <div class="entry" id="entry-343">
137 <h3 class="entry-header">LOS178 build with CR 542</h3>
138 <div class="entry-content">
139 <div class="entry-body">
141 <li>Finally worked out remaining problems with build of LOS178 + CR 542</li>
143 <li>Packaged up build and put on T3</li>
145 <li>Worked on files4cr script to try to determine what is the changeset for 542</li>
149 <p class="entry-footer">
150 <span class="post-footers">Posted by at 5:55 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000343.html">Permalink</a>
160 <h2 class="date-header">April 25, 2005</h2>
162 <div class="entry" id="entry-342">
163 <h3 class="entry-header">LOS178 & CR 542</h3>
164 <div class="entry-content">
165 <div class="entry-body">
167 <li>Worked with Glibert identifying problems with build of LOS178 + CR 542</li>
170 <p class="entry-footer">
171 <span class="post-footers">Posted by at 5:53 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000342.html">Permalink</a>
181 <h2 class="date-header">April 22, 2005</h2>
183 <div class="entry" id="entry-341">
184 <h3 class="entry-header">Bluecat/Bluecat</h3>
185 <div class="entry-content">
186 <div class="entry-body">
188 <li>Building of BC 5.3 on RH 6.1 failed in step 7. Apparently I had /mnt/cdrom already mounted. Picked up from step 8...</li>
190 <li>Building of BC 5.2 on RH 8.0 got along farther - to step 3.7! - but failed due to lack of uudecode. Installed and proceeding</li>
193 <h3>BC 5.2 on RH 8.0</h3>
195 <p> Building BC 5.3 on RH 8.0 failed in step 3 with the following in build_ncurses.log:</p>
197 <div class="code"><pre>
198 + zcat /build/bluecat/build/20050319/cdt/src/bluecat/SOURCES/patch-5.3-20021231.sh.gz
200 sh: line 2196: uudecode: command not found
201 gzip: ncurses-5.3-20021231.patch.gz: No such file or directory
202 + echo 'Patch #2 (ncurses-5.3-20030105.patch.gz):'
203 + /bin/gzip -dc /build/bluecat/build/20050319/cdt/src/bluecat/SOURCES/ncurses-5.3-20030105.patch.gz
206 error: Bad exit status from /build/bluecat/build/20050319/var/tmp/rpm-tmp.56417 (%prep)
207 Bad exit status from /build/bluecat/build/20050319/var/tmp/rpm-tmp.56417 (%prep)
210 <p>Turns out uudecode is part of sharutils-4.2.1-12 which I downloaded and installed. This should be added to the required package list.</p>
212 <p class="entry-footer">
213 <span class="post-footers">Posted by at 2:46 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000341.html">Permalink</a>
223 <h2 class="date-header">April 21, 2005</h2>
225 <div class="entry" id="entry-340">
226 <h3 class="entry-header">BC Builds/CVS Corruption</h3>
227 <div class="entry-content">
228 <div class="entry-body">
230 <li>Recieved hack to continue on with RH8.0 build. Proceeded to build that on Europa</li>
232 <li>Recieved instructions from Sasha regarding building BC 5.3 on RH 6.1. Proceeded to build that on Jaguar</li>
234 <li>Finished fixing CVS corruption with Vinnie's help</li>
237 <h3>RH 8.0 BC Build</h3>
239 <p>Sasha's only advice was to uncomment a line in the glibc_cdt.spec file that gunzip's these info files. I had seen that before. I did this and restarted a stepwise build @ step 3. I suspect, however, that were I to backtrack to step 1 or so this hack would be overwritten</p>
241 <h3>BC 5.3 build on RH 6.1</h3>
243 <p>Meantime BC development goes on to BC 5.3. Sasha sent a PDF file with instructions for building. Looks like they've incorporated some of the changes I suggested (fixing mktools to be part of step one as well as the patch spec). Unfortunately they have not incorporated the fix for RH 8.0 to the do_it script.</p>
245 <p>Still the build is progressing fairly nicely and it looks as if they've also reduced the number of steps from 17 -> 13 (though do_it still described steps > 13).</p>
247 <p>I had made a change or two to do_it essentially removing the su $BUILD_CMD_USER as that causes me problems and utilizing sudo around the mount commands in steps 7 and 11. I have configured Europa such that int has passwordless sudo privileges.</p>
249 <p class="entry-footer">
250 <span class="post-footers">Posted by at 4:05 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000340.html">Permalink</a>
260 <h2 class="date-header">April 20, 2005</h2>
262 <div class="entry" id="entry-339">
263 <h3 class="entry-header">Rebuilding glibc RH 8.0</h3>
264 <div class="entry-content">
265 <div class="entry-body">
267 <li>Rebuild glibc on RH 8.0 in order to obtain static .a files for libnss_dns and libnss_files.</li>
270 <h3>Rebuilding glibc</h3>
272 <p>According to Sasha I downloaded a copy of glibc-2.2.93.5.src.rpm. Next I modified the spec file to include --enable-static-nss=yes. In attempting to rebuild using rpmbuild -bb I received notice that I had to get and install gd-devel-1.8.4-9.i386.rpm and libpng-devel-1.2.2-8.i386.rpm. After that the rpmbuild worked OK and I copied the libraries like so:</p>
274 <div class="code"><pre>
275 $ cp /usr/src/redhat/BUILD/glibc-2.2.93/build-i386-linux/resolv/libnss_dns.a /usr/lib/libnss_dns.a
276 $ cp /usr/src/redhat/BUILD/glibc-2.2.93/build-i385-linux/nss/libnss_files.a /usr/lib/libnss_files.a
279 <p class="entry-footer">
280 <span class="post-footers">Posted by at 3:44 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000339.html">Permalink</a>
290 <h2 class="date-header">April 19, 2005</h2>
292 <div class="entry" id="entry-338">
293 <h3 class="entry-header">BC Step 3 still broke</h3>
294 <div class="entry-content">
295 <div class="entry-body">
297 <li>Trying to resolve problems in BC build step 3</li>
300 <p>The build is still failing in step3. Specifically I see lines like the following at the end of build_glibc.log:</p>
302 <div class="code"><pre>
303 rpm-tmp.51419 line 27:cp -pr documentation/ChangeLog.1.gz documentation/ChangeLog.10.gz documentation/ChangeLog.11.gz documentation/ChangeLog.12.gz documentation/ChangeLog.13.gz documentation/ChangeLog.2.gz documentation/ChangeLog.3.gz documentation/ChangeLog.4.gz documentation/ChangeLog.5.gz documentation/ChangeLog.6.gz documentation/ChangeLog.7.gz documentation/ChangeLog.8.gz documentation/ChangeLog.9.gz documentation/ChangeLog.gz documentation/ChangeLog.threads.gz documentation/Changes.threads documentation/FAQ-threads.html documentation/README.threads documentation/README.timezone documentation/README.ufc-crypt documentation/examples.threads /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/usr/share/doc/glibc_cdt-common-2.3.2
304 rpm-tmp.51419 line 28:exit 0
305 File not found: /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/share/info/libc.info
306 File not found: /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/share/info/libc.info-1
307 File not found: /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/share/info/libc.info-10
308 File not found: /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/share/info/libc.info-11
309 File not found: /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/share/info/libc.info-12
313 <p>When I look to see what's in that path I do see libc.info files (libc.info, libc.info-1, libc.info-10, etc.) but they are all gzipped (i.e. libc.info -> libc.info.gz, libc.info-10 -> libc.info-10.gz). My only suspicion is that something in this process changed to use gzip files and some other portion of this process is looking for the unzipped files.</p>
315 <p>As this appears to be dynamically created, I cannot simply unzip these files and continue on from this point. What should I do?</p>
317 <p>I have also been trying to perform the rpmbuild in steps (-bp, -bc, etc) to no avail. I've even tried to keep these .gz files around and place them in place so that the build/install can continue but then down the line I get problems like:</p>
319 <div class="code"><pre>
320 + install -m 644 /build/bluecat/build/20050319/cdt/src/bluecat/SOURCES/nsswitch.conf /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/etc/nsswitch.conf
321 install: cannot stat `/build/bluecat/build/20050319/cdt/src/bluecat/SOURCES/nsswitch.conf': No such file or directory
322 error: Bad exit status from /build/bluecat/build/20050319/var/tmp/rpm-tmp.44405 (%install)
325 <p>This is obviously not the right way to do this. I should wait from word from Moscow before preceeding.</p>
327 <p class="entry-footer">
328 <span class="post-footers">Posted by at 3:56 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000338.html">Permalink</a>
338 <h2 class="date-header">April 18, 2005</h2>
340 <div class="entry" id="entry-337">
341 <h3 class="entry-header">Bluecat Response</h3>
342 <div class="entry-content">
343 <div class="entry-body">
345 <li>Installed autoconf-2-13 on Europa. Restarting Bluecat build</li>
348 <p>Received a response from Alexander. Seems Bluecat relies on autoconf-2.13. Found a package on the web and installed it.</p>
350 <p>Sasha also speaks of rebuilding glibc in order to get an archive version of libnss_dns and libnss_files. I've already copied these from Jaguar (RH 6.1).</p>
352 <p>Restarted Bluecat build in a non stepwise fashion. This should be interesting.</p>
354 <p class="entry-footer">
355 <span class="post-footers">Posted by at 5:09 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000337.html">Permalink</a>
365 <h2 class="date-header">April 14, 2005</h2>
367 <div class="entry" id="entry-336">
368 <h3 class="entry-header">Unable to build glibc for Bluecat</h3>
369 <div class="entry-content">
370 <div class="entry-body">
371 <p>In step 3 of the build process a build of glibc continues to fail. In debugging this I got down to:</p>
373 <div class="code"><pre>
374 /build/bluecat/build/20050319/cdt/bin/rpmbuild -ba --rmsource --clean /usr/src/bluecat/packages/glibc/SPECS/glibc_cdt.spec --bluecat_cdt=i386-bluecat-linux
377 <p>This rpmbuild command is building both source and binary rpms and effectively goes through a building process. After a long time it eventually fails with:</p>
379 <div class="code"><pre>
381 File not found: /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/\
383 File not found: /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/\
384 share/info/libc.info-1
385 File not found: /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/\
386 share/info/libc.info-10
390 <p>Looking in /build/bluecat/build/20050319/var/tmp/glibc-2.3.2-root/cdt/share/info I do see those files but they are gzipped (end in .gz). The rpmbuild command therefore returns a non zero status and due to bad error handling it looks as if the failure is somewhere else, but no it's here.</p>
392 <p>Also it seems like this directory, or at least the "var/tmp" portion of the path seems to indicate that this is a temporary directory, perhaps created by the rpmbuild itself so I'm not sure if simply unzipping the files will make this rpmbuild succeed or not.</p>
394 <p class="entry-footer">
395 <span class="post-footers">Posted by at 2:36 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000336.html">Permalink</a>
405 <h2 class="date-header">April 13, 2005</h2>
407 <div class="entry" id="entry-335">
408 <h3 class="entry-header">RH 8.0 BC Build</h3>
409 <div class="entry-content">
410 <div class="entry-body">
412 <li>Continuing with RH 8.0 BC build. Step 3 got pretty far but then has some problem. Attempting to repeat and debug</li>
415 <p class="entry-footer">
416 <span class="post-footers">Posted by at 3:32 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000335.html">Permalink</a>
426 <h2 class="date-header">April 12, 2005</h2>
428 <div class="entry" id="entry-334">
429 <h3 class="entry-header">Code review</h3>
430 <div class="entry-content">
431 <div class="entry-body">
433 <li>Held code review for 2.1.0 branch merge</li>
435 <li>Fixed references so that T3 == t3 WRT ecr.php. Also fixed a bug where multiple t3 type reference would fail to link properly</li>
437 <li>Plodding on with RH 8.0 Bluecat build</li>
440 <p class="entry-footer">
441 <span class="post-footers">Posted by at 4:13 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000334.html">Permalink</a>
451 <h2 class="date-header">April 11, 2005</h2>
453 <div class="entry" id="entry-333">
454 <h3 class="entry-header">LOS178 3.0.0</h3>
455 <div class="entry-content">
456 <div class="entry-body">
458 <li>Committed merge of branch 2.1.0 -> TOT producing 3.0.0</li>
460 <li>Tagged bin-image, los178, toolbox, and tst with REL_LOS178_3p0p0_ppc_20050408</li>
462 <li>Packaged up all media</li>
464 <li>Conducting review</li>
467 <p class="entry-footer">
468 <span class="post-footers">Posted by at 7:16 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000333.html">Permalink</a>
478 <h2 class="date-header">April 8, 2005</h2>
480 <div class="entry" id="entry-332">
481 <h3 class="entry-header">LOS178 3.0.0</h3>
482 <div class="entry-content">
483 <div class="entry-body">
485 <li>Merged 2.1.0 -> 2.0.0</li>
488 <p>Ah, here's the deal, according to CR 491:</p>
490 <blockquote type=cite>
491 <p>Clarification on who removed the C++ libraries: Rockwell Collins distributed the official VMOS 8.4 packages without the libstdc++.a and it is not LW that removed the libstdc++.a.</p>
493 <p>Since LW doesn't build the toolchain. The C++ libraries will be taken from LynxOS 3.1.0a PPC (12000.devos.tar.gz) and package into ppc.cdksol.tar.gz the prebuilt solaris cdk. This package will get extracted before starting the build.</p>
496 <p>So then the trick is to get the appropriate ppc.cdksol.tar.gz (revision 1.3.2.1).</p>
498 <p>So then summarizing what needs to be done:</p>
501 <li>Resolve the issue with arinc653drv.import (i.e. delete the file since it's marked dead)</li>
503 <li>Resolve the issue with ENVIRONMENT (see below)</li>
505 <li>Merge REL_LOS178_2p1p0-branch -> REL_LOS178_2p0p0_ppc_20050228 for bin-image to get the right ppc.cdksol.tar.gz.</li>
507 <li>Build to insure that it builds</li>
509 <li>Checkin merges</li>
512 <p>Regarding ENVIRONMENT: The conflict arise in 3 variables. The first variable, LYNXOS178_RELEASE is 2.0.0 in the old version and 2.1.0 in the new version. The new value will be 3.0.0.</p>
514 <p>The second variable is LYNXOS178_VERSION. In the old version it's 20050228 and the new version is 20050128. The new value will be today's date (20050408)</p>
516 <p>The third variable is also one of those time ones, RELEASE_TIMESTAMP. Old = "Mon Feb 28 11:00:00 2005" and New = "Fri Jan 28 11:00:00 2005". The new value will be "Fri Apr 8 11:00:00 2005".</p>
518 <p class="entry-footer">
519 <span class="post-footers">Posted by at 2:27 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000332.html">Permalink</a>
529 <h2 class="date-header">April 7, 2005</h2>
531 <div class="entry" id="entry-331">
532 <h3 class="entry-header">Bluecat RH 8.0 port</h3>
533 <div class="entry-content">
534 <div class="entry-body">
535 <p>This status entry is to hold a log of the issues and resolutions for getting the Bluecat build process from the ancient RH 6.1 to the <i>a little less ancient</i> RH 8.0.</p>
538 <li>Fun with eval, echo and new shell</li>
540 <li>Bug in rpm configure</li>
542 <li>Static vs. Shared</li>
546 <h3>Fun with eval, echo and new shell</h3>
548 <p>One of the things that the Bluecat do_it script does is to define the series of "steps" that need to be performed in terms of command lines in variables. Later on the $BUILD_STEP is evaluated to determine which set of commands need to be done as follows:</p>
550 <div class="code"><pre>
551 echo "---- Step $BUILD_STEP started at `date` ----"
552 su $BUILD_CMD_OWNER -c "mkdir -p $LOGS_PREFIX/step${BUILD_STEP}"
553 cmd=`eval echo $"STEP${BUILD_STEP}_CMD"`
554 su $BUILD_CMD_OWNER -c "$cmd $*"
557 <p>Effectively the name of the environment variable holding the proper command(s) for the step is composed with the echo portion. The eval statement is used to "evaluate" that environment variable thus storing the string of commands into the environment variable cmd. This works well in past versions of the OS but it fails in RH 8.0. First here's the behavior on RH 6.1:</p>
559 <div class="code"><pre>
560 <font color="blue"><b>RH6.1:</b></font><u>export STEP1_CMD="ls /tmp"</u>
561 <font color="blue"><b>RH6.1:</b></font><u>export BUILD_STEP=1</u>
562 <font color="blue"><b>RH6.1:</b></font><u>echo $"STEP${BUILD_STEP}_CMD"</u>
566 <p>However hears the same commands on RH8.0:</p>
568 <div class="code"><pre>
569 <font color="red"><b>RH8.0:</b></font><u>export STEP1_CMD="ls /tmp"</u>
570 <font color="red"><b>RH8.0:</b></font><u>export BUILD_STEP=1</u>
571 <font color="red"><b>RH8.0:</b></font><u>echo $"STEP${BUILD_STEP}_CMD"</u>
575 <p>As you can see the result is missing a $. Prepending a leading \ before the $ fixes this. Adding in the eval portion also works:</p>
577 <div class="code"><pre>
578 <font color="red"><b>RH8.0:</b></font><u>eval echo \$"STEP${BUILD_STEP}_CMD"</u>
582 <p>However when this is assigned to another environment variable (i.e. cmd) the result is not correct:</p>
584 <div class="code"><pre>
585 <font color="red"><b>RH8.0:</b></font><u>cmd=`eval echo \$"STEP${BUILD_STEP}_CMD"`</u>
586 <font color="red"><b>RH8.0:</b></font><u>echo $cmd</u>
590 <p>Subsituting the syntax of $(<command>) for `<command` however does work:</p>
592 <div class="code"><pre>
593 <font color="red"><b>RH8.0:</b></font><u>cmd=$(eval echo \$"STEP${BUILD_STEP}_CMD")</u>
594 <font color="red"><b>RH8.0:</b></font><u>echo $cmd</u>
598 <p>Note that the shell (bash) has been majorly updated for RH8.0:</p>
600 <div class="code"><pre>
601 <font color="blue"><b>RH6.1:</b></font><u>bash -version</u>
602 GNU bash, version 1.14.7(1)
607 <div class="code"><pre>
608 <font color="red"><b>RH8.0:</b></font><u>bash -version</u>
609 GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu)
610 Copyright (C) 2002 Free Software Foundation, Inc.
613 <p>Please note that this new syntax also works flawlessly on the older RH 6.1.</p>
615 <h3>Bug in rpm configure</h3>
617 <p>When trying to build Bluecat on RH 8.0 and running mktools (to build the local gnutools) I get the following:</p>
619 <div class="code"><pre>
620 [int@europa make]$ autoreconf -f -i
621 autoreconf: `aclocal.m4' is updated
622 Makefile.am: installing `./depcomp'
623 WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
624 WARNING: and `config.h.top', to define templates for `config.h.in'
625 WARNING: is deprecated and discouraged.
627 WARNING: Using the third argument of `AC_DEFINE' and
628 WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
629 WARNING: `acconfig.h':
631 WARNING: AC_DEFINE([NEED_MAIN], 1,
632 WARNING: [Define if a function `main' is needed.])
634 WARNING: More sophisticated templates can also be produced, see the
635 WARNING: documentation.
636 autoheader-2.53: `config.h.in' is updated
639 <p>Further, after running configure I get the following odd file in /usr/local/bluecat/eng/bluecat/make/.deps: remote-$(REMOTE).Po which causes the make to fail:</p>
641 <div class="code"><pre>
642 [int@europa make]$ make
643 Makefile:329: .deps/remote-stub.Po: No such file or directory
644 make: *** No rule to make target `.deps/remote-stub.Po'. Stop.
647 <p>Renaming .deps/remote-$(REMOTE).Po -> .deps/remote-stub.Po allows the make to proceed.</p>
649 <h3>Static vs. Shared - Cannot find -lnss_dns</h3>
651 <p>During the first real build step, step 2, the build fails when trying to build rpm. ld is unable to find the library nss_dns. Initial investigation shows that there is a nss_dns libs under /usr/lib as .so files but there is no .a file on RH 8.0. There is a .a file on RH 6.1 in /usr/lib. Apparently RH 8.0 no longer offers archive libraries for this. The solution to this problem is to pass -shared to gcc.</p>
653 <p>The specific gcc command line is:</p>
655 <div class="code"><pre>
656 <font color="blue"><b>int@europa tools:</b></font><u>pwd</u>
657 /var/tmp/rpm-4.2/tools
658 <font color="blue"><b>int@europa tools:</b></font><u>gcc -Wl,--verbose -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o rpmgraph <font color="red"><b>-static</b></font> rpmgraph.o ../lib/.libs/librpm.a /var/tmp/rpm-4.2/rpmdb/.libs/librpmdb.a -L/var/tmp/rpm-4.2/zlib -L/usr/local/lib /var/tmp/rpm-4.2/rpmio/.libs/librpmio.a /var/tmp/rpm-4.2/popt/.libs/libpopt.a ../beecrypt/.libs/libbeecrypt.a -lrt -lpthread -lc -lnss_dns -lnss_files -lresolv</u>
660 (/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libc.a)truncate64.o
661 (/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libc.a)truncate.o
662 attempt to open /var/tmp/rpm-4.2/zlib/libnss_dns.a failed
663 attempt to open /usr/local/lib/libnss_dns.a failed
664 attempt to open /usr/lib/gcc-lib/i386-redhat-linux/3.2/libnss_dns.a failed
665 attempt to open /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libnss_dns.a failed
666 attempt to open /usr/i386-redhat-linux/lib/libnss_dns.a failed
667 attempt to open /usr/lib/libnss_dns.a failed
668 attempt to open /usr/local/lib/libnss_dns.a failed
669 attempt to open /lib/libnss_dns.a failed
670 collect2: ld returned 1 exit status
673 <p>This is probably due to the -static above. Removing -static fixes this. The question is: Is it OK to remove -static? Second question is how?</p>
679 <p class="entry-footer">
680 <span class="post-footers">Posted by at 10:39 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000331.html">Permalink</a>
690 <h2 class="date-header">April 5, 2005</h2>
692 <div class="entry" id="entry-330">
693 <h3 class="entry-header">Hybrid OS</h3>
694 <div class="entry-content">
695 <div class="entry-body">
697 <li>Checked in Hybrid OS, bin-image, toolbox and tst suite</li>
699 <li>Build both dev and pdn for HybridOS</li>
701 <li>Create packages for Hybrid OS</li>
703 <li>Updated ChangeSynergy</li>
706 <p class="entry-footer">
707 <span class="post-footers">Posted by at 4:29 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000330.html">Permalink</a>
717 <h2 class="date-header">April 4, 2005</h2>
719 <div class="entry" id="entry-329">
720 <h3 class="entry-header">Building Bluecat on RH 8.0</h3>
721 <div class="entry-content">
722 <div class="entry-body">
724 <li>Build local GNUTools on RH 8.0</li>
726 <li>Fixed bug in do_it script WRT RH 8.0</li>
729 <h3>Building GNUTools on RH 8.0</h3>
731 <p>When trying to build Bluecat on RH 8.0 and running mktools (to build the local gnutools) I get the following:</p>
733 <div class="code"><pre>
734 [int@europa make]$ autoreconf -f -i
735 autoreconf: `aclocal.m4' is updated
736 Makefile.am: installing `./depcomp'
737 WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
738 WARNING: and `config.h.top', to define templates for `config.h.in'
739 WARNING: is deprecated and discouraged.
741 WARNING: Using the third argument of `AC_DEFINE' and
742 WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
743 WARNING: `acconfig.h':
745 WARNING: AC_DEFINE([NEED_MAIN], 1,
746 WARNING: [Define if a function `main' is needed.])
748 WARNING: More sophisticated templates can also be produced, see the
749 WARNING: documentation.
750 autoheader-2.53: `config.h.in' is updated
753 <p>Further, after running configure I get the following odd file in /usr/local/bluecat/eng/bluecat/make/.deps: remote-$(REMOTE).Po which causes the make to fail:</p>
755 <div class="code"><pre>
756 [int@europa make]$ make
757 Makefile:329: .deps/remote-stub.Po: No such file or directory
758 make: *** No rule to make target `.deps/remote-stub.Po'. Stop.
761 <p>Renaming .deps/remote-$(REMOTE).Po -> .deps/remote-stub.Po allows the make to proceed.</p>
763 <h3>Fun with eval, echo and new shell</h3>
765 <p>One of the things that the Bluecat do_it script does is to define the series of "steps" that need to be performed in terms of command lines in variables. Later on the $BUILD_STEP is evaluated to determine which set of commands need to be done as follows:</p>
767 <div class="code"><pre>
768 echo "---- Step $BUILD_STEP started at `date` ----"
769 su $BUILD_CMD_OWNER -c "mkdir -p $LOGS_PREFIX/step${BUILD_STEP}"
770 cmd=`eval echo $"STEP${BUILD_STEP}_CMD"`
771 su $BUILD_CMD_OWNER -c "$cmd $*"
774 <p>Effectively the name of the environment variable holding the proper command(s) for the step is composed with the echo portion. The eval statement is used to "evaluate" that environment variable thus storing the string of commands into the environment variable cmd. This works well in past versions of the OS but it fails in RH 8.0. First here's the behavior on RH 6.1:</p>
776 <div class="code"><pre>
777 <font color="blue"><b>RH6.1:</b></font><u>export STEP1_CMD="ls /tmp"</u>
778 <font color="blue"><b>RH6.1:</b></font><u>export BUILD_STEP=1</u>
779 <font color="blue"><b>RH6.1:</b></font><u>echo $"STEP${BUILD_STEP}_CMD"</u>
783 <p>However hears the same commands on RH8.0:</p>
785 <div class="code"><pre>
786 <font color="red"><b>RH8.0:</b></font><u>export STEP1_CMD="ls /tmp"</u>
787 <font color="red"><b>RH8.0:</b></font><u>export BUILD_STEP=1</u>
788 <font color="red"><b>RH8.0:</b></font><u>echo $"STEP${BUILD_STEP}_CMD"</u>
792 <p>As you can see the result is missing a $. Prepending a leading \ before the $ fixes this. Adding in the eval portion also works:</p>
794 <div class="code"><pre>
795 <font color="red"><b>RH8.0:</b></font><u>eval echo \$"STEP${BUILD_STEP}_CMD"</u>
799 <p>However when this is assigned to another environment variable (i.e. cmd) the result is not correct:</p>
801 <div class="code"><pre>
802 <font color="red"><b>RH8.0:</b></font><u>cmd=`eval echo \$"STEP${BUILD_STEP}_CMD"`</u>
803 <font color="red"><b>RH8.0:</b></font><u>echo $cmd</u>
807 <p>Subsituting the syntax of $(<command>) for `<command` however does work:</p>
809 <div class="code"><pre>
810 <font color="red"><b>RH8.0:</b></font><u>cmd=$(eval echo \$"STEP${BUILD_STEP}_CMD")</u>
811 <font color="red"><b>RH8.0:</b></font><u>echo $cmd</u>
815 <p>Note that the shell (bash) has been majorly updated for RH8.0:</p>
817 <div class="code"><pre>
818 <font color="blue"><b>RH6.1:</b></font><u>bash -version</u>
819 GNU bash, version 1.14.7(1)
824 <div class="code"><pre>
825 <font color="red"><b>RH8.0:</b></font><u>bash -version</u>
826 GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu)
827 Copyright (C) 2002 Free Software Foundation, Inc.
830 <p>Please note that this new syntax also works flawlessly on the older RH 6.1.</p>
832 <p class="entry-footer">
833 <span class="post-footers">Posted by at 2:33 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000329.html">Permalink</a>
843 <h2 class="date-header">April 1, 2005</h2>
845 <div class="entry" id="entry-328">
846 <h3 class="entry-header">Tagged HybridOS/Bluecat RH 8.0 building</h3>
847 <div class="entry-content">
848 <div class="entry-body">
850 <li>Tagged HybridOS with the proper release tag</li>
852 <li>Started attempting to build BlueCat on Europa (RH 8.0)</li>
855 <h3>Building BlueCat on Europa Notes</h3>
857 <p>Some setup issues. Had to get int to be able to rsh without a password to t3. Additionally cvs was not being found once the rsh to t3 was working. This was because the PATH was merely /usr/bin. Tried for a long time to get rsh to execute int's ~/.bashrc but it wouldn't. Turns out the problem was the int's shell on t3 was not set to bash in /etc/passwd.</p>
859 <p>Additionally make sure you set CVSROOT=:ext:int@t3:/cm/CVS! I think I'll put this in int@europa's ~/.bashrc!</p>
861 <p class="entry-footer">
862 <span class="post-footers">Posted by at 4:24 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000328.html">Permalink</a>