• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

problems with creating bind9 under a jail (make: don't know how to make /usr/jail/bin)

xyyz

Diamond Member
i'm following the following tutorial to create bind9 under a jail:

http://www.onlamp.com/pub/a/bsd/2003/09/04/jails.html

in doing so, i'm getting the following error:

-------------------
# make world DESTDIR=/usr/jail/bind9

--------------------------------------------------------------
>>> Building an up-to-date make(1)
--------------------------------------------------------------
make: don't know how to make /usr/jail/bind9/usr/lib/libc.a. Stop
*** Error code 2

Stop in /usr******.
*** Error code 1

Stop in /usr******.
------------------------

i've tried googling this, and i haven't come up with any workable
solutions. i've cvsup'd the latest stable sources, and i've retried after
doing a "make clean DESTDIR=..." (i don't know if this does anything to
help), but i run into the same issue.

i'm using 6.1 on a Sparc64 machine (an ultra5) that was booted from a
CD, but pulled files from an FTP server.

any help will be greatly appreciated
 
Well, I certainly don't know the answer but I notice you're working from a 3-year old tutorial and using a different major release of the operating system. Would it not be more practical to find some more recent documentation or try it out on something 5.x?
 
the process is about the same be it an older version or a new one. as for v5, i had nothing but problems when it came to my sparc machines and version 5. if all else, fails, i'll give it a thought, but i rather solve the problem as it exists at the moment.
 
fair enough, but bind wasn't all i wanted to put inside it's own jail. i'm planning on doing the same thing for snort/acid/mysql, etc. i'd like to know how to solve or work around this problem.
 
Originally posted by: xyyz
i'd like to know how to solve or work around this problem.
You don't, because it's not a problem. Bind isn't meant to be built in the way that you're doing it. If some other program is, then figure it out then.

 
maybe my title is misleading, and i'll edit it.

first of all, i was not making bind. notice how the command was "make world..." (in /usr******) and not "make install clean" in the bind9 ports directory.

i was making a jail environment. the fact i have a directory called bind9 has no impact on anything. i could have just as well called it /usr/black/and/blue/elephant. the goal was to have bind as a jailed process, AFTER the jail was constructed.

there are those who still advocate placing bind inside of a jailed process, even though it's chrooted, and it works perfectly fine.

you've given your views, and while i appreciate them, they don't solve my problem.

now, does anyone else know how to solve this jail problem?

 
Originally posted by: xyyz
i was making a jail environment. the fact i have a directory called bind9 has no impact on anything.
Ah... true enough. Sorry, I haven't used FreeBSD in quite a while. Too many idiosyncrasies, like these in fact.

Here's what appears to be a more recent wiki page on jails. The commands seem slightly different than you're using. Notably, they're not passing $DESTDIR until the install.
 
Shouldn't it be:
DESTDIR=/usr/jail/ftp make world
?

I'm pretty sure that's how I setup my jail (it's been a while though, 6.1-RC1, and I haven't really used it...).

EDIT: I just started another jail build and everything seems to be going pretty well. And quick...
 
hmmm, i was wondering when you'd chime in.

like clever's link says, one way is to declare the variable and then just do a make world, but i haven't tried it your way. gonna do it now. let's see what happens.

and nopes... it didn't work either.
 
Something's wrong with your setup or something's changed since 6.1-RC1. I've tried it both ways and it works just fine for me.
 
Back
Top