Subject: pkg/35989: mbone/sdr Solaris gcc4.1.2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 03/12/2007 15:10:00
>Number: 35989
>Category: pkg
>Synopsis: mbone/sdr Solaris gcc4.1.2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 12 15:10:00 +0000 2007
>Originator: Gilles Dauphin
>Release: SunOS 5.10 i86pc
>Organization:
ENST
>Environment:
System: SunOS bi.enst.fr 5.10 Generic_118855-19 i86pc
>Description:
sdr is old. does not compile with pkgsrc on solaris and crash when wrong announce is sent.
>How-To-Repeat:
bmake
run sdr
>Fix:
typical patch but i know wrong because hardcode PATH
but:
--- pgd-aa begins here ---
--- ../solaris/Makefile.solaris.orig Mon Sep 4 18:30:30 2000
+++ ../solaris/Makefile.solaris Mon Mar 12 15:42:39 2007
@@ -1,6 +1,6 @@
CC = gcc
-INCLUDES = -I/usr/openwin/include -I../../tcl-8.0/generic -I../../tk-8.0/generic -I../../common
-LIBS = ../../tk-8.0/unix/libtk8.0.a ../../tcl-8.0/unix/libtcl8.0.a ../../common/libuclmmbase.a \
+INCLUDES = -I/usr/openwin/include -I/usr/pkg/include/tcl/generic -I/usr/pkg/include/tk/generic -I../../common -I/usr/pkg/include/common-mml
+LIBS = -L/usr/pkg/lib -R/usr/pkg/lib -ltk84 -ltcl84 -luclmmbase -lmd5 \
-L/usr/openwin/lib -lX11 -lm -lnsl -ldl -lsocket -lresolv
CFLAGS = -g -O -Wall -Wno-implicit-int $(INCLUDES) -DSOLARIS -DCANT_MCAST_BIND -DNORANDPROTO -DAUTH -DSYSV -DSolaris $(IFLAGS)
--- pgd-aa ends here ---
--- pgd-ab begins here ---
--- ../src/polluted.c.orig Mon Sep 4 18:30:38 2000
+++ ../src/polluted.c Mon Mar 12 15:45:26 2007
@@ -1029,7 +1029,7 @@
memcpy((char *)bp1+sizeof(struct sap_header), (char *)bp+sizeof(struct sap_header), 4);
}
- newlen = len - auth_len;
+ newlen = len /* - auth_len */;
newbuf = (char *)malloc(newlen);
/* copy sapv4_header to start of newbuf and free temporary sapv4_header */
--- pgd-ab ends here ---