[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Bug: ns build breakage under Solaris8
All,
Description:
ns builds break in aodv code on Solaris 8 w/ latest kernel patches
(108528-07 and higher) applied
Reason:
These patches touch /usr/include/sys/stream.h that defines a "struct bcache"
which name-conflicts w/ some aodv code.
Quick and _very_ dirty solution (until proper code fix):
Edit your /usr/include/sys/stream.h and surround the above definition
w/ preprocessor conditionals e.g.
...
#ifndef NS_BREAKAGE
typedef struct bcache {
kmutex_t mutex;
struct kmem_cache *buffer_cache;
struct kmem_cache *dblk_cache;
int alloc;
int destroy;
size_t size;
uint_t align;
} bcache_t;
#endif
...
Than edit your ns Makefile.in / Makefile and add "-DNS_BREAKAGE" to your
complier flags.
Enjoy,
Florian.