sunifdef instead of unifdef
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.cunifdef.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.
Quoted 6 lines
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?
Quoted 9 lines
gcc -O2 -m64 -c -o unifdef.o
unifdef.cunifdef.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
Quoted 7 lines
Quoted 7 lines
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)
Quoted 10 lines
Quoted 9 lines
gcc -O2 -m64 -c -o unifdef.o
unifdef.cunifdef.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 unifdefPatches appreciated - seems a simple #include is missing.
#include <stdlib.h>
-`J'