From owner-freebsd-ports Mon Dec 20 14:50:15 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 227801535F for ; Mon, 20 Dec 1999 14:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA71712; Mon, 20 Dec 1999 14:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from kbtfw.kubota.co.jp (kbtfw.kubota.co.jp [133.253.102.202]) by hub.freebsd.org (Postfix) with ESMTP id 04DE5153CD for ; Mon, 20 Dec 1999 14:46:06 -0800 (PST) (envelope-from haro@tk.kubota.co.jp) Received: by kbtfw.kubota.co.jp; id HAA03374; Tue, 21 Dec 1999 07:46:04 +0900 (JST) Received: from unknown(133.253.31.1) by kbtfw.kubota.co.jp via smap (V4.2) id xma003313; Tue, 21 Dec 99 07:45:21 +0900 Received: (from uucp@localhost) by lemond.gkn.kubota.co.jp (8.9.3+3.2W/3.7W99070916) with UUCP id HAA17431 for FreeBSD-gnats-submit@freebsd.org; Tue, 21 Dec 1999 07:45:20 +0900 (JST) Received: (from haro@localhost) by jkpc15.tk.kubota.co.jp (8.9.3/3.7W-uucp) id AAA00540; Tue, 21 Dec 1999 00:26:41 +0900 (JST) Message-Id: <199912201526.AAA00540@jkpc15.tk.kubota.co.jp> Date: Tue, 21 Dec 1999 00:26:41 +0900 (JST) From: haro@kubota.co.jp Reply-To: haro@kubota.co.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/15595: modula-3-lib compile error on -CURRENT due to changes in socket.h Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 15595 >Category: ports >Synopsis: modula-3-lib compile error on -CURRENT due to changes in socket.h >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 20 14:50:01 PST 1999 >Closed-Date: >Last-Modified: >Originator: Munehiro Matsuda >Release: FreeBSD 4.0-CURRENT i386 (After Nov 24 1999) >Organization: Kubota Corporation, Japan >Environment: OS: FreeBSD 4.0-CURRENT as of Dec 17 1999 (CTM: src-cur.4142.gz) ports: ports-cur as of Dec 18 1999 (CTM: ports-cur.3094.gz) >Description: modula-3-lib port fails compile with the following error: ============================================================================ mkdir FreeBSD2 --- building in FreeBSD2 --- m3 -w1 -why -O -times -a libm3core.a -F/var/tmp/qkGu1836 new source -> compiling ../src/Csupport/Common/hand.c <> new source -> compiling ../src/runtime/FreeBSD2/RTHeapDepC.c ../src/runtime/FreeBSD2/RTHeapDepC.c: In function `getsockopt': ../src/runtime/FreeBSD2/RTHeapDepC.c:529: argument `optlen' doesn't match prototype /usr/include/sys/socket.h:427: prototype declaration ../src/runtime/FreeBSD2/RTHeapDepC.c: In function `setsockopt': ../src/runtime/FreeBSD2/RTHeapDepC.c:1105: argument `optlen' doesn't match prototype /usr/include/sys/socket.h:437: prototype declaration <> new source -> compiling ../src/runtime/FreeBSD2/_fpsetjmp.s compilation failed => not building library "libm3core.a" seconds #times operation 0.04 1 updating web info 0.23 1 getting derived timestamps 0.10 210 checking timestamps 0.11 181 merging new link info 11.02 180 compiling Modula-3 -> IL 45.04 180 compiling IL -> assembly 38.44 180 compiling assembly -> object 11.47 30 compiling C -> object 0.11 1 exhaling new link info 7.36 361 removing temporary files 0.16 other --------------------------------------------------- 114.07 TOTAL *** error code 1 (ignored) missing libm3core.a: not building libm3core.so.6 --- shipping from FreeBSD2 --- m3mkdir /usr/ports/lang/modula-3-lib/work/installed/lib/m3/pkg/m3core/FreeBSD2 mkdir /usr/ports/lang/modula-3-lib/work/installed/lib/m3/pkg/m3core mkdir /usr/ports/lang/modula-3-lib/work/installed/lib/m3/pkg/m3core/FreeBSD2 /usr/ports/lang/modula-3-lib/work/installed/lib/m3/pkg/m3core/FreeBSD2 .M3EXPORTS .M3IMPTAB .M3WEB libm3core.a install: libm3core.a: No such file or directory *** error code 71 "/usr/ports/lang/modula-3-lib/work/m3/m3core/FreeBSD2/.M3SHIP", line 328: command execute failed *** call stack *** "/usr/ports/lang/modula-3-lib/work/m3/m3core/FreeBSD2/.M3SHIP", line 328: call to built-in exec "/usr/ports/lang/modula-3-lib/work/m3/m3core/FreeBSD2/.M3SHIP", line 6: call to procedure install_file m3ship: /usr/ports/lang/modula-3-lib/work/installed/bin/quake failed (status = 256) *** error code 255 "/usr/ports/lang/modula-3-lib/work/m3/src/m3makefile", line 61: command execute failed *** call stack *** "/usr/ports/lang/modula-3-lib/work/m3/src/m3makefile", line 61: call to built-in exec "/usr/ports/lang/modula-3-lib/work/m3/src/m3makefile", line 84: call to procedure BuildChunk m3build: /usr/ports/lang/modula-3-lib/work/installed/bin/quake failed (status = 256) *** Error code 255 Stop in /usr/ports/lang/modula-3-lib. *** Error code 1 Stop in /usr/ports/lang/modula-3-lib. *** Error code 1 Stop in /usr/ports/lang/modula-3-lib. ============================================================================ The error occurs due to changes of definitions for getsockopt() and setsockopt() in sys/sys/socket.h (rev: 1.34). From: int getsockopt __P((int, int, int, void *, int *)); int setsockopt __P((int, int, int, const void *, int)); To: int getsockopt __P((int, int, int, void *, socklen_t *)); int setsockopt __P((int, int, int, const void *, socklen_t)); >How-To-Repeat: On -CURRENT after Nov 24 1999, # cd /usr/ports/lang/modula-3-lib # make >Fix: Replace the /usr/ports/lang/modula-3-lib/patches/patch-ab with the fixed one, included in this PR. The fix is something like: int setsockopt(s, level, optname, optval, optlen) /* ok */ int s, level, optname; const void *optval; + #if __FreeBSD__ >= 4 + socklen_t optlen; + #else int optlen; + #endif begin 644 patch-ab M1FEX(&$@8V]N"!S;VUE('1H:6YG7!E7,O<&%R86TN:#X*("-I9B!?7T9R965"4T1?7R`^ M/2`R"BTC(&EN8VQU9&4@/'-Y7-C=&PN:#X**R-I;F-L=61E(#QS>7,O M7,O;6]U;G0N:#X*("-I;F-L=61E(#QS>7,O:7!C+F@^"D!` M("TX.2PY("LY,"PR,2!`0`H@(VEN8VQU9&4@/'5F7,OR!I;G0@R!I;G0@R!I;G0@7-C86QL M*%-94U]C;VYN96-T+"!S+"!N86UE+"!N86UE;&5N*3L*+2`@15A)5%]#4DE4 M24-!3#L*+2`@R!C:&%R("HJ93L@9F]R("AE(#T@96YV<#L@*F4[(&4K*RD@34%+ M15]214%$04),12@J92D[('T**R`@("`@('L@8VAAR!C:&%R("H@8V]NR!I;G0@ M7-C86QL*%-94U]G971P965R;F%M92P@R!I;G0@7-C M86QL*%-94U]G971S;V-K;F%M92P@7!E M+"!O<'1I;VYS*0HM8VAA7!E.PHM8VAA7!E.PHK("!C;VYS="!C:&%R("ID:7(["BL@(&EN="!F M;&%G7!E+"`B;69S(BD@/3T@,"D@>PHK("`@(&U?9&%T82`]("AS=')U8W0@;69S M7V%R9W,J*2!D871A.PHK("`@($U!2T5?4D5!1$%"3$4H;5]D871A*3L**R`@ M("!-04M%7U)%041!0DQ%*&U?9&%T82T^9G-P96,I.PHK("`@(')E7!E+"!D:7(L(&9L86=S+"!D871A*3L* M*R`@?2!E;'-E(&EF("AS=')C;7`H='EP92P@(FYFPDO*B!.;W0@86YY=&AI;F<@=V4@F5? M="!N8GET97,["BU[(&EN="!R97-U;'0["BT*+2`@14Y415)?0U))5$E#04P[ M"BT@($U!2T5?5U))5$%"3$4H8G5F*3L*+2`@CL*('L@:6YT(')EF5? M="!L96X["BTC96QS90HM:6YT(&QE;CL*+2-E;F1I9@HM:6YT(&9L86=S.PHM M>R!I;G0@F5? M="!L96X["BTC96QS90HM:6YT(&QE;CL*+2-E;F1I9@HM:6YT(&9L86=S.PHM MR!I;G0@ MR!I;G0@R!I;G0@&-E<'1F9',I.PHM("!-04M%7U)%041!0DQ%*'1I;65O=70I.PHM("!R97-U M;'0@/2!S>7-C86QL*%-94U]S96QE8W0L(&YF9',L(')E861F9',L('=R:71E M9F1S+"!E>&-E<'1F9',L('1I;65O=70I.PHM("!%6$E47T-2251)0T%,.PHM M("!R971UR!I;G0@F5?="!L96X["BTC96QS90HM:6YT(&QE;CL*+2-E M;F1I9@HM:6YT(&9L86=S.PHM>R!I;G0@7-C86QL*%-94U]S96YD=&\L(',L(&US9RP@;&5N+"!F;&%GR!I;G0@7!E+"!P7!E+"!PR!I;G0@7-C86QL*%-94U]TR!I;G0@71ERelease-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message