[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about compiling...
From: |
Bob Proulx |
Subject: |
Re: Question about compiling... |
Date: |
Wed, 11 Jun 2003 23:17:03 -0600 |
User-agent: |
Mutt/1.3.28i |
Hello Jeremy
Oops. Caught you in a faux pas. Discussion like this should be kept
on the mailing list. :-) Especially since I have been traveling and
away from the keyboard for the week.
Jeremy Buseman wrote:
> I'm running a source based GNU linux system with kernel 2.5.70 and
> gcc-3.3. I'm attempting to compile coreutils 5.0.
> Below are output files from configure and make. I also included my
> /usr/include/sys/sysctl.h header file. Hope this is plenty to find
> the problem:
Thank you very much for testing this combination and reporting
results. I am CC'ing the list to return what I think are the relevant
portions there.
> I apologise for the extreme size of the this email, but for some
> reason Yahoo doesn't seem to like making attachments today.
Ahem, yes, at 1 MB in size (!) that is rather large for the list. Let
me take a stab at reducing it.
> checking sys/sysctl.h usability... no
> checking sys/sysctl.h presence... yes
> configure: WARNING: sys/sysctl.h: present but cannot
> be compiled
> configure: WARNING: sys/sysctl.h: check for missing
> prerequisite headers?
> configure: WARNING: sys/sysctl.h: proceeding with the
> preprocessor's result
> configure: WARNING: ##
> ------------------------------------ ##
> configure: WARNING: ## Report this to
> address@hidden ##
> configure: WARNING: ##
> ------------------------------------ ##
> checking for sys/sysctl.h... yes
> configure:5186: checking sys/sysctl.h usability
> configure:5198: gcc -c -g -O2 conftest.c >&5
> In file included from /usr/include/linux/sysctl.h:29,
> from /usr/include/sys/sysctl.h:28,
> from conftest.c:84:
> /usr/include/linux/list.h:458:2: warning: #warning
> "don't include kernel headers in userspace"
> In file included from /usr/include/sys/sysctl.h:28,
> from conftest.c:84:
> /usr/include/linux/sysctl.h:39: error: parse error
> before '*' token
> /usr/include/linux/sysctl.h:41: error: parse error
> before '*' token
> /usr/include/linux/sysctl.h:42: error: parse error
> before '*' token
> /usr/include/linux/sysctl.h:43: error: parse error
> before '*' token
> /usr/include/linux/sysctl.h:46: error: parse error
> before '}' token
> configure:5201: $? = 1
> configure: failed program was:
> if gcc -DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I.
> -I. -I.. -I.. -I. -g -O2 -MT physmem.o -MD -MP -MF
> ".deps/physmem.Tpo" \
> -c -o physmem.o `test -f 'physmem.c' || echo
> './'`physmem.c; \
> then mv ".deps/physmem.Tpo" ".deps/physmem.Po"; \
> else rm -f ".deps/physmem.Tpo"; exit 1; \
> fi
> In file included from /usr/include/linux/sysctl.h:29,
> from /usr/include/sys/sysctl.h:28,
> from physmem.c:52:
> /usr/include/linux/list.h:458:2: warning: #warning
> "don't include kernel headers in userspace"
> In file included from /usr/include/sys/sysctl.h:28,
> from physmem.c:52:
> /usr/include/linux/sysctl.h:39: error: parse error
> before '*' token
> /usr/include/linux/sysctl.h:41: error: parse error
> before '*' token
> /usr/include/linux/sysctl.h:42: error: parse error
> before '*' token
> /usr/include/linux/sysctl.h:43: error: parse error
> before '*' token
> /usr/include/linux/sysctl.h:46: error: parse error
> before '}' token
> make[3]: *** [physmem.o] Error 1
> make[3]: Leaving directory
> `/downloads/gnu/coreutils-5.0/lib'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/downloads/gnu/coreutils-5.0/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/downloads/gnu/coreutils-5.0'
> make: *** [all] Error 2
>
> sysctl.h header file -
[...I cleaned up what looked like word wrapping on this file...]
/* Copyright (C) 1996, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#ifndef _SYS_SYSCTL_H
#define _SYS_SYSCTL_H 1
#include <features.h>
__BEGIN_DECLS
#define __need_size_t
#include <stddef.h>
#include <linux/sysctl.h>
/* Read or write system parameters. */
extern int sysctl (int __user, int *__name, int __nlen, void *__oldval,
size_t *__oldlenp, void *__newval, size_t __newlen) __THROW;
__END_DECLS
#endif /* _SYS_SYSCTL_H */
Bob