From owner-freebsd-small Mon Aug 13 11:49: 1 2001 Delivered-To: freebsd-small@freebsd.org Received: from rgmail.regenstrief.org (rgmail.regenstrief.org [134.68.31.197]) by hub.freebsd.org (Postfix) with ESMTP id 80B1737B40B for ; Mon, 13 Aug 2001 11:48:57 -0700 (PDT) (envelope-from gunther@aurora.regenstrief.org) Received: from aurora.regenstrief.org ([172.31.26.4]) by rgmail.regenstrief.org (8.11.0/8.8.7) with ESMTP id f7DItPj07354 for ; Mon, 13 Aug 2001 13:55:25 -0500 Message-ID: <3B782116.3010904@aurora.regenstrief.org> Date: Mon, 13 Aug 2001 13:48:54 -0500 From: Gunther Schadow Organization: Regenstrief Institute for Health Care User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us MIME-Version: 1.0 To: PicoBSD List Subject: crunchgen issue ... Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I'm using crunchgen extensively to produce my small VPN boxes. Works very well. However, there's one thing that repeatedly bugs me. Some programs will have their private library of utilities that needs to be linked too and that is difficult. As an example suppose you want to add "ntpdate" into your crunched binary. The ntp-related programs all want their private utility library libntp.a linked with them. This library is not installed, so I add it to crunch.conf using a "libs" line like this: libs /usr/obj/usr/src/usr.sbin/ntp/libntp/libntp.a that will sometimes work just fine; but sometimes, as in this case, it will fail because of that libntp.a backwards referencing symbols that are found in ntpdate.lo. All sorts of other problems can happen too, like symbol name conflicts (e.g., many such things may use a global variable such as "debug"). The only proper place to link such private utility libraries would be in the partial link that produces the ntpdate.lo object. So, what crunchgen is missing is a conf option like this: special progname libs libspec ... so one could say: special ntpdate libs /usr/obj/usr/src/usr.sbin/ntp/libntp/libntp.a and that would add the additional library to the makefile. Of course it would be more elegant to have crunchgen guess that long path that leads up to libntp.a, but that's refinement. At least something better than having to specify the *entire* objpaths would be needed. Thanks, -Gunther -- Gunther Schadow, M.D., Ph.D. gschadow@regenstrief.org Medical Information Scientist Regenstrief Institute for Health Care Adjunct Assistant Professor Indiana University School of Medicine tel:1(317)630-7960 http://aurora.regenstrief.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message