From owner-freebsd-questions Wed Dec 2 15:35:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA20398 for freebsd-questions-outgoing; Wed, 2 Dec 1998 15:35:47 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from qix.jmz.org (hibou.obs-besancon.fr [193.52.184.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA20387 for ; Wed, 2 Dec 1998 15:35:41 -0800 (PST) (envelope-from jmz@FreeBSD.ORG) Received: (from jmz@localhost) by qix.jmz.org (8.9.1/8.8.7) id AAA09958; Thu, 3 Dec 1998 00:36:35 +0100 (MET) Date: Thu, 3 Dec 1998 00:36:35 +0100 (MET) Message-Id: <199812022336.AAA09958@qix.jmz.org> X-Authentication-Warning: qix.jmz.org: jmz set sender to jmz@qix using -f From: Jean-Marc Zucconi To: t.e.luginbuhl@ieee.org CC: questions@FreeBSD.ORG In-reply-to: <3665CA3F.259C3CB@science-guy.npt.nuwc.navy.mil> (message from Tod Luginbuhl on Wed, 02 Dec 1998 18:16:15 -0500) Subject: Re: Calling LAPACK library from C in 3.0-RELEASE X-Mailer: Emacs Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> Tod Luginbuhl writes: > This is a multi-part message in MIME format. > --------------8B5D41F2AA025F36B7C1DB63 > Content-Type: text/plain; charset=us-ascii > Content-Transfer-Encoding: 7bit > Hi, > I have one machine running 2.2.7-STABLE (last installworld on 25 Sept), > and on this maching, I have no problem calling the LAPACK library from C > (LAPACK etc built using ports). I recently built a two processor system > using the ASUS P2B-DS mother board which runs 3.0-RELEASE from the > Walnut Creek CDs. When I try to compile a program that works in STABLE > under 3.0-RELEASE, I get the following error message: > cc -g -L/usr/local/lib -o stupid stupid.o -lm -lblas -llapack -lf2c > /usr/lib/libf2c.so: undefined reference to `MAIN__' > *** Error code 1 > Does anyone have any ideas why this is happening and how I might correct > it? A source list for simple C program that demonstrates the problem > is given below. I've also included the makefile. Please email me > directly because I stopped subscribing to this list (when I finish my > dissertation, I'll subscribe again). Thanks! This is fixed in -current. Add the following to your C code (or add it to libf2c): MAIN__ () {} Jean-Marc -- Jean-Marc Zucconi PGP Key: finger jmz@FreeBSD.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message