From owner-freebsd-questions@FreeBSD.ORG Mon Mar 15 22:36:00 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96B0916A4CE for ; Mon, 15 Mar 2004 22:36:00 -0800 (PST) Received: from hotmail.com (sea1-f22.sea1.hotmail.com [207.68.163.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76CF343D1D for ; Mon, 15 Mar 2004 22:36:00 -0800 (PST) (envelope-from crollins666@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 15 Mar 2004 22:36:00 -0800 Received: from 216.19.22.118 by sea1fd.sea1.hotmail.msn.com with HTTP; Tue, 16 Mar 2004 06:35:59 GMT X-Originating-IP: [216.19.22.118] X-Originating-Email: [crollins666@hotmail.com] X-Sender: crollins666@hotmail.com From: "clayton rollins" To: freebsd-questions@freebsd.org Date: Tue, 16 Mar 2004 06:35:59 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 16 Mar 2004 06:36:00.0258 (UTC) FILETIME=[F224E620:01C40B20] Subject: porting julian time lib.; fortran errors X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 06:36:00 -0000 Hi List, I'm having some trouble getting some third-party software to compile on freebsd, and was hoping some fortran buff out there had time to enlighten me. (I know no fortran.) The specific software is the PDS Rings Node's Julian Library, version 1.3.2. overview: http://ringmaster.arc.nasa.gov/toolkits/julian_132_html/aareadme.html download: http://ringmaster.arc.nasa.gov/toolkits/order.html (Note that ordering requires no personal information or money, and goes through pretty fast.) The errors I get when compiling initially are only in one file, and are as follows: fjulian.for: In function `fjul_parsedt': fjulian.for:120: FJul_ParseDT = GJUL_PARSEDT(array1, array2, dutc, secs) 1 2 Type disagreement between expressions at (1) and (2) (happens 3x) I'm not entirely code illiterate, and looking at the code it would seem this is caused by the following lines: integer*4 function FJul_ParseDT(string, pref, dutc, secs) logical*4 GJul_ParseDT Changing the two declarations to similar types caused the first error to go away, however many undefined reference errors are given during linking. Sample: /tmp/cctHLBe5.o(.text+0x2d7): undefined reference to `fjul_taiofdutc__' All of these errors seem to occur where the C code is to link in to the fortran code, making me believe the symbols generated by the two are incompatible somehow. Seeing as how f77 and gcc are part of the same general package, though, this seems unlikely. Anyone have any ideas? Thanks, Clayton _________________________________________________________________ Find things fast with the new MSN Toolbar – includes FREE pop-up blocking! http://clk.atdmt.com/AVE/go/onm00200414ave/direct/01/