Date: Sun, 21 Dec 2003 01:23:49 -0500 From: michael johnson <ahze@ahze.net> To: michael johnson <ahze@ahze.net>, freebsd-ports-bugs@FreeBSD.org Cc: Pete Fritchman <petef@FreeBSD.org> Subject: Re: ports/60410: Port Update: Proc-ProcessTable 0.38 -> 0.39 Message-ID: <3D85DEC9-337E-11D8-AB8E-000A958C81C6@ahze.net> In-Reply-To: <6E63B107-337A-11D8-AB8E-000A958C81C6@ahze.net> References: <200312210535.hBL5ZinB015101@freefall.freebsd.org> <6E63B107-337A-11D8-AB8E-000A958C81C6@ahze.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Tested on freebsd 4.9 and 5.2. diff -ruN devel/p5-Proc-ProcessTable.orig/files/patch-processtable.xs devel/p5-Proc-ProcessTable/files/patch-processtable.xs --- devel/p5-Proc-ProcessTable.orig/files/patch-processtable.xs Thu Jan 1 00:00:00 1970 +++ devel/p5-Proc-ProcessTable/files/patch-processtable.xs Sun Dec 21 01:17:01 2003 @@ -0,0 +1,33 @@ +--- ProcessTable.xs.orig Sat May 31 13:05:56 2003 ++++ ProcessTable.xs Sat Dec 20 20:16:41 2003 +@@ -32,7 +32,6 @@ + #include <stdarg.h> + + /* prototypes to make the compiler shut up */ +-void ppt_warn(const char*, ...); + void ppt_die(const char*, ...); + void store_ttydev(HV*, unsigned long); + void bless_into_proc(char* , char**, ...); +@@ -56,22 +55,7 @@ + * croak() in perl 5.8?? warn and croak exist in 5.6, but don't + * seem to accept format args. + */ +-void ppt_warn(const char *pat, ...) { +- dTHX; +- va_list args; +- va_start(args, pat); +- vwarn(pat, &args); +- va_end(args); +-} + +-/* same with croak */ +-void ppt_croak(const char *pat, ...) { +- dTHX; +- va_list args; +- va_start(args, pat); +- vcroak(pat, &args); +- va_end(args); +-} + + /* Look up the tty device, given the ttynum and store it */ + void store_ttydev( HV* myhash, unsigned long ttynum ){ On Dec 21, 2003, at 12:56 AM, michael johnson wrote: > I added "#define dTHX" to ProcessTable.xs. since it is defined in > perl5.6 already, I didnt think to check on perl5.0. I could not get it > to compile with gcc295, but I did get it to compile and run with > gcc3.3 . I'll look in to it to see how i can make it compile with > gcc295. > > > On Dec 21, 2003, at 12:35 AM, Pete Fritchman wrote: > >> Old Synopsis: Port Update: Proc-ProcessTabe 0.38 -> 0.39 >> New Synopsis: Port Update: Proc-ProcessTable 0.38 -> 0.39 >> >> State-Changed-From-To: open->feedback >> State-Changed-By: petef >> State-Changed-When: Sat Dec 20 23:35:11 CST 2003 >> State-Changed-Why: >> I can't build this on 4.x: >> ProcessTable.xs: In function `ppt_warn': >> ProcessTable.xs:60: `dTHX' undeclared (first use in this function) >> ProcessTable.xs:60: (Each undeclared identifier is reported only once >> ProcessTable.xs:60: for each function it appears in.) >> ProcessTable.xs:61: syntax error before `args' >> ProcessTable.xs:62: `args' undeclared (first use in this function) >> ProcessTable.xs: In function `ppt_croak': >> ProcessTable.xs:69: `dTHX' undeclared (first use in this function) >> ProcessTable.xs:70: syntax error before `args' >> ProcessTable.xs:71: `args' undeclared (first use in this function) >> *** Error code 1 >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=60410 >> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D85DEC9-337E-11D8-AB8E-000A958C81C6>