From owner-freebsd-current Tue Jun 2 18:03:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA19007 for freebsd-current-outgoing; Tue, 2 Jun 1998 18:03:58 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.westbend.net (ns1.westbend.net [207.217.224.194]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA18988 for ; Tue, 2 Jun 1998 18:03:51 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from admin (admin.westbend.net [207.217.224.195]) by mail.westbend.net (8.8.8/8.8.8) with SMTP id UAA13793; Tue, 2 Jun 1998 20:03:21 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <00e001bd8e8b$66ef5080$c3e0d9cf@admin.westbend.net> From: "Scot W. Hetzel" To: "Mike Smith" Cc: Subject: Re: ppp cannot find libalias Date: Tue, 2 Jun 1998 20:03:21 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Mike Smith >Unfortunately I can't use your diff as-is as it appears to have suffered >catastrophic whitespace damage, but I take your point. > I was being lazy, I edited your code directly in the mail program. >Are there any disagreements with the basic idea, ie. use rtfindfile() >to locate files requested by dlopen() if they do not contain path >components? > No objection if it works. But, when I compile I get a warning for rtfindfile, as shown below: >> + /* If path is not qualified, search for it on the standard searchpath */ >> + name = (strchr(path, '/') != NULL) ? strdup(path) : rtfindfile(path); >> + cc -O2 -pipe -I/usr/src/libexec/rtld-aout -I/usr/src/libexec/rtld-aout/i386 -fpic -fno-function-cse -DRTLD -Wall -c /usr/src/libexec/rtld-aout/rtld.c /usr/src/libexec/rtld-aout/rtld.c: In function `__dlopen': /usr/src/libexec/rtld-aout/rtld.c:1913: warning: passing arg 1 of `rtfindfile' discards `const' from pointer target type cc -O2 -pipe -I/usr/src/libexec/rtld-aout -I/usr/src/libexec/rtld-aout/i386 -fpic -fno-function-cse -DRTLD -Wall -nostdlib -Wl,-Bshareable,-Bsymbolic ,-assert,nosymbolic -o ld.so mdprologue.o rtld.o shlib.o md.o upport.o -lc_pic -lgcc_pic Scot NOTE: rtld.c (v1.53) has moved to libexec/rtld-aout. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message