SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] sctplib & MacOS X 10.4


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: Andreas Fink <afink AT global-networks.ch>
  • Cc: "discussion (E-mail)" <discussion AT sctp.de>
  • Subject: Re: [SCTP-Discussion] sctplib & MacOS X 10.4
  • Date: Tue Sep 20 20:42:03 2005
  • List-id: SCTP Discussions <discussion.sctp.de>

Hi Andreas,

see my comments in-line. Thanks for letting us know.

Best regards
Michael

On Sep 20, 2005, at 19:13 Uhr, Andreas Fink wrote:

for those who want to download SCTPLib 1.0.4 as MacOS X package for intel and powerpc (including the needed glib and gtk+),
I've put it on to

http://www.finkconsulting.com/page7.php#sctp

There are a few gotcha's I did run into while building this.
The fixes are however pretty obvious. Maybe people with CVS access can commit those changes.

Here's how I built it:

wget http://www.sctp.de/download/sctplib-1.0.4.tar.gz
tar -xvzf sctplib-1.0.4.tar.gz
cd sctplib-1.0.4
export CFLAGS="-O3 -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/usr/local/lib -I/usr/local/include -fno-omit-frame-pointer -arch ppc -arch i386"
export LDFLAGS=" -lstdc++ -arch ppc -arch i386"
./configure --disable-shared --enable-static --mandir=/usr/local/man --with-glib-prefix=/usr/local --disable-dependency-tracking

edit sctplib/sctp/auxiliary.c and rename the function adler32 to my_adler32 at the end.
There are two or tree calls to this function to be changed in the same file.
adler32 is already defined in libz so if you use libz in your project, you will have problems of two items being defined at two places.
Committed a fix to CVS.

Two Makefiles (sctplib/sctp/Makefile and sctplib/programs/Makefile) had to modified (after the configure run) to remove the -ansi compiler option because some header files of MacOS Xcontained // as a comment identifier which is valid for C++ but not for C. GCC accepts // as comment escape chars but not when using strict ansi checking.
Committed a fix to CVS.


Hope this helps others.


Andreas Fink
Global Networks Schweiz AG

------------------------------------------------------------------
Tel: +41-61-6666330 Fax: +41-61-6666334 Mobile: +41-79-2457333
Global Networks Schweiz AG. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/
afink AT global-networks.ch
------------------------------------------------------------------
ICQ: 101946485 MSN:
msn1 AT gni.ch
AIM: smsrelay Skype: andreasfink
Yahoo: finkconsulting SMS: +41792457333
PGP9: 0714 DF2B A189 A760 6201 5CBD D040 3E71 4DAF 68BB


_______________________________________________
discussion mailing list
discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/discussion






Archive powered by MHonArc 2.6.19+.

Top of page