public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* scripts/unifdef.c:209: error: conflicting types for 'getline'
@ 2009-03-03 20:36 Justin Mattock
  2009-03-03 20:49 ` Randy Dunlap
  0 siblings, 1 reply; 8+ messages in thread
From: Justin Mattock @ 2009-03-03 20:36 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hello;
I am unable to compile the kernel
(just did a git pull a few minuets ago);
here is what I see:

WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
   AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  CHK     include/linux/version.h
  HOSTCC  scripts/unifdef
scripts/unifdef.c:209: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
make[2]: *** [scripts/unifdef] Error 1
make[1]: *** [__headers] Error 2
make: *** [vmlinux] Error 2

The only change to .config was:

SYSFS_DEPRECATED_V2 [=y]
to
SYSFS_DEPRECATED_V2 [=n]
to see if I can make udev from:

udev: starting version 137
[    7.557317] udev: deprecated sysfs layout; update the kernel or disable
CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly

giving me this message.

also I did use a CFLAGS when compiling,
but never received this when doing so for:
2.6.29-rc5-00289-g460c133

any info would be appreciated.

regards;

-- 
Justin P. Mattock

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: scripts/unifdef.c:209: error: conflicting types for 'getline'
  2009-03-03 20:36 scripts/unifdef.c:209: error: conflicting types for 'getline' Justin Mattock
@ 2009-03-03 20:49 ` Randy Dunlap
  2009-03-03 21:00   ` Justin Mattock
  0 siblings, 1 reply; 8+ messages in thread
From: Randy Dunlap @ 2009-03-03 20:49 UTC (permalink / raw)
  To: Justin Mattock; +Cc: Linux Kernel Mailing List

Justin Mattock wrote:
> Hello;
> I am unable to compile the kernel
> (just did a git pull a few minuets ago);
> here is what I see:
> 
> WARNING: modpost: Found 1 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>   GEN     .version
>   CHK     include/linux/compile.h
>   UPD     include/linux/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
>   KSYM    .tmp_kallsyms1.S
>    AS      .tmp_kallsyms1.o
>   LD      .tmp_vmlinux2
>   KSYM    .tmp_kallsyms2.S
>   AS      .tmp_kallsyms2.o
>   CHK     include/linux/version.h
>   HOSTCC  scripts/unifdef
> scripts/unifdef.c:209: error: conflicting types for 'getline'
> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
> make[2]: *** [scripts/unifdef] Error 1
> make[1]: *** [__headers] Error 2
> make: *** [vmlinux] Error 2
> 
> The only change to .config was:
> 
> SYSFS_DEPRECATED_V2 [=y]
> to
> SYSFS_DEPRECATED_V2 [=n]
> to see if I can make udev from:
> 
> udev: starting version 137
> [    7.557317] udev: deprecated sysfs layout; update the kernel or disable
> CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly
> 
> giving me this message.
> 
> also I did use a CFLAGS when compiling,
> but never received this when doing so for:
> 2.6.29-rc5-00289-g460c133
> 
> any info would be appreciated.

What CFLAGS?  I can't reproduce the problem.


-- 
~Randy

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: scripts/unifdef.c:209: error: conflicting types for 'getline'
  2009-03-03 20:49 ` Randy Dunlap
@ 2009-03-03 21:00   ` Justin Mattock
  2009-03-03 21:07     ` Randy Dunlap
  0 siblings, 1 reply; 8+ messages in thread
From: Justin Mattock @ 2009-03-03 21:00 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Linux Kernel Mailing List

