* sunifdef instead of unifdef
@ 2006-10-05 13:08 Dennis Heuer
2006-10-05 13:47 ` Alexey Dobriyan
2006-10-05 14:40 ` David Woodhouse
0 siblings, 2 replies; 10+ messages in thread
From: Dennis Heuer @ 2006-10-05 13:08 UTC (permalink / raw)
To: linux-kernel
Hello
unifdef is not only very old and unmaintained, the binary does not work
and the source does not compile on a pure x86_64 system. There is
another tool that worked for me--though it 'closed with remarks'--and
that was updated recently (several times this year). It is called
sunifdef, is under an equal (new) BSD license, and is proposed to be
the successor of unifdef. See the project page:
http://www.sunifdef.strudl.org/
Regards,
Dennis
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: sunifdef instead of unifdef
2006-10-05 13:08 sunifdef instead of unifdef Dennis Heuer
@ 2006-10-05 13:47 ` Alexey Dobriyan
2006-10-05 14:40 ` David Woodhouse
1 sibling, 0 replies; 10+ messages in thread
From: Alexey Dobriyan @ 2006-10-05 13:47 UTC (permalink / raw)
To: Dennis Heuer; +Cc: linux-kernel
On Thu, Oct 05, 2006 at 03:08:16PM +0200, Dennis Heuer wrote:
> unifdef is not only very old and unmaintained, the binary does not work
> and the source does not compile on a pure x86_64 system. There is
> another tool that worked for me--though it 'closed with remarks'--and
> that was updated recently (several times this year). It is called
> sunifdef, is under an equal (new) BSD license, and is proposed to be
> the successor of unifdef. See the project page:
>
> http://www.sunifdef.strudl.org/
What about posting compiler errors instead of suggesting something that
is 10 times bigger?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: sunifdef instead of unifdef
2006-10-05 13:08 sunifdef instead of unifdef Dennis Heuer
2006-10-05 13:47 ` Alexey Dobriyan
@ 2006-10-05 14:40 ` David Woodhouse
2006-10-05 16:05 ` Tony Finch
1 sibling, 1 reply; 10+ messages in thread
From: David Woodhouse @ 2006-10-05 14:40 UTC (permalink / raw)
To: Dennis Heuer; +Cc: linux-kernel, dot
On Thu, 2006-10-05 at 15:08 +0200, Dennis Heuer wrote:
> unifdef is not only very old and unmaintained, the binary does not work
> and the source does not compile on a pure x86_64 system.
It works for me. Describe your problem more coherently.
I wouldn't describe it as 'very old' -- the last commit seems to have
been last March, which isn't _so_ recent but perhaps it just hasn't
_needed_ an update?
Neither would I describe it as unmaintained. Tony was quite quickly
responsive when I asked him if it would be OK to include unifdef in the
kernel source tree.
> There is another tool that worked for me--though it 'closed with
> remarks'--and that was updated recently (several times this year). It
> is called sunifdef, is under an equal (new) BSD license, and is
> proposed to be the successor of unifdef. See the project page:
>
> http://www.sunifdef.strudl.org/
I don't see a huge point in changing, unless it lets us get rid of stuff
like
#if defined(__KERNEL__ && ....
when used with -U__KERNEL__.
--
dwmw2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: sunifdef instead of unifdef
2006-10-05 14:40 ` David Woodhouse
@ 2006-10-05 16:05 ` Tony Finch
2006-10-05 16:07 ` David Woodhouse
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Tony Finch @ 2006-10-05 16:05 UTC (permalink / raw)
To: David Woodhouse; +Cc: Dennis Heuer, linux-kernel, dot
On Thu, 5 Oct 2006, David Woodhouse wrote:
>
> I wouldn't describe it as 'very old' -- the last commit seems to have
> been last March, which isn't _so_ recent but perhaps it just hasn't
> _needed_ an update?
>
> Neither would I describe it as unmaintained. Tony was quite quickly
> responsive when I asked him if it would be OK to include unifdef in the
> kernel source tree.
I haven't received any contributions to unifdef in the last 18 months
which is why it hasn't changed. Yes, it has some significant gaps in its
functionality, but it's reasonably correct within its current scope. (I
tend to think that if you need more advanced functionality then you are
already in serious trouble: for example, my unifdef was written so that I
could understand xterm's frightening pty handling....) I don't have a lot
of time to make extensive changes to unifdef, and given that sunifdef
exists there is not much point. Thanks for telling me about it: I didn't
know it existed, and it's nice to see other people basing such great stuff
on my work.
> I don't see a huge point in changing, unless it lets us get rid of stuff
> like
> #if defined(__KERNEL__ && ....
I don't think your syntax errors are my problem :-)
Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
FORTIES CROMARTY FORTH: SOUTHERLY 6 TO GALE 8, DECREASING 5 OR 6 LATER. RAIN
OR SHOWERS. MODERATE OR GOOD.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: sunifdef instead of unifdef
2006-10-05 16:05 ` Tony Finch
@ 2006-10-05 16:07 ` David Woodhouse
2006-10-05 16:12 ` Sam Ravnborg
2006-10-09 1:58 ` Valdis.Kletnieks
2 siblings, 0 replies; 10+ messages in thread
From: David Woodhouse @ 2006-10-05 16:07 UTC (permalink / raw)
To: Tony Finch; +Cc: Dennis Heuer, linux-kernel
On Thu, 2006-10-05 at 17:05 +0100, Tony Finch wrote:
> > #if defined(__KERNEL__ && ....
>
> I don't think your syntax errors are my problem :-)
Heh, good point :)
--
dwmw2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: sunifdef instead of unifdef
2006-10-05 16:05 ` Tony Finch
2006-10-05 16:07 ` David Woodhouse
@ 2006-10-05 16:12 ` Sam Ravnborg
2006-10-09 1:58 ` Valdis.Kletnieks
2 siblings, 0 replies; 10+ messages in thread
From: Sam Ravnborg @ 2006-10-05 16:12 UTC (permalink / raw)
To: Tony Finch; +Cc: David Woodhouse, Dennis Heuer, linux-kernel
> I haven't received any contributions to unifdef in the last 18 months
> which is why it hasn't changed.
Reminds me - I did a small change to avoid dependency on strlcpy.
You can see it here:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=14a036d2dc304797f3624c06bd6d2a1e9b59e45a
I strongly preferred 8 simple codelines as replacement for carrying
strlcpy in a seperate file. Feel free to include this in your unifdef
as you whish.
Sam
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: sunifdef instead of unifdef
2006-10-05 16:05 ` Tony Finch
2006-10-05 16:07 ` David Woodhouse
2006-10-05 16:12 ` Sam Ravnborg
@ 2006-10-09 1:58 ` Valdis.Kletnieks
2 siblings, 0 replies; 10+ messages in thread
From: Valdis.Kletnieks @ 2006-10-09 1:58 UTC (permalink / raw)
To: Tony Finch; +Cc: David Woodhouse, Dennis Heuer, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
On Thu, 05 Oct 2006 17:05:04 BST, Tony Finch said:
> already in serious trouble: for example, my unifdef was written so that I
> could understand xterm's frightening pty handling....)
Well, that code *does* warn you:
* If you think you know what all of this code is doing, you are
* probably very mistaken. There be serious and nasty dragons here.
:)
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: sunifdef instead of unifdef
2006-10-05 19:26 ` Sam Ravnborg
@ 2006-10-05 20:37 ` Jan Engelhardt
0 siblings, 0 replies; 10+ messages in thread
From: Jan Engelhardt @ 2006-10-05 20:37 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: Dennis Heuer, linux-kernel
>> However, there are three main reasons why I pledge for sunifdef
>> compatibility:
>>
>> 1. There is a project page and an inviting community
>> 2. There is HTML documentation
>> 3. They use autotools, which is distributor and administrator-friendly
autotools is, in some places, not developer friendly. A V=1 feature like
the kernel's makefile system has would be beneficial, as well as the
possibility to use PIC-compiled objects for PIE-executables (which
currently throws an error on some distros, and requires workarounds,
like the *-nolibtool files in pam_mount)
>> gcc -O2 -m64 -c -o unifdef.o unifdef.c
>> unifdef.c: In function 'main':
>> unifdef.c:129: warning: incompatible implicit declaration of built-in
>> function 'exit'
>> unifdef.c:157: warning: incompatible implicit declaration of built-in
>> function 'exit'
>> unifdef.c:180: warning: incompatible implicit declaration of built-in
>> function 'exit'
>> gcc unifdef.o -o unifdef
>Patches appreciated - seems a simple #include is missing.
#include <stdlib.h>
-`J'
--
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: sunifdef instead of unifdef
2006-10-05 16:38 Dennis Heuer
@ 2006-10-05 19:26 ` Sam Ravnborg
2006-10-05 20:37 ` Jan Engelhardt
0 siblings, 1 reply; 10+ messages in thread
From: Sam Ravnborg @ 2006-10-05 19:26 UTC (permalink / raw)
To: Dennis Heuer; +Cc: linux-kernel
> However, there are three main reasons why I pledge for sunifdef
> compatibility:
>
> 1. There is a project page and an inviting community
> 2. There is HTML documentation
> 3. They use autotools, which is distributor and administrator-friendly
You do realize that unifdef is included in the kernel so
it just works?
> gcc -O2 -m64 -c -o unifdef.o unifdef.c
> unifdef.c: In function 'main':
> unifdef.c:129: warning: incompatible implicit declaration of built-in
> function 'exit'
> unifdef.c:157: warning: incompatible implicit declaration of built-in
> function 'exit'
> unifdef.c:180: warning: incompatible implicit declaration of built-in
> function 'exit'
> gcc unifdef.o -o unifdef
Patches appreciated - seems a simple #include is missing.
Sam
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: sunifdef instead of unifdef
@ 2006-10-05 16:38 Dennis Heuer
2006-10-05 19:26 ` Sam Ravnborg
0 siblings, 1 reply; 10+ messages in thread
From: Dennis Heuer @ 2006-10-05 16:38 UTC (permalink / raw)
To: linux-kernel
Ok, I may have been too hasty in calling it dead. However, I don't know
where you got it from but I just did a google and found nothing
original. Only deps, rpms, and so forth. I started a search at
Freshmeats and found it besides sunifdef. The freshmeat entry was from
2000 and the last noted update was from 2001. There was no link to a
homepage but just a link to one specific release (Possibly there are
newer ones already.)
And, 10 times bigger is not an argument neither for nor against a
tool. I'd rather like to see unifdef slip from my harddisk in full. Now,
you decided to use this tool. Ok! So what about some more global
perspective. Shouldn't it be useful for others too, then (So that it's
not only on disk for your project.) I at least pledge for sunifdef
compatibility, which should be possible because I already installed the
headers with it (though it produced some 'remarks', there doesn't seem
to be a difference between this installation and a previous one on my
old system--except that in the latter case I lost all other files
in /usr/include because there was no hint blinking anywhere that 'make
headers_install' would not just copy to but overwrite the include
directory. Playing with INSTALL_HDR_PATH, thus, is quite dangerous!)
However, there are three main reasons why I pledge for sunifdef
compatibility:
1. There is a project page and an inviting community
2. There is HTML documentation
3. They use autotools, which is distributor and administrator-friendly
(just works like the rest, and installation can be automated together
with other packages in one rush and with one simple script that uses
one strategy--very nice that is!)
Now to unifdef. Got it working. An old .o file caused the problem.
Still there is an error output:
gcc -O2 -m64 -c -o unifdef.o unifdef.c
unifdef.c: In function 'main':
unifdef.c:129: warning: incompatible implicit declaration of built-in
function 'exit'
unifdef.c:157: warning: incompatible implicit declaration of built-in
function 'exit'
unifdef.c:180: warning: incompatible implicit declaration of built-in
function 'exit'
gcc unifdef.o -o unifdef
Regards,
Dennis
Ps: am off the list now.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-10-09 1:59 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-05 13:08 sunifdef instead of unifdef Dennis Heuer
2006-10-05 13:47 ` Alexey Dobriyan
2006-10-05 14:40 ` David Woodhouse
2006-10-05 16:05 ` Tony Finch
2006-10-05 16:07 ` David Woodhouse
2006-10-05 16:12 ` Sam Ravnborg
2006-10-09 1:58 ` Valdis.Kletnieks
2006-10-05 16:38 Dennis Heuer
2006-10-05 19:26 ` Sam Ravnborg
2006-10-05 20:37 ` Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®