Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 13054 invoked from network); 21 Oct 2008 08:51:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2008 08:51:58 -0000 Received: (qmail 54017 invoked by uid 500); 21 Oct 2008 08:51:56 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 53967 invoked by uid 500); 21 Oct 2008 08:51:56 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 53956 invoked by uid 99); 21 Oct 2008 08:51:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 01:51:56 -0700 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [82.130.70.14] (HELO XSMTP0.ethz.ch) (82.130.70.14) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 08:50:46 +0000 Received: from xfe2.d.ethz.ch ([82.130.124.42]) by XSMTP0.ethz.ch with Microsoft SMTPSVC(6.0.3790.3959); Tue, 21 Oct 2008 10:51:02 +0200 Received: from [192.168.2.101] ([80.218.70.190]) by xfe2.d.ethz.ch over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 21 Oct 2008 10:51:02 +0200 Message-ID: <48FD97EC.9070108@hot-shot.com> Date: Tue, 21 Oct 2008 10:50:52 +0200 From: Lorenz Breu User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: dev@tomcat.apache.org Subject: [JNI/native]: recvfrom vs recvFrom X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Oct 2008 08:51:02.0766 (UTC) FILETIME=[259980E0:01C9335A] X-Virus-Checked: Checked by ClamAV on apache.org Hi folks, I am new to this stuff, so please bear with me... I am working on some extensions to the APR transport in the MINA project. I was trying to use Socket.recvFrom() from the org.apache.tomcat.jni package and kept getting UnsatisfiedLink errors... I think I tracked the problem to a case mismatch between the java Socket.class and the native network.c files. The java code specifies a recvFrom() method (capital F) whereas the native code defines a recvfrom() function (all lowercase)... A quick rebuild of the tomcat sources after renaming the java method recvfrom() seems to have fixed my initial problem, as the UnsatisfiedLink error has disappeared... Was that really the (only) problem? I didn't find any other report on this issue, and assuming a bunch of people use the apr libraries, I am not quite sure if I have found a bug or not... Anyway, if that really is an issue, you may want to fix either the jave or the native code... cheers, Lorenz --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org