On Tue, Mar 3, 2009 at 12:49 PM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
> Justin Mattock wrote:
>> Hello;
>> I am unable to compile the kernel
>> (just did a git pull a few minuets ago);
>> here is what I see:
>>
>> WARNING: modpost: Found 1 section mismatch(es).
>> To see full details build your kernel with:
>> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>>   GEN     .version
>>   CHK     include/linux/compile.h
>>   UPD     include/linux/compile.h
>>   CC      init/version.o
>>   LD      init/built-in.o
>>   LD      .tmp_vmlinux1
>>   KSYM    .tmp_kallsyms1.S
>>    AS      .tmp_kallsyms1.o
>>   LD      .tmp_vmlinux2
>>   KSYM    .tmp_kallsyms2.S
>>   AS      .tmp_kallsyms2.o
>>   CHK     include/linux/version.h
>>   HOSTCC  scripts/unifdef
>> scripts/unifdef.c:209: error: conflicting types for 'getline'
>> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
>> make[2]: *** [scripts/unifdef] Error 1
>> make[1]: *** [__headers] Error 2
>> make: *** [vmlinux] Error 2
>>
>> The only change to .config was:
>>
>> SYSFS_DEPRECATED_V2 [=y]
>> to
>> SYSFS_DEPRECATED_V2 [=n]
>> to see if I can make udev from:
>>
>> udev: starting version 137
>> [    7.557317] udev: deprecated sysfs layout; update the kernel or disable
>> CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly
>>
>> giving me this message.
>>
>> also I did use a CFLAGS when compiling,
>> but never received this when doing so for:
>> 2.6.29-rc5-00289-g460c133
>>
>> any info would be appreciated.
>
> What CFLAGS?  I can't reproduce the problem.
>
>
> --
> ~Randy
>

make CC=/usr/bin/i686-pc-linux-gnu-gcc-4.4.0 CFLAGS="-march=core2
-mtune=core2 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}" MAKEOPTS="-j3"

I also just loaded the latest libc
(not sure if this has anything to do);

-- 
Justin P. Mattock

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: scripts/unifdef.c:209: error: conflicting types for 'getline'
  2009-03-03 21:00   ` Justin Mattock
@ 2009-03-03 21:07     ` Randy Dunlap
  2009-03-03 21:17       ` Justin Mattock
  2009-03-03 21:20       ` Johannes Weiner
  0 siblings, 2 replies; 8+ messages in thread
From: Randy Dunlap @ 2009-03-03 21:07 UTC (permalink / raw)
  To: Justin Mattock; +Cc: Randy Dunlap, Linux Kernel Mailing List

Justin Mattock wrote:
> On Tue, Mar 3, 2009 at 12:49 PM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
>> Justin Mattock wrote:
>>> Hello;
>>> I am unable to compile the kernel
>>> (just did a git pull a few minuets ago);
>>> here is what I see:
>>>
>>> WARNING: modpost: Found 1 section mismatch(es).
>>> To see full details build your kernel with:
>>> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>>>   GEN     .version
>>>   CHK     include/linux/compile.h
>>>   UPD     include/linux/compile.h
>>>   CC      init/version.o
>>>   LD      init/built-in.o
>>>   LD      .tmp_vmlinux1
>>>   KSYM    .tmp_kallsyms1.S
>>>    AS      .tmp_kallsyms1.o
>>>   LD      .tmp_vmlinux2
>>>   KSYM    .tmp_kallsyms2.S
>>>   AS      .tmp_kallsyms2.o
>>>   CHK     include/linux/version.h
>>>   HOSTCC  scripts/unifdef
>>> scripts/unifdef.c:209: error: conflicting types for 'getline'
>>> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
>>> make[2]: *** [scripts/unifdef] Error 1
>>> make[1]: *** [__headers] Error 2
>>> make: *** [vmlinux] Error 2
>>>
>>> The only change to .config was:
>>>
>>> SYSFS_DEPRECATED_V2 [=y]
>>> to
>>> SYSFS_DEPRECATED_V2 [=n]
>>> to see if I can make udev from:
>>>
>>> udev: starting version 137
>>> [    7.557317] udev: deprecated sysfs layout; update the kernel or disable
>>> CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly
>>>
>>> giving me this message.
>>>
>>> also I did use a CFLAGS when compiling,
>>> but never received this when doing so for:
>>> 2.6.29-rc5-00289-g460c133
>>>
>>> any info would be appreciated.
>> What CFLAGS?  I can't reproduce the problem.
>>
>>
>> --
>> ~Randy
>>
> 
> make CC=/usr/bin/i686-pc-linux-gnu-gcc-4.4.0 CFLAGS="-march=core2
> -mtune=core2 -O2 -pipe -fomit-frame-pointer"
> CXXFLAGS="${CFLAGS}" MAKEOPTS="-j3"

I still can't reproduce the problem by using those CFLAGS/CXXFLAGS.

> I also just loaded the latest libc
> (not sure if this has anything to do);

