[Debian-med-packaging] Bug#409370: [RFH] Loki bug #409370: missing 64-bit executablex

brian m. carlson sandals at crustytoothpaste.ath.cx
Tue Mar 25 13:53:24 UTC 2008

On Tue, Mar 25, 2008 at 11:59:53AM +0100, Andreas Tille wrote:
> Well, the file param_lex.c was autogenerated in the first place


> $ grep -A2 -B2 __unused *
> param_lex.c-#include <sys/cdefs.h>
> param_lex.c-#else
> param_lex.c:#define __unused
> param_lex.c-#endif
> param_lex.c-

I believe that <sys/cdefs.h> on FreeBSD defines __unused to 
__attribute__(unused), or something similar.  This was probably 
generated by a patched flex for FreeBSD.  freebsd-lex might generate the 
same output, I don't know.

> So while I probably might be able to patch this via
>   s/__unused/__unused_by_other_systems_but__FREEBSD__/
> this might break on som Debian/FREEBSD port and it would be better to
> fix the according flex input.

Debian GNU/kFreeBSD uses __FreeBSD_kernel__, not __FreeBSD__, so it 
shouldn't affect anything as far as Debian goes.  I don't know what 
Debian GNU/kFreeBSD includes in <sys/cdefs.h>; perhaps one of the 
porters could tell you.

> I also wonder whether there is some hidden quirk in flex.  It might be that
> this only happens in old versions of flex and I have to admit that I have
> no idea at all about flex and what I would have to do to.

If you apply the attached patch, and regenerate the C file using flex, 
the program should compile properly.  At least on my amd64 system, the 
executable is built.


brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
troff on top of XML: http://crustytoothpaste.ath.cx/~bmc/code/thwack
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loki.patch
Type: text/x-diff
Size: 257 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20080325/6b2e8eae/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20080325/6b2e8eae/attachment.pgp 

More information about the Debian-med-packaging mailing list