xwhuang / sctp-refimpl

Automatically exported from code.google.com/p/sctp-refimpl
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

INET INET6 and similar defines are not included in the userspace library header #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile usrscpt with INET and INET6
2. Link library in Xcode
3. Stack of some functions/callbacks will be corrupted due to INET and INET6 
not being defined in Xcode. For example sctp_sockstore will be inconsistent.

What is the expected output? What do you see instead?
I think it is expected from the library to define symbols like INET and INET6 
with library prefix, i.e. REFSCTP_INET REFSCTP_INET6 and include the symbol in 
the user header file. Otherwise one has no idea what flags were used to 
configure and build the library.

What version of the product are you using? On what operating system?
Revision 9168 on OSX

Please provide any additional information below.

Original issue reported on code.google.com by mrubenc...@gmail.com on 19 Feb 2015 at 4:15

GoogleCodeExporter commented 9 years ago
You need to provide the same set of INET and INET6 defines for the programs 
using the usrsctp library as the flags you used to compile the library. That is 
why we have LIBCFLAGS and CFLAGS in the configure.ac script. Might not the the 
most elegant way, but this is how the library use currently is intended.

Original comment by t00FC...@googlemail.com on 2 Mar 2015 at 11:39