Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000269.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: TOT Build Failure</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/000268.html" title="files4ecr.pl/Building TOT as per instructions" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000270.html" title="Building Native Toolchain for PPC" />
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/000268.html">&laquo; files4ecr.pl/Building TOT as per instructions</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000270.html">Building Native Toolchain for PPC &raquo;</a>
44                      </p>
45
46                      <a id="a000269"></a>
47                      <div class="entry" id="entry-269">
48                         <h3 class="entry-header">TOT Build Failure</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52
53 <li>Unable to build TOT due to error in definition of atoi</li>
54
55 </ul>
56                            </div>
57                            <div id="more" class="entry-more">
58                               <p>Is there a known problem with TOT build? Cause I'm getting an error saying essentially that "atoi is undefined".</p>
59
60 <div class="code">
61 <pre>
62 gcc -g -O2 -o named aclconf.o client.o config.o control.o controlconf.o interfac
63 emgr.o listenlist.o log.o logconf.o main.o notify.o query.o server.o sortlist.o
64 tkeyconf.o tsigconf.o update.o xfrout.o zoneconf.o lwaddr.o lwresd.o lwdclient.o
65 lwderror.o lwdgabn.o lwdgnba.o lwdgrbn.o lwdnoop.o lwsearch.o  unix/os.o ../../
66 lib/lwres/liblwres.a ../../lib/dns/libdns.a   ../../lib/isccfg/libisccfg.a ../..
67 /lib/isccc/libisccc.a ../../lib/isc/libisc.a  -lnsl
68 /export/build1/LYNXOS_500/build/lynxos/120604-C/x86/lib/libnsl.a(getgrent.as.o):
69 In function `getgrent':
70 getgrent.as.o(.text+0xb4): undefined reference to `atoi'
71 /export/build1/LYNXOS_500/build/lynxos/120604-C/x86/lib/libnsl.a(getgrent.as.o):
72 In function `fgetgrent':
73 getgrent.as.o(.text+0x2b8): undefined reference to `atoi'
74 /export/build1/LYNXOS_500/build/lynxos/120604-C/x86/lib/libnsl.a(getpwent.as.o):
75 In function `getpwent':
76 getpwent.as.o(.text+0xb4): undefined reference to `atoi'
77 getpwent.as.o(.text+0xce): undefined reference to `atoi'
78 /export/build1/LYNXOS_500/build/lynxos/120604-C/x86/lib/libnsl.a(getpwent.as.o):
79 In function `getpw':
80 getpwent.as.o(.text+0x29e): undefined reference to `atoi'
81 /export/build1/LYNXOS_500/build/lynxos/120604-C/x86/lib/libnsl.a(getpwent.as.o)(
82 .text+0x34c): more undefined references to `atoi' follow
83 collect2: ld returned 1 exit status
84 make[4]: *** [named] Error 1
85 <pre>
86 </div>
87
88 <p>It seems that the problem is in strtol.c version 10.2, which says that the definition was moved to stdlib.h, and stdlib.h appears to have it, yet the build fails anyway...</p>
89
90 <p>Looking at the compilation line for strtol.c I see it produces strtol.as.o, which in a previous successful build yeilds:</p>
91
92 <div class="code">
93 <pre>
94 $ nm strtol.as.o
95         U __ctype
96         U __divdi3
97         U __moddi3
98         U _errno
99 00000208 T atoi
100 000001f4 T atol
101 00000000 T strtol
102 </pre>
103 </div>
104
105 <p>But in this build yeilds:</p>
106
107 <div class="code">
108 <pre>
109 $ nm strtol.as.o
110         U __ctype
111         U __divdi3
112         U __moddi3
113         U _errno
114 00000208 T atoi
115 000001f4 T atol
116 00000000 T strtol
117 </pre>
118 </div>
119
120 <p>So how do we fix this error?</p>
121                            </div>
122                         </div>
123                         <p class="entry-footer">
124                            <span class="post-footers">Posted by  on January  4, 2005 11:03 AM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000269.html">Permalink</a>
125                         </p>
126                      </div>
127
128                      
129
130                      
131                   </div>
132                </div>
133             </div>
134          </div>
135       </div>
136    </div>
137 </body>
138 </html>