Opened 16 years ago

Closed 16 years ago

#716 closed Bugs (Fixed)

Can't compile on NetBSD -- documentation not available

Reported by: sirrandolf Owned by: nobody
Milestone: Component: None
Version: None Severity:
Keywords: Cc:

Description

Under step 2 on the following web page, most of the 
links lead to "404 Not found" pages, thus preventing me 
from getting Boost to work properly:

http://www.boost.org/more/getting_started.html

I need to get Boost on NetBSD v3.0 so that I can 
compile PowerDNS ( http://www.powerdns.com/ ).

Since I also couldn't even find copies of the 
aforementioned web pages on The Way Back Machine ( 
http://www.archive.org/ ), I'm hoping that someone can 
restore them from a backup or has a way of regenerating 
this information somehow.

Thanks in advance.

Change History (7)

comment:1 by sirrandolf, 16 years ago

Logged In: YES 
user_id=621016

(I assigned a priority of 9 because this documentation is 
required in order to get Boost working.)

comment:2 by John Maddock, 16 years ago

Logged In: YES 
user_id=14804

The only information missing is how to build bjam from
source: assuming there isn't a prebuilt version on sourceforge?

If so, then cd into boost-path/tools/build/jam_src and invoke:

./build.sh

the bjam executable will under bin.something/bjam, either
create a temporary alias to it, or install it somewhere in
your path.  Then follow steps 3 onwards in the getting
started guide.

HTH, John Maddock.

comment:3 by joaquintides, 16 years ago

Logged In: YES 
user_id=911241

PowerDNS docs seem to indicate that you don't need to build
Boost after all, since only Boost headers are required.
Take a look at the end of section D.1 of

http://downloads.powerdns.com/documentation/html/compiling-
powerdns.html

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

comment:4 by sirrandolf, 16 years ago

Logged In: YES 
user_id=621016

That URI you provided takes me to the same web page I've 
been following.  I've already tried using the CXXFLAGS=I... 
command prior to running ./configure, but all I get is this 
at the point of failure:

[sNip]
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking boost/shared_ptr.hpp usability... no
checking boost/shared_ptr.hpp presence... no
checking for boost/shared_ptr.hpp... no
Missing boost - please install Boost packages or see http://
doc.powerdns.com/compiling-powerdns.html

Your suggestion for building jam_src seemed to work 
(although I have no way of testing it).  This had no effect 
on the compilation of PowerDNS though.

Some salesperson at PowerDNS indicated that I need to 
purchase support.  All I want to do is evaluate their 
product, but it won't compile (this is a pre-sales issue).  
I don't mind contributing to a project that works, but 
that's the key -- I must be able to get it to work by 
following the installation instructions.

Sorry, I'm frustrated because everything else is working 
just fine for me (e.g., Apache HTTPd server, mod_perl, 
PostgreSQL, and much more).  The difference here is that the 
web site for boost produces "404 Not found" errors, so I 
feel like I'm stuck.

I really do appreciate your help, and look forward to 
getting this working.

comment:5 by Daniel James, 16 years ago

Logged In: YES 
user_id=137056

I've fixed the links. The problem was that changes from the
next version of boost were accidently uploaded.

comment:6 by Daniel James, 16 years ago

Logged In: YES 
user_id=137056

Oh, looking at the messages below, this won't help much. The
problem in that PowerDNS's build system isn't finding boost.
In their instructions they're setting CXXFLAGS in the same
command as running ./configure - if you're doing this:

$ CXXFLAGS=-I/home/bert/download/boost_1_33_0
$ ./configure

That won't work, as CXXFLAGS is only set for the duration of
a single command, so either do:

$ CXXFLAGS=-I/home/bert/download/boost_1_33_0 ./configure

or to set CXXFLAGS for the current session:

$ export CXXFLAGS=-I/home/bert/download/boost_1_33_0
$ ./configure

If you want to set CXXFLAGS permanently that'll depend on
your shell. For bash have to edit .bashrc or .bash_profile
(Sorry, I'm not sure which) or something similar for other
shells.

comment:7 by sirrandolf, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=621016

[I agree that this issue deserves its "fixed" resolution 
status, and I'm confirming this by changing its status to 
"closed."]

Thank you very much!  Putting both those commands on a 
single command-line resulted in a successful compile of 
PowerDNS (which depends on Boost).

I appreciate your quick response, and also fast action on 
correcting the web site (I will take a look at it later; 
hopefully sometime this morning).

Although I'm still fairly new to NetBSD (and Unix in 
general), I'm finding that people are generally very 
helpful, and I really appreciate your help.  I firmly 
believe that projects, such as this one, which take 
questions seriously and provide helpful answers (as you 
most definitely have), have one of the more important 
ingredients for long term success.

Thanks again.

Note: See TracTickets for help on using tickets.