Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2001 13:48:54 -0500
From:      Gunther Schadow <gunther@aurora.regenstrief.org>
To:        PicoBSD List <freebsd-small@FreeBSD.ORG>
Subject:   crunchgen issue ...
Message-ID:  <3B782116.3010904@aurora.regenstrief.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B782116.3010904>