- From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
- To: discussion AT sctp.de
- Subject: Solaris 2.6 Patch (was: Routing socket (was: [SCTP-Discussion] Different implementations of SCTP))
- Date: Thu Jan 24 18:07:01 2002
- List-id: SCTP Discussions <discussion.sctp.de>
- Organization: University Essen
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chang,
I just now saw the patch, thanks a lot for that !
I will review and include it for next release, and then check back with you,
if there are still problems.
Are any other people on this list working with Solaris also ?
Could these people please check the patch, and post on this list, whether
you find any problems with that code ?
Thanks,
Andreas
>
>
I attached "diff -r" result of original pre15 source code against modified
>
pre15 for Solaris. It is currently tested under Solaris 2.6 only.
>
>
- How to build the modified pre15 under Sun Solaris 2.6.
>
(1) You should have Sun commercial C compiler (product name is Forte
>
C/C++). This code is not tested under gcc.
>
(2) Install autoconf, automake, perl, etc.. (it is ok to download binaries
>
from sunfreeware.com) (2) Compile glib-1.2.10 with Sun C compiler and
>
install it under /usr/local. (Note: gcc-compiled glib-1.2 header files
>
cause errors with Sun C compiler) (3) do "setenv CC cc" under csh, or
>
"CC=cc export CC" under sh/ksh. (Note: path of "cc" should be designated to
>
/opt/SUNWspro/bin/, which is standard Sun C compiler installation
>
directory)
>
(4) do "setenv CFLAGS -xCC" under csh, or "CFLAGS=-xCC export CFLAGS" under
>
sh/ksh. (Note: -xCC option causes Sun C compiler to accept C++ style
>
comments.) (5) do "configure --disable-ipv6" under pre15 top level
>
directory. (Note: LD_LIBRARY_PATH should have /usr/local/lib, which
>
contains glib shared libraries) (6) change directory to sctplib/sctp, and
>
do "make".
>
It will compile ok.
>
>
Chang Jin-woong
>
jwjang AT telcoware.com
>
>
----- "diff -r" result -----
>
diff -r sctplib-1.0.0-pre15/configure sctplib-1.0.0-pre15sun/configure
>
4581,4582c4581,4584
>
< CFLAGS="$CFLAGS -Wall -DSOLARIS -D__sun -DSUN -DSUNOS_5"
>
< CXXFLAGS="$CXXFLAGS -Wall -DSOLARIS -D__sun -DSUN -DSUNOS_5"
>
---
>
>
> CFLAGS="$CFLAGS -DSOLARIS -D__sun -DSUN -DSUNOS_5"
>
> CXXFLAGS="$CXXFLAGS -DSOLARIS -D__sun -DSUN -DSUNOS_5"
>
> # CFLAGS="$CFLAGS -Wall -DSOLARIS -D__sun -DSUN -DSUNOS_5"
>
> # CXXFLAGS="$CXXFLAGS -Wall -DSOLARIS -D__sun -DSUN -DSUNOS_5"
>
>
4584c4586
>
< LDFLAGS="$LDFLAGS -lsocket -lnsl -lrt -lresolv"
>
---
>
>
> LDFLAGS="$LDFLAGS -lsocket -lnsl -lresolv"
>
>
Common subdirectories: sctplib-1.0.0-pre15/sctplib and
>
sctplib-1.0.0-pre15sun/sctplib Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/docs and sctplib-1.0.0-pre15sun/sctplib/docs
>
Common subdirectories: sctplib-1.0.0-pre15/sctplib/manual and
>
sctplib-1.0.0-pre15sun/sctplib/manual Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/netlogger and
>
sctplib-1.0.0-pre15sun/sctplib/netlogger Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/programs and
>
sctplib-1.0.0-pre15sun/sctplib/programs Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/sctp and sctplib-1.0.0-pre15sun/sctplib/sctp
>
Common subdirectories: sctplib-1.0.0-pre15/sctplib/sctpd and
>
sctplib-1.0.0-pre15sun/sctplib/sctpd Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/sctpd_programs and
>
sctplib-1.0.0-pre15sun/sctplib/sctpd_programs Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/sctpdlib and
>
sctplib-1.0.0-pre15sun/sctplib/sctpdlib Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/socket_programs and
>
sctplib-1.0.0-pre15sun/sctplib/socket_programs Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/socketapi and
>
sctplib-1.0.0-pre15sun/sctplib/socketapi Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/wireless and
>
sctplib-1.0.0-pre15sun/sctplib/wireless Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/docs/en and
>
sctplib-1.0.0-pre15sun/sctplib/docs/en Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/docs/html and
>
sctplib-1.0.0-pre15sun/sctplib/docs/html Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/docs/sctplib and
>
sctplib-1.0.0-pre15sun/sctplib/docs/sctplib Common subdirectories:
>
sctplib-1.0.0-pre15/sctplib/docs/socketapi and
>
sctplib-1.0.0-pre15sun/sctplib/docs/socketapi Only in
>
sctplib-1.0.0-pre15sun/sctplib/netlogger: Makefile
>
diff -r sctplib-1.0.0-pre15/sctplib/programs/parser.c
>
sctplib-1.0.0-pre15sun/sctplib/programs/parser.c 171a172
>
>
> break;
>
>
231a233
>
>
> break;
>
>
diff -r sctplib-1.0.0-pre15/sctplib/sctp/adaptation.c
>
sctplib-1.0.0-pre15sun/sctplib/sctp/adaptation.c 80a81,87
>
>
> #if defined(SOLARIS)
>
> #include <net/if.h>
>
> #include <net/if_dl.h>
>
> #include <net/if_types.h>
>
> #include <net/route.h>
>
> #include <sys/sockio.h>
>
> #else
>
>
88a96
>
>
> #endif
>
>
446a455
>
>
> #if !defined(SOLARIS)
>
>
460a470
>
>
> #endif
>
>
479a490
>
>
> #if !defined(SOLARIS)
>
>
483a495
>
>
> #endif
>
>
522a535
>
>
> #if !defined(SOLARIS)
>
>
539a553
>
>
> #endif
>
>
608a623
>
>
> #if !defined(SOLARIS)
>
>
611a627
>
>
> #endif
>
>
1020a1037,1039
>
>
> #if defined (SOLARIS)
>
> struct ip *iph;
>
> #endif
>
>
1051a1071
>
>
> #if !defined(SOLARIS)
>
>
1054a1075
>
>
> #endif /* SOLARIS */
>
>
1055a1077
>
>
> #if defined(SOLARIS)
>
>
1059a1082,1088
>
>
> rmsghdr.msg_accrights = (caddr_t)0;
>
> rmsghdr.msg_accrightslen = 0;
>
> #else
>
> rmsghdr.msg_iov = &data_vec;
>
> rmsghdr.msg_iovlen = 1;
>
> rmsghdr.msg_name = (caddr_t) &from->sin;
>
> rmsghdr.msg_namelen = sizeof (struct sockaddr_in);
>
>
1061a1091
>
>
> #endif
>
>
1066a1097,1099
>
>
> #if defined (SOLARIS)
>
> iph = (struct ip *)dest;
>
> #endif
>
>
1072a1106,1108
>
>
> #if defined(SOLARIS)
>
> to->sin.sin_addr.s_addr = iph->ip_dst.s_addr;
>
> #else
>
>
1078a1115
>
>
> #endif
>
>
1551a1589
>
>
> #if !defined(SOLARIS)
>
>
1562a1601
>
>
> #endif
>
>
1963a2003,2005
>
>
> #if defined(SOLARIS)
>
> *max_mtu = DEFAULT_MTU_CEILING;
>
> #else
>
>
1974a2017
>
>
> #endif
>
>
2006c2049,2051
>
< } else if (toUse->sa_family == AF_INET6){
>
---
>
>
> }
>
> #ifdef HAVE_IPV6
>
> else if (toUse->sa_family == AF_INET6){
>
>
2008a2054
>
>
> #endif
>
>
diff -r sctplib-1.0.0-pre15/sctplib/sctp/distribution.c
>
sctplib-1.0.0-pre15sun/sctplib/sctp/distribution.c 692a693
>
>
> #ifdef HAVE_IPV6
>
>
695a697
>
>
> #endif
>
>
707a710
>
>
> #ifdef HAVE_IPV6
>
>
710a714
>
>
> #endif
>
>
Only in sctplib-1.0.0-pre15sun/sctplib/sctpd: Makefile
>
diff -r sctplib-1.0.0-pre15/sctplib/sctpd/sctpd.c
>
sctplib-1.0.0-pre15sun/sctplib/sctpd/sctpd.c 667c667
>
<
>
---
>
>
> break;
>
>
Only in sctplib-1.0.0-pre15sun/sctplib/sctpd_programs: Makefile
>
Only in sctplib-1.0.0-pre15sun/sctplib/sctpdlib: Makefile
>
Only in sctplib-1.0.0-pre15sun/sctplib/socket_programs: Makefile
>
Only in sctplib-1.0.0-pre15sun/sctplib/socketapi: Makefile
>
Only in sctplib-1.0.0-pre15sun/sctplib/wireless: Makefile
>
- --
- ------------------------------------------------------------------------
Dipl.-Ing. Andreas Jungmaier | _
Computer Networking Technology Group | ASCII ribbon campaign ( )
University of Essen | - against HTML email X
http://www.exp-math.uni-essen.de/~ajung | & vcards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see
http://www.gnupg.org
iD8DBQE8UHe7XAsLBNOCSsARAt7BAKCCZYef0n8xiGr4ioe9hPEmxt0K4gCZARH7
Ts4FDkG7b4k9XLGlXNR+fTk=
=3vGd
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.19+.