Gentoo Archives: gentoo-user

From: maxim wexler <blissfix@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] seg fault follows emerge ftpd
Date: Mon, 10 Apr 2006 16:15:09
Message-Id: 20060410161030.58623.qmail@web31713.mail.mud.yahoo.com
1 Hello everyone,
2
3 I did an emerge ftpd ([ebuild N]ftpd-0.17-r3) on a K6
4 PC and after it started compiling it stalled for a few
5 hours on the same line so I ctrl-c'd outta there and
6 ran emerge again. Now it spits out a couple pages of
7 code then segfaults. I tried catting it into another
8 file but that causes the PC to crash. But the word
9 PREEMPT appears on it's own line. Other interesting
10 lines include:
11
12 Kernel Bug at fs/reiserfs/file.c:620!
13 invalid operand:0000 [#1]
14 Badness in do_exit at kernel/exit.c:797
15 Segmentation Fault
16
17 Here's the log for the original install:
18
19 >>> Unpacking source...
20 >>> Unpacking linux-ftpd-0.17.tar.gz to
21 /var/tmp/portage/ftpd-0.17-r3/work
22 >>> Unpacking linux-ftpd-0.17-ssl.patch to
23 /var/tmp/portage/ftpd-0.17-r3/work
24 unpack linux-ftpd-0.17-ssl.patch: file format not
25 recognized. Ignoring.
26 * Applying linux-ftpd-0.17-ssl.patch ...
27  [ ok ]
28 * Applying ftpd-0.17-shadowfix.patch ...
29  [ ok ]
30 >>> Source unpacked.
31 Directories: /usr/sbin /usr/man
32 Looking for a C compiler... gcc
33 Checking if gcc accepts gcc warnings... yes
34 Checking if gcc accepts -O2... yes
35 Checking for yacc... bison -y
36 Checking for BSD signal semantics... yes
37 Checking for shadow... yes
38 Checking for crypt... -lcrypt
39 Checking for socklen_t... yes
40 Checking for snprintf declaration... ok
41 Checking for snprintf implementation... ok
42 Generating MCONFIG...
43 (cd support && make)
44 (cd ftpd && make)
45 make[1]: Entering directory
46 `/var/tmp/portage/ftpd-0.17-r3/work/linux-ftpd-0.17/support'
47 gcc -O2 -march=i586 -O2 -march=i586 -pipe -Wall -W
48 -Wpointer-arith -Wbad-function-cast -Wcast-qual
49 -Wstrict-prototypes -Wmissing-prototypes
50 -Wmissing-declarations -Wnested-externs -Winline
51 -DUSE_SHADOW -DHASSETPROCTITLE daemon.c -c
52 make[1]: Entering directory
53 `/var/tmp/portage/ftpd-0.17-r3/work/linux-ftpd-0.17/ftpd'
54 gcc -O2 -march=i586 -O2 -march=i586 -pipe -Wall -W
55 -Wpointer-arith -Wbad-function-cast -Wcast-qual
56 -Wstrict-prototypes -Wmissing-prototypes
57 -Wmissing-declarations -Wnested-externs -Winline
58 -I../support -DUSE_SSL -g -DUSE_SHADOW
59 -DHASSETPROCTITLE ftpd.c -c
60 In file included from ftpd.c:74:
61 /usr/include/sys/mman.h:20:1: unterminated #ifndef
62 In file included from /usr/include/netinet/in.h:23,
63 from ftpd.c:76:
64 /usr/include/stdint.h:49: error: parse error before
65 "typedef"
66 In file included from ftpd.c:76:
67 /usr/include/netinet/in.h:236: error: parse error
68 before "in_port_t"
69 /usr/include/netinet/in.h:239: error: parse error
70 before "sin6_scope_id"
71 /usr/include/netinet/in.h:247: error: field
72 `imr_multiaddr' has incomplete type
73 /usr/include/netinet/in.h:250: error: field
74 `imr_interface' has incomplete type
75 /usr/include/netinet/in.h:256: error: field
76 `imr_multiaddr' has incomplete type
77 /usr/include/netinet/in.h:259: error: field
78 `imr_interface' has incomplete type
79 /usr/include/netinet/in.h:262: error: field
80 `imr_sourceaddr' has incomplete type
81 /usr/include/netinet/in.h:269: error: field
82 `ipv6mr_multiaddr' has incomplete type
83 /usr/include/netinet/in.h:280: error: parse error
84 before "uint32_t"
85 /usr/include/netinet/in.h:284: error: parse error
86 before '}' token
87 /usr/include/netinet/in.h:289: error: parse error
88 before "uint32_t"
89 /usr/include/netinet/in.h:296: error: parse error
90 before '}' token
91 /usr/include/netinet/in.h:303: error: field
92 `imsf_multiaddr' has incomplete type
93 /usr/include/netinet/in.h:306: error: field
94 `imsf_interface' has incomplete type
95 /usr/include/netinet/in.h:309: error: parse error
96 before "uint32_t"
97 /usr/include/netinet/in.h:315: error: parse error
98 before '}' token
99 /usr/include/netinet/in.h:324: error: parse error
100 before "uint32_t"
101 /usr/include/netinet/in.h:330: error: parse error
102 before "gf_fmode"
103 /usr/include/netinet/in.h:333: error: parse error
104 before "gf_numsrc"
105 /usr/include/netinet/in.h:336: error: parse error
106 before '}' token
107 In file included from /usr/include/netinet/in.h:345,
108 from ftpd.c:76:
109 /usr/include/bits/in.h:84: error: field `ip_dst' has
110 incomplete type
111 /usr/include/bits/in.h:91: error: field
112 `imr_multiaddr' has incomplete type
113 /usr/include/bits/in.h:92: error: field `imr_address'
114 has incomplete type
115 /usr/include/bits/in.h:100: error: field
116 `ipi_spec_dst' has incomplete type
117 /usr/include/bits/in.h:101: error: field `ipi_addr'
118 has incomplete type
119 In file included from ftpd.c:76:
120 /usr/include/netinet/in.h:354: error: parse error
121 before "ntohl"
122 /usr/include/netinet/in.h:354: error: parse error
123 before "__netlong"
124 /usr/include/netinet/in.h:355: error: parse error
125 before "ntohs"
126 /usr/include/netinet/in.h:355: error: parse error
127 before "__netshort"
128 /usr/include/netinet/in.h:357: error: parse error
129 before "htonl"
130 /usr/include/netinet/in.h:357: error: parse error
131 before "__hostlong"
132 /usr/include/netinet/in.h:359: error: parse error
133 before "htons"
134 /usr/include/netinet/in.h:359: error: parse error
135 before "__hostshort"
136 In file included from ftpd.c:76:
137 /usr/include/netinet/in.h:458: error: field
138 `ipi6_addr' has incomplete type
139 /usr/include/netinet/in.h:469: error: parse error
140 before '*' token
141 /usr/include/netinet/in.h:471: error: parse error
142 before '*' token
143 /usr/include/netinet/in.h:474: error: parse error
144 before "uint8_t"
145 /usr/include/netinet/in.h:476: error: parse error
146 before "uint8_t"
147 /usr/include/netinet/in.h:483: error: parse error
148 before "uint32_t"
149 /usr/include/netinet/in.h:489: error: parse error
150 before "uint32_t"
151 /usr/include/netinet/in.h:496: error: parse error
152 before "uint32_t"
153 /usr/include/netinet/in.h:503: error: parse error
154 before "uint32_t"
155 gcc -O2 -march=i586 -O2 -march=i586 -pipe -Wall -W
156 -Wpointer-arith -Wbad-function-cast -Wcast-qual
157 -Wstrict-prototypes -Wmissing-prototypes
158 -Wmissing-declarations -Wnested-externs -Winline
159 -DUSE_SHADOW -DHASSETPROCTITLE setproctitle.c -c
160 In file included from ftpd.c:77:
161 /usr/include/netinet/ip.h:129: error: field `ip_src'
162 has incomplete type
163 /usr/include/netinet/ip.h:129: error: field `ip_dst'
164 has incomplete type
165 In file included from ftpd.c:82:
166 /usr/include/arpa/inet.h:35: error: parse error before
167 "inet_addr"
168 /usr/include/arpa/inet.h:38: error: parse error before
169 "inet_lnaof"
170 /usr/include/arpa/inet.h:42: error: parse error before
171 "__net"
172 /usr/include/arpa/inet.h:46: error: parse error before
173 "inet_netof"
174 /usr/include/arpa/inet.h:50: error: parse error before
175 "inet_network"
176 /usr/include/arpa/inet.h:78: error: parse error before
177 "__net"
178 In file included from /usr/include/netdb.h:43,
179 from ftpd.c:91:
180 /usr/include/bits/netdb.h:32: error: parse error
181 before "uint32_t"
182 In file included from ftpd.c:91:
183 /usr/include/netdb.h:212: error: parse error before
184 "__net"
185 /usr/include/netdb.h:236: error: parse error before
186 "__net"
187 In file included from ftpd.c:101:
188 /usr/include/unistd.h:942: error: parse error before
189 "__delta"
190 gcc -O2 -march=i586 -O2 -march=i586 -pipe -Wall -W
191 -Wpointer-arith -Wbad-function-cast -Wcast-qual
192 -Wstrict-prototypes -Wmissing-prototypes
193 -Wmissing-declarations -Wnested-externs -Winline
194 -DUSE_SHADOW -DHASSETPROCTITLE isexpired.c -c
195 gcc -O2 -march=i586 -O2 -march=i586 -pipe -Wall -W
196 -Wpointer-arith -Wbad-function-cast -Wcast-qual
197 -Wstrict-prototypes -Wmissing-prototypes
198 -Wmissing-declarations -Wnested-externs -Winline
199 -DUSE_SHADOW -DHASSETPROCTITLE vis.c -c
200 In file included from ftpd.c:143:
201 sslapp.c: In function `do_ssleay_init':
202 sslapp.c:114: warning: assignment from incompatible
203 pointer type
204 In file included from ftpd.c:165:
205 ssl_port.h:22:1: warning: "NOPROTO" redefined
206 In file included from sslapp.c:17,
207 from ftpd.c:143:
208 sslapp.h:28:1: warning: this is the location of the
209 previous definition
210 ftpd.c: In function `main':
211 ftpd.c:555: error: invalid use of undefined type
212 `struct sockaddr_in'
213 ftpd.c:556: error: invalid use of undefined type
214 `struct sockaddr_in'
215 ftpd.c:556: error: `in_addr_t' undeclared (first use
216 in this function)
217 ftpd.c:556: error: (Each undeclared identifier is
218 reported only once
219 ftpd.c:556: error: for each function it appears in.)
220 ftpd.c:556: error: parse error before numeric constant
221 ftpd.c:557: error: invalid use of undefined type
222 `struct sockaddr_in'
223 ftpd.c:559: error: invalid application of `sizeof' to
224 incomplete type `sockaddr_in'
225 ftpd.c:572: error: invalid application of `sizeof' to
226 incomplete type `sockaddr_in'
227 ftpd.c:591: error: invalid application of `sizeof' to
228 incomplete type `sockaddr_in'
229 ftpd.c:608: error: invalid application of `sizeof' to
230 incomplete type `sockaddr_in'
231 ftpd.c:615: error: `IPPROTO_IP' undeclared (first use
232 in this function)
233 ftpd.c:618: error: invalid use of undefined type
234 `struct sockaddr_in'
235 ftpd.c:618: error: invalid use of undefined type
236 `struct sockaddr_in'
237 ftpd.c:671: error: invalid use of undefined type
238 `struct sockaddr_in'
239 ftpd.c:672: error: invalid application of `sizeof' to
240 incomplete type `in_addr'
241 ftpd.c:677: error: invalid use of undefined type
242 `struct sockaddr_in'
243 ftpd.c:677: error: type of formal parameter 1 is
244 incomplete
245 ftpd.c: In function `getdatasock':
246 ftpd.c:1315: error: invalid use of undefined type
247 `struct sockaddr_in'
248 ftpd.c:1316: error: invalid use of undefined type
249 `struct sockaddr_in'
250 ftpd.c:1316: error: invalid use of undefined type
251 `struct sockaddr_in'
252 ftpd.c:1319: error: invalid application of `sizeof' to
253 incomplete type `sockaddr_in'
254 ftpd.c:1331: error: `IPPROTO_IP' undeclared (first use
255 in this function)
256 ftpd.c: In function `dataconn':
257 ftpd.c:1379: error: storage size of 'from' isn't known
258 ftpd.c:1400: error: invalid use of undefined type
259 `struct sockaddr_in'
260 ftpd.c:1411: error: `IPPROTO_IP' undeclared (first use
261 in this function)
262 ftpd.c:1379: warning: unused variable `from'
263 ftpd.c:1489: error: `data_dest' has an incomplete type
264 ftpd.c:1494: error: invalid use of undefined type
265 `struct sockaddr_in'
266 ftpd.c:1494: error: type of formal parameter 1 is
267 incomplete
268 ftpd.c:1495: error: invalid use of undefined type
269 `struct sockaddr_in'
270 ftpd.c:1504: error: invalid use of undefined type
271 `struct sockaddr_in'
272 ftpd.c:1505: error: invalid use of undefined type
273 `struct sockaddr_in'
274 ftpd.c:1511: error: invalid use of undefined type
275 `struct sockaddr_in'
276 ftpd.c:1511: error: invalid use of undefined type
277 `struct sockaddr_in'
278 ftpd.c:1518: error: invalid application of `sizeof' to
279 incomplete type `sockaddr_in'
280 ftpd.c: In function `statcmd':
281 ftpd.c:1872: error: invalid use of undefined type
282 `struct sockaddr_in'
283 ftpd.c:1872: error: type of formal parameter 1 is
284 incomplete
285 ftpd.c:1904: error: dereferencing pointer to
286 incomplete type
287 ftpd.c:1905: error: dereferencing pointer to
288 incomplete type
289 ftpd.c: In function `dolog':
290 ftpd.c:2157: error: dereferencing pointer to
291 incomplete type
292 ftpd.c:2158: error: invalid application of `sizeof' to
293 incomplete type `in_addr'
294 ftpd.c:2163: error: dereferencing pointer to
295 incomplete type
296 ftpd.c:2163: error: type of formal parameter 1 is
297 incomplete
298 ftpd.c: In function `passive':
299 ftpd.c:2272: error: `pasv_addr' has an incomplete type
300 ftpd.c:2273: error: invalid use of undefined type
301 `struct sockaddr_in'
302 ftpd.c:2275: error: invalid application of `sizeof' to
303 incomplete type `sockaddr_in'
304 ftpd.c:2286: error: `pasv_addr' has an incomplete type
305 ftpd.c:2287: error: invalid use of undefined type
306 `struct sockaddr_in'
307 ftpd.c:2289: error: invalid application of `sizeof' to
308 incomplete type `sockaddr_in'
309 ftpd.c:2293: error: invalid application of `sizeof' to
310 incomplete type `sockaddr_in'
311 ftpd.c:2298: error: invalid use of undefined type
312 `struct sockaddr_in'
313 ftpd.c:2299: error: invalid use of undefined type
314 `struct sockaddr_in'
315 ftpd.c: At top level:
316 ftpd.c:2615: warning: no previous prototype for
317 'do_ssl_start'
318 /usr/include/netinet/in.h:238: error: storage size of
319 `sin6_addr' isn't known
320 /usr/include/netinet/in.h:314: error: storage size of
321 `imsf_slist' isn't known
322 ftpd.c:189: error: storage size of `server_addr' isn't
323 known
324 ftpd.c:190: error: storage size of `ctrl_addr' isn't
325 known
326 ftpd.c:191: error: storage size of `data_source' isn't
327 known
328 ftpd.c:192: error: storage size of `data_dest' isn't
329 known
330 ftpd.c:193: error: storage size of `his_addr' isn't
331 known
332 ftpd.c:194: error: storage size of `pasv_addr' isn't
333 known
334 make[1]: *** [ftpd.o] Error 1
335 make[1]: Leaving directory
336 `/var/tmp/portage/ftpd-0.17-r3/work/linux-ftpd-0.17/ftpd'
337 make: *** [ftpd.build] Error 2
338 make: *** Waiting for unfinished jobs....
339
340
341
342 __________________________________________________
343 Do You Yahoo!?
344 Tired of spam? Yahoo! Mail has the best spam protection around
345 http://mail.yahoo.com
346 --
347 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] seg fault follows emerge ftpd Richard Fish <bigfish@××××××××××.org>