That probably updated /usr/include/stdio.h (?; I'm just guessing here).


-- 
~Randy

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: scripts/unifdef.c:209: error: conflicting types for 'getline'
  2009-03-03 21:07     ` Randy Dunlap
@ 2009-03-03 21:17       ` Justin Mattock
  2009-03-03 21:20       ` Johannes Weiner
  1 sibling, 0 replies; 8+ messages in thread
From: Justin Mattock @ 2009-03-03 21:17 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Linux Kernel Mailing List

On Tue, Mar 3, 2009 at 1:07 PM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
> Justin Mattock wrote:
>> On Tue, Mar 3, 2009 at 12:49 PM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
>>> Justin Mattock wrote:
>>>> Hello;
>>>> I am unable to compile the kernel
>>>> (just did a git pull a few minuets ago);
>>>> here is what I see:
>>>>
>>>> WARNING: modpost: Found 1 section mismatch(es).
>>>> To see full details build your kernel with:
>>>> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>>>>   GEN     .version
>>>>   CHK     include/linux/compile.h
>>>>   UPD     include/linux/compile.h
>>>>   CC      init/version.o
>>>>   LD      init/built-in.o
>>>>   LD      .tmp_vmlinux1
>>>>   KSYM    .tmp_kallsyms1.S
>>>>    AS      .tmp_kallsyms1.o
>>>>   LD      .tmp_vmlinux2
>>>>   KSYM    .tmp_kallsyms2.S
>>>>   AS      .tmp_kallsyms2.o
>>>>   CHK     include/linux/version.h
>>>>   HOSTCC  scripts/unifdef
>>>> scripts/unifdef.c:209: error: conflicting types for 'getline'
>>>> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
>>>> make[2]: *** [scripts/unifdef] Error 1
>>>> make[1]: *** [__headers] Error 2
>>>> make: *** [vmlinux] Error 2
>>>>
>>>> The only change to .config was:
>>>>
>>>> SYSFS_DEPRECATED_V2 [=y]
>>>> to
>>>> SYSFS_DEPRECATED_V2 [=n]
>>>> to see if I can make udev from:
>>>>
>>>> udev: starting version 137
>>>> [    7.557317] udev: deprecated sysfs layout; update the kernel or disable
>>>> CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly
>>>>
>>>> giving me this message.
>>>>
>>>> also I did use a CFLAGS when compiling,
>>>> but never received this when doing so for:
>>>> 2.6.29-rc5-00289-g460c133
>>>>
>>>> any info would be appreciated.
>>> What CFLAGS?  I can't reproduce the problem.
>>>
>>>
>>> --
>>> ~Randy
>>>
>>
>> make CC=/usr/bin/i686-pc-linux-gnu-gcc-4.4.0 CFLAGS="-march=core2
>> -mtune=core2 -O2 -pipe -fomit-frame-pointer"
>> CXXFLAGS="${CFLAGS}" MAKEOPTS="-j3"
>
> I still can't reproduce the problem by using those CFLAGS/CXXFLAGS.
>
>> I also just loaded the latest libc
>> (not sure if this has anything to do);
>
> That probably updated /usr/include/stdio.h (?; I'm just guessing here).
>
>
> --
> ~Randy
>

could be.
also just to mention(not sure if it is relevant);
but when I compiled gcc(tired I was) I forgot to
set -arch flag(if this is correct option) so that gcc would
read:
/usr/bin/core2-pc-linux-gnu-gcc-4.4.0
instead of:
/usr/bin/i686-pc-linux-gnu-gcc-4.4.0

or however it would of been named when done.
I'll have to go back and redo that later on.

-- 
Justin P. Mattock

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: scripts/unifdef.c:209: error: conflicting types for 'getline'
  2009-03-03 21:07     ` Randy Dunlap
  2009-03-03 21:17       ` Justin Mattock
@ 2009-03-03 21:20       ` Johannes Weiner
  2009-03-03 22:36         ` Justin Mattock
  1 sibling, 1 reply; 8+ messages in thread
From: Johannes Weiner @ 2009-03-03 21:20 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Justin Mattock, Linux Kernel Mailing List

On Tue, Mar 03, 2009 at 01:07:29PM -0800, Randy Dunlap wrote:
> Justin Mattock wrote:
> > On Tue, Mar 3, 2009 at 12:49 PM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
> >> Justin Mattock wrote:
> >>> Hello;
> >>> I am unable to compile the kernel
> >>> (just did a git pull a few minuets ago);
> >>> here is what I see:
> >>>
> >>> WARNING: modpost: Found 1 section mismatch(es).
> >>> To see full details build your kernel with:
> >>> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
> >>>   GEN     .version
> >>>   CHK     include/linux/compile.h
> >>>   UPD     include/linux/compile.h
> >>>   CC      init/version.o
> >>>   LD      init/built-in.o
> >>>   LD      .tmp_vmlinux1
> >>>   KSYM    .tmp_kallsyms1.S
> >>>    AS      .tmp_kallsyms1.o
> >>>   LD      .tmp_vmlinux2
> >>>   KSYM    .tmp_kallsyms2.S
> >>>   AS      .tmp_kallsyms2.o
> >>>   CHK     include/linux/version.h
> >>>   HOSTCC  scripts/unifdef
> >>> scripts/unifdef.c:209: error: conflicting types for 'getline'
> >>> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
> >>> make[2]: *** [scripts/unifdef] Error 1
> >>> make[1]: *** [__headers] Error 2
> >>> make: *** [vmlinux] Error 2
> >>>
> >>> The only change to .config was:
> >>>
> >>> SYSFS_DEPRECATED_V2 [=y]
> >>> to
> >>> SYSFS_DEPRECATED_V2 [=n]
> >>> to see if I can make udev from:
> >>>
> >>> udev: starting version 137
> >>> [    7.557317] udev: deprecated sysfs layout; update the kernel or disable
> >>> CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly
> >>>
> >>> giving me this message.
> >>>
> >>> also I did use a CFLAGS when compiling,
> >>> but never received this when doing so for:
> >>> 2.6.29-rc5-00289-g460c133
> >>>
> >>> any info would be appreciated.
> >> What CFLAGS?  I can't reproduce the problem.
> >>
> >>
> >> --
> >> ~Randy
> >>
> > 
> > make CC=/usr/bin/i686-pc-linux-gnu-gcc-4.4.0 CFLAGS="-march=core2
> > -mtune=core2 -O2 -pipe -fomit-frame-pointer"
> > CXXFLAGS="${CFLAGS}" MAKEOPTS="-j3"
> 
> I still can't reproduce the problem by using those CFLAGS/CXXFLAGS.

chigurh:~/linux/linux-2.6/scripts$ make unifdef CFLAGS="-D_GNU_SOURCE"
cc -D_GNU_SOURCE    unifdef.c   -o unifdef
unifdef.c:209: error: conflicting types for `getline'
/usr/include/stdio.h:649: error: previous declaration of `getline' was here
make: *** [unifdef] Error 1
chigurh:~/linux/linux-2.6/scripts$ make unifdef
cc     unifdef.c   -o unifdef
chigurh:~/linux/linux-2.6/scripts$

> > I also just loaded the latest libc
> > (not sure if this has anything to do);
> 
> That probably updated /usr/include/stdio.h (?; I'm just guessing here).

Perhaps getline() is now defined even without _GNU_SOURCE?  But I
doubt that...

	Hannes

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: scripts/unifdef.c:209: error: conflicting types for 'getline'
  2009-03-03 21:20       ` Johannes Weiner
@ 2009-03-03 22:36         ` Justin Mattock
  2009-03-04  0:40           ` Justin Mattock
  0 siblings, 1 reply; 8+ messages in thread
From: Justin Mattock @ 2009-03-03 22:36 UTC (permalink / raw)
  To: Johannes Weiner; +Cc: Randy Dunlap, Linux Kernel Mailing List

On Tue, Mar 3, 2009 at 1:20 PM, Johannes Weiner <hannes@cmpxchg.org> wrote:
> On Tue, Mar 03, 2009 at 01:07:29PM -0800, Randy Dunlap wrote:
>> Justin Mattock wrote:
>> > On Tue, Mar 3, 2009 at 12:49 PM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
>> >> Justin Mattock wrote:
>> >>> Hello;
>> >>> I am unable to compile the kernel
>> >>> (just did a git pull a few minuets ago);
>> >>> here is what I see:
>> >>>
>> >>> WARNING: modpost: Found 1 section mismatch(es).
>> >>> To see full details build your kernel with:
>> >>> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>> >>>   GEN     .version
>> >>>   CHK     include/linux/compile.h
>> >>>   UPD     include/linux/compile.h
>> >>>   CC      init/version.o
>> >>>   LD      init/built-in.o
>> >>>   LD      .tmp_vmlinux1
>> >>>   KSYM    .tmp_kallsyms1.S
>> >>>    AS      .tmp_kallsyms1.o
>> >>>   LD      .tmp_vmlinux2
>> >>>   KSYM    .tmp_kallsyms2.S
>> >>>   AS      .tmp_kallsyms2.o
>> >>>   CHK     include/linux/version.h
>> >>>   HOSTCC  scripts/unifdef
>> >>> scripts/unifdef.c:209: error: conflicting types for 'getline'
>> >>> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
>> >>> make[2]: *** [scripts/unifdef] Error 1
>> >>> make[1]: *** [__headers] Error 2
>> >>> make: *** [vmlinux] Error 2
>> >>>
>> >>> The only change to .config was:
>> >>>
>> >>> SYSFS_DEPRECATED_V2 [=y]
>> >>> to
>> >>> SYSFS_DEPRECATED_V2 [=n]
>> >>> to see if I can make udev from:
>> >>>
>> >>> udev: starting version 137
>> >>> [    7.557317] udev: deprecated sysfs layout; update the kernel or disable
>> >>> CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly
>> >>>
>> >>> giving me this message.
>> >>>
>> >>> also I did use a CFLAGS when compiling,
>> >>> but never received this when doing so for:
>> >>> 2.6.29-rc5-00289-g460c133
>> >>>
>> >>> any info would be appreciated.
>> >> What CFLAGS?  I can't reproduce the problem.
>> >>
>> >>
>> >> --
>> >> ~Randy
>> >>
>> >
>> > make CC=/usr/bin/i686-pc-linux-gnu-gcc-4.4.0 CFLAGS="-march=core2
>> > -mtune=core2 -O2 -pipe -fomit-frame-pointer"
>> > CXXFLAGS="${CFLAGS}" MAKEOPTS="-j3"
>>
>> I still can't reproduce the problem by using those CFLAGS/CXXFLAGS.
>
> chigurh:~/linux/linux-2.6/scripts$ make unifdef CFLAGS="-D_GNU_SOURCE"
> cc -D_GNU_SOURCE    unifdef.c   -o unifdef
> unifdef.c:209: error: conflicting types for `getline'
> /usr/include/stdio.h:649: error: previous declaration of `getline' was here
> make: *** [unifdef] Error 1
> chigurh:~/linux/linux-2.6/scripts$ make unifdef
> cc     unifdef.c   -o unifdef
> chigurh:~/linux/linux-2.6/scripts$
>
>> > I also just loaded the latest libc
>> > (not sure if this has anything to do);
>>
>> That probably updated /usr/include/stdio.h (?; I'm just guessing here).
>
> Perhaps getline() is now defined even without _GNU_SOURCE?  But I
> doubt that...
>
>        Hannes
>

Well, maybe I need to just do a
make clean
before compiling.


-- 
Justin P. Mattock

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: scripts/unifdef.c:209: error: conflicting types for 'getline'
  2009-03-03 22:36         ` Justin Mattock
@ 2009-03-04  0:40           ` Justin Mattock
  0 siblings, 0 replies; 8+ messages in thread
From: Justin Mattock @ 2009-03-04  0:40 UTC (permalink / raw)
  To: Johannes Weiner; +Cc: Randy Dunlap, Linux Kernel Mailing List

On Tue, Mar 3, 2009 at 2:36 PM, Justin Mattock <justinmattock@gmail.com> wrote:
> On Tue, Mar 3, 2009 at 1:20 PM, Johannes Weiner <hannes@cmpxchg.org> wrote:
>> On Tue, Mar 03, 2009 at 01:07:29PM -0800, Randy Dunlap wrote:
>>> Justin Mattock wrote:
>>> > On Tue, Mar 3, 2009 at 12:49 PM, Randy Dunlap <randy.dunlap@oracle.com> wrote:
>>> >> Justin Mattock wrote:
>>> >>> Hello;
>>> >>> I am unable to compile the kernel
>>> >>> (just did a git pull a few minuets ago);
>>> >>> here is what I see:
>>> >>>
>>> >>> WARNING: modpost: Found 1 section mismatch(es).
>>> >>> To see full details build your kernel with:
>>> >>> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>>> >>>   GEN     .version
>>> >>>   CHK     include/linux/compile.h
>>> >>>   UPD     include/linux/compile.h
>>> >>>   CC      init/version.o
>>> >>>   LD      init/built-in.o
>>> >>>   LD      .tmp_vmlinux1
>>> >>>   KSYM    .tmp_kallsyms1.S
>>> >>>    AS      .tmp_kallsyms1.o
>>> >>>   LD      .tmp_vmlinux2
>>> >>>   KSYM    .tmp_kallsyms2.S
>>> >>>   AS      .tmp_kallsyms2.o
>>> >>>   CHK     include/linux/version.h
>>> >>>   HOSTCC  scripts/unifdef
>>> >>> scripts/unifdef.c:209: error: conflicting types for 'getline'
>>> >>> /usr/include/stdio.h:651: note: previous declaration of 'getline' was here
>>> >>> make[2]: *** [scripts/unifdef] Error 1
>>> >>> make[1]: *** [__headers] Error 2
>>> >>> make: *** [vmlinux] Error 2
>>> >>>
>>> >>> The only change to .config was:
>>> >>>
>>> >>> SYSFS_DEPRECATED_V2 [=y]
>>> >>> to
>>> >>> SYSFS_DEPRECATED_V2 [=n]
>>> >>> to see if I can make udev from:
>>> >>>
>>> >>> udev: starting version 137
>>> >>> [    7.557317] udev: deprecated sysfs layout; update the kernel or disable
>>> >>> CONFIG_SYSFS_DEPRECATED; some udev features will not work correctly
>>> >>>
>>> >>> giving me this message.
>>> >>>
>>> >>> also I did use a CFLAGS when compiling,
>>> >>> but never received this when doing so for:
>>> >>> 2.6.29-rc5-00289-g460c133
>>> >>>
>>> >>> any info would be appreciated.
>>> >> What CFLAGS?  I can't reproduce the problem.
>>> >>
>>> >>
>>> >> --
>>> >> ~Randy
>>> >>
>>> >
>>> > make CC=/usr/bin/i686-pc-linux-gnu-gcc-4.4.0 CFLAGS="-march=core2
>>> > -mtune=core2 -O2 -pipe -fomit-frame-pointer"
>>> > CXXFLAGS="${CFLAGS}" MAKEOPTS="-j3"
>>>
>>> I still can't reproduce the problem by using those CFLAGS/CXXFLAGS.
>>
>> chigurh:~/linux/linux-2.6/scripts$ make unifdef CFLAGS="-D_GNU_SOURCE"
>> cc -D_GNU_SOURCE    unifdef.c   -o unifdef
>> unifdef.c:209: error: conflicting types for `getline'
>> /usr/include/stdio.h:649: error: previous declaration of `getline' was here
>> make: *** [unifdef] Error 1
>> chigurh:~/linux/linux-2.6/scripts$ make unifdef
>> cc     unifdef.c   -o unifdef
>> chigurh:~/linux/linux-2.6/scripts$
>>
>>> > I also just loaded the latest libc
>>> > (not sure if this has anything to do);
>>>
>>> That probably updated /usr/include/stdio.h (?; I'm just guessing here).
>>
>> Perhaps getline() is now defined even without _GNU_SOURCE?  But I
>> doubt that...
>>
>>        Hannes
>>
>
> Well, maybe I need to just do a
> make clean
> before compiling.
>
>
> --
> Justin P. Mattock
>

Well, that didn't seem to be a simple solution.
I guess I'm stuck with what I have.

-- 
Justin P. Mattock

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-04  0:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-03 20:36 scripts/unifdef.c:209: error: conflicting types for 'getline' Justin Mattock
2009-03-03 20:49 ` Randy Dunlap
2009-03-03 21:00   ` Justin Mattock
2009-03-03 21:07     ` Randy Dunlap
2009-03-03 21:17       ` Justin Mattock
2009-03-03 21:20       ` Johannes Weiner
2009-03-03 22:36         ` Justin Mattock
2009-03-04  0:40           ` Justin Mattock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox