From owner-freebsd-hackers Sat Apr 11 09:53:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA27454 for freebsd-hackers-outgoing; Sat, 11 Apr 1998 09:53:37 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA27422 for ; Sat, 11 Apr 1998 09:53:30 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id JAA03961; Sat, 11 Apr 1998 09:53:19 -0700 (PDT) (envelope-from jdp) Message-Id: <199804111653.JAA03961@austin.polstra.com> To: andreas@klemm.gtn.com Subject: Re: libqt-1.39 snap: ld: -L differences between Linux and FreeBSD ??? In-Reply-To: <19980410141324.56043@klemm.gtn.com> References: <19980410141324.56043@klemm.gtn.com> Organization: Polstra & Co., Seattle, WA Cc: hackers@FreeBSD.ORG Date: Sat, 11 Apr 1998 09:53:18 -0700 From: John Polstra Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [I have eliminated the cross post to -ports, since this is really about the linker, and cross-posting on the mailing lists is discouraged.] In article <19980410141324.56043@klemm.gtn.com>, Andreas Klemm wrote: > Have difficulties compiling the newest libqt snapshot. > The seem to have a ld(1), that is able to get a list of > directories (-L flags) first, which is valid for every > further -l command option ... That's what our ld does, too. > cd t1; gmake > gmake[2]: Entering directory > `/home/andreas/src/freefall/myports/work/qt/work/qt-1.39-19980406/tutorial/t1' > gcc -L/home/andreas/src/freefall/myports/work/qt/work/qt-1.39-19980406/lib > -L/usr/X11R6/lib -o t1 main.o -lqt -lX11 > ld: -lqt: no match > > Error is, the libqt isn't searched in > /home/andreas/src/freefall/myports/work/qt/work/qt-1.39-19980406/lib I am very skeptical that this is a ld bug. It should work, and has worked forever, if not longer. :-) There must be some other problem. What is the filename of the qt library? The linker will recognize "libqt.a" or "libqt.so.m.n" where m and n are version numbers. Are the permissions OK on the library? If you think the library is really installed correctly and has a valid name, then perhaps a ktrace on the ld command could shed some light on the problem. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message