[Ns-bugs] [Bug 413] python bindings not portable to OS X
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Mon Nov 24 00:02:41 PST 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=413
--- Comment #5 from Mathieu Lacage <mathieu.lacage at sophia.inria.fr> 2008-11-24 03:02:41 EDT ---
(In reply to comment #4)
> (In reply to comment #2)
> > Created an attachment (id=311)
--> (http://www.nsnam.org/bugzilla/attachment.cgi?id=311) [details] [details]
> > darwin-ppc build fix
> >
> > This patch fixes build errors on the darwin-ppc regression host. It builds
> > fine there and runs Python unit tests. Still no idea about this _environ issue
> > reported here.
> >
>
> I really don't like this patch: the code should be fine without it. Would you
> mind show me the compiler error message together with compiler version ?
The bug happens because the python headers include /usr/include/sys/termios.h
which defines the macro ECHO to 0x000008
This is really butt-ugly, especially since if you grep for ICMP_ECHO in
/usr/include/*, you will find netinet/ip_icmp.h which defines it so, adding the
ICMP prefix is not bullet-proof.
I don't really know what to do: the C preprocessor is a killer.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list