Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2001 13:19:14 +0200
From:      Ernst de Haan <ernst@jollem.com>
To:        Panagiotis Astithas <past@netmode.ntua.gr>
Cc:        java@FreeBSD.ORG
Subject:   Re: New port: java/jlint (jlint-2.0)
Message-ID:  <20010606131914.B1776@c187104187.telekabel.chello.nl>
In-Reply-To: <20010606141918.A99788@netmode.ece.ntua.gr>; from past@netmode.ntua.gr on Wed, Jun 06, 2001 at 02:19:18PM %2B0300
References:  <20010606114658.A848@c187104187.telekabel.chello.nl> <20010606141918.A99788@netmode.ece.ntua.gr>

next in thread | previous in thread | raw e-mail | index | archive | help

--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Panagiotis.

Oops, it seems I forgot the files/ subdirectory. Here's a new shar file...

Ernst


Panagiotis Astithas wrote:
> On Wed, Jun 06, 2001 at 11:46:58AM +0200, Ernst de Haan wrote:
> > Hi all,
> > 
> > 
> > Here's a suggestion for a new port. It installs the program Jlint, a Java
> > program analyzer and checker. For more info see:
> > 
> >    * http://artho.com/jlint/
> > 
> > The current version is 2.0.
> > 
> > I would really appreciate some testing. I will probably submit this port as a
> > PR sometime soon, but I'm changing my approach of submitting Java ports. I
> > intend to send any potential ports to the freebsd-java mailing list first, to
> > allow for testing and feedback, and *then* send a PR for them.
> 
> I gave it a shot but I got this:
> 
> g++ -c -Wall -O2 -g -DSLIST -DHASH_TABLE jlint.cc
> jlint.cc: In function `void format_message(int, const utf_string &, int, void *)':
> jlint.cc:141: ANSI C++ forbids using pointer of type `void *' in arithmetic
> jlint.cc:141: ANSI C++ forbids using pointer of type `void *' in arithmetic
> jlint.cc:201: ANSI C++ forbids using pointer of type `void *' in arithmetic
> jlint.cc:201: ANSI C++ forbids using pointer of type `void *' in arithmetic
> jlint.cc: In function `int parse_class_file(byte *)':
> jlint.cc:425: warning: unused variable `int desc_index'
> jlint.cc:490: warning: unused variable `int max_stack'
> jlint.cc:321: warning: unused variable `int major_version'
> jlint.cc:319: warning: unused variable `int minor_version'
> *** Error code 1
> 
> This is under 4.3-STABLE of two weeks ago.
> 
> -past
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message
> 

-- 
Ernst de Haan
Java Architect
Jollem Information Technology

    "Come to me all who are weary and burdened
        and I will give you rest" -- Jesus Christ

--MGYHOYXEY6WxJCY8
Content-Type: application/x-sh
Content-Disposition: attachment; filename="jlint-port-20010606a.sh"

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	java
#	java/jlint
#	java/jlint/Makefile
#	java/jlint/distinfo
#	java/jlint/pkg-comment
#	java/jlint/pkg-descr
#	java/jlint/pkg-plist
#	java/jlint/files
#	java/jlint/files/patch-aa
#
echo c - java
mkdir -p java > /dev/null 2>&1
echo c - java/jlint
mkdir -p java/jlint > /dev/null 2>&1
echo x - java/jlint/Makefile
sed 's/^X//' >java/jlint/Makefile << 'END-of-java/jlint/Makefile'
X# New ports collection makefile for:	jlint
X# Date created:		June 2, 2001
X# Whom:			Ernst de Haan <ernst@jollem.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	jlint
XPORTVERSION=	2.0
XCATEGORIES=	java
XMASTER_SITES=	http://artho.com/jlint/
XDISTNAME=	${PORTNAME}
X
XMAINTAINER=	ernst@jollem.com
X
XPLIST_SUB+=	TARGET_PREFIX=${TARGET_DIR:S/^${PREFIX}\///}
XTARGET_DIR?=	${PREFIX}/bin
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
X.include <bsd.port.pre.mk>
X
Xdo-install:
X	${MKDIR} ${TARGET_DIR}
X	${CP} ${WRKSRC}/jlint ${TARGET_DIR}
X	${CP} ${WRKSRC}/antic ${TARGET_DIR}
X	${CHMOD} 755 ${TARGET_DIR}/jlint ${TARGET_DIR}/antic
X
X.include <bsd.port.post.mk>
END-of-java/jlint/Makefile
echo x - java/jlint/distinfo
sed 's/^X//' >java/jlint/distinfo << 'END-of-java/jlint/distinfo'
XMD5 (jlint.tar.gz) = 19e2244b1391a60b58b11a300d67bcf3
END-of-java/jlint/distinfo
echo x - java/jlint/pkg-comment
sed 's/^X//' >java/jlint/pkg-comment << 'END-of-java/jlint/pkg-comment'
XJava program analyzer and checker
END-of-java/jlint/pkg-comment
echo x - java/jlint/pkg-descr
sed 's/^X//' >java/jlint/pkg-descr << 'END-of-java/jlint/pkg-descr'
XJlint will check your Java code and find bugs, inconsistencies
Xand synchronization problems by doing data flow analysis and
Xbuilding the lock graph.
X
XWWW: http://artho.com/jlint/
END-of-java/jlint/pkg-descr
echo x - java/jlint/pkg-plist
sed 's/^X//' >java/jlint/pkg-plist << 'END-of-java/jlint/pkg-plist'
X%%TARGET_PREFIX%%/jlint
X%%TARGET_PREFIX%%/antic
END-of-java/jlint/pkg-plist
echo c - java/jlint/files
mkdir -p java/jlint/files > /dev/null 2>&1
echo x - java/jlint/files/patch-aa
sed 's/^X//' >java/jlint/files/patch-aa << 'END-of-java/jlint/files/patch-aa'
X--- functions.hh        2001/03/16 22:11:49     1.3
X+++ functions.hh        2001/05/17 19:36:43
X@@ -5,13 +5,19 @@
X 
X #include "stdio.h"
X #include "types.hh"
X+#include <stdarg.h>
X class utf_string;
X 
X-// cygwin fix:
X #ifndef __VALIST
X #ifdef va_list
X+#define __VALIST va_list
X+#endif
X+// FreeBSD uses typedef in stdarg.h
X+#ifdef __FreeBSD__
X #define __VALIST va_list
X-#else
X+#endif
X+// cygwin fix:
X+#ifndef __VALIST
X #define __VALIST void*
X #endif
X #endif
END-of-java/jlint/files/patch-aa
exit


--MGYHOYXEY6WxJCY8--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010606131914.B1776>