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: Porting Perl -> LOS178</title>
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" />
22 <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
26 <div id="container-inner" class="pkg">
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>
36 <div id="pagebody-inner" class="pkg">
38 <div id="alpha-inner" class="pkg">
40 <p class="content-nav">
41 <a href="http://defaria.com/blogs/Status/archives/000391.html">« 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 »</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">
52 <li>Started implementing a CVS Checkout/Update in CVSAdm</li>
54 <li>Jas asked me to look into porting Perl -> LOS178 3.0.0</li>
57 <div id="more" class="entry-more">
58 <h3>Porting Perl -> LOS178 3.0.0</h3>
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>
63 <li>Downloaded perl-5.8.7 from perl.com (http://www.perl.com/download.csp#stable)</li>
65 <li>Extracted to europa:/build/perl-5.8.7</li>
67 <li>Extracted from 20050719:
70 <li>3000-04.los178_rsc_src.tar.gz</li>
72 <li>3001-05.los178_src.tar.gz</li>
74 <li>3013-05.los178_dev.tar.gz</li>
76 <li>3015-04.los178_rsc_dev.tar.gz</li>
79 to /build/3.0.0/los178</li>
81 <li>Extracted ppc.cdklinux.tar.gz from bin-image (DEV_LOS178_3p0p0_ppc_20050719)</li>
83 <li>Sourced SETUP.bash</li>
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>
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>
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
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>