Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000392.html
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">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
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" />
11
12    <title>Status for Andrew DeFaria: Porting Perl -> LOS178</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/000391.html" title="Ants and Docs" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000393.html" title="CVS Adm Web App Prototype" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
29             <div id="banner-inner" class="pkg">
30                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31                <h2 id="banner-description">Searchable status reports and work log</h2>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000391.html">&laquo; Ants and Docs</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000393.html">CVS Adm Web App Prototype &raquo;</a>
44                      </p>
45
46                      <a id="a000392"></a>
47                      <div class="entry" id="entry-392">
48                         <h3 class="entry-header">Porting Perl -> LOS178</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Started implementing a CVS Checkout/Update in CVSAdm</li>
53
54   <li>Jas asked me to look into porting Perl -> LOS178 3.0.0</li>
55 </ul>
56                            </div>
57                            <div id="more" class="entry-more">
58                               <h3>Porting Perl -> LOS178 3.0.0</h3>
59
60 <p>I was asked to attempt to port Perl (latest version - 5.8.7) to LOS178 (latest version - 3.0.0 20050719). Here's what I attempted:</p>
61
62 <ul>
63   <li>Downloaded perl-5.8.7 from perl.com (http://www.perl.com/download.csp#stable)</li>
64
65   <li>Extracted to europa:/build/perl-5.8.7</li>
66
67   <li>Extracted from 20050719:
68
69   <ul>
70     <li>3000-04.los178_rsc_src.tar.gz</li>
71
72     <li>3001-05.los178_src.tar.gz</li>
73
74     <li>3013-05.los178_dev.tar.gz</li>
75
76     <li>3015-04.los178_rsc_dev.tar.gz</li>
77   </ul>
78
79   to /build/3.0.0/los178</li>
80
81   <li>Extracted ppc.cdklinux.tar.gz from bin-image (DEV_LOS178_3p0p0_ppc_20050719)</li>
82
83   <li>Sourced SETUP.bash</li>
84 </ul>
85
86 <p>Next I went to /build/perl-5.8.7 and ran Configure. I was supprised to see that it had a selection for lynxos! Unfortunately this is not the way to go.</p>
87
88 <p>Spoke with Ed Mooring, who happens to be a Perl porter and who had previously ported Perl 5.6 to LynxOS 4.0. He suggested I attempt to run Configure natively on a LynxOS 4.0 machine to get config.sh to be generated. I could then use that in conjunction with reading about the <i>Perl Patch Pumpkin</i> (Apparently a guide about patching and porting) in an attempt to figure out what needs to be done to that config.sh to get a cross build to LOS178 3.0.0. (Note that I used a LynxOS 5.0 machine not a LynxOS 4.0 machine)</p>
89
90 <p>After going through the long Configure process and hopefully answering questions properly Ed said I should attempt a native build anyway. Build failed with:</p>
91 <div class="code"><pre>
92     `sh  cflags "optimize='-O'" mg.o`  mg.c
93               CCCMD =  gcc -DPERL_CORE -c -DEXTRA_F_IN_SEMUN_BUF -D__NO_INCLUDE_WARN__ -fno-strict-aliasing -pipe -I/usr/local/include -O  -Wall
94     mg.c:74: conflicting types for `setegid'
95     /usr/include/unistd.h:410: previous declaration of `setegid'
96     /usr/include/netinet/in.h:512: warning: `ntohs' declared `static' but never defined
97     /usr/include/netinet/in.h:514: warning: `ntohl' declared `static' but never defined
98     make: *** [mg.o] Error 1
99 </pre></div>
100                            </div>
101                         </div>
102                         <p class="entry-footer">
103                            <span class="post-footers">Posted by  on July 22, 2005  5:03 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000392.html">Permalink</a>
104                         </p>
105                      </div>
106
107                      
108
109                      
110                   </div>
111                </div>
112             </div>
113          </div>
114       </div>
115    </div>
116 </body>
117 </html>