Re: [rrd-users] RRDTool on OpenBSD 4.0

2007-04-15 Thread Andreas Maus
On Fri, Apr 13, 2007 at 04:34:16PM -0500, Anthony Miller wrote:
Hi Anthony.

 Can't load '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so'
 for module RRDs: Cannot load specified object at
 /usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm line 230.
  at /cgi-bin/mailgraph.cgi line 8
O.K. Thats not a problem of rrdtool. AFAIK the apache on OpenBSD
runs in a chroot()ed environment.

man 8 httpd on OpenBSD states that:

[... snipp ...]
 By default, httpd will chroot(2) to the ``ServerRoot'' path, serving doc-
 uments from the ``DocumentRoot'' path.  As a result of the default secure
 behaviour, httpd cannot access any objects outside ``ServerRoot'' - this
 security measure is taken in case httpd is compromised.  This is not
 without drawbacks, though:

 CGI programs may fail due to the limited environment available inside
 this chroot space.  ``UserDir'', of course, cannot access files outside
 the directory space.  Other modules will also have issues.
 ``DocumentRoot'' directories or any other files needed must be inside
 ``ServerRoot''.  For this to work, pathnames inside the configuration
 file do not need adjustment relative to ``ServerRoot''.  For this option
 to remain secure, it is important that no files or directories writable
 by user www or group www are created inside the ``ServerRoot''.
[... snipp ...]

So you have to setup a proper chroot() or - not recommended - disable
the chroot by starting httpd with the -u switch.

HTH,

Andreas.

-- 
Dipl.-Ing. Andreas Maus science+computing ag
System Administration   Hagellocher Weg 73
mail: [EMAIL PROTECTED]   72070 Tuebingen, Germany
tel.: +49 7071 9457 456 www.science-computing.de


pgpyMiHW3HKNS.pgp
Description: PGP signature
___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Re: [rrd-users] RRDTool on OpenBSD 4.0

2007-04-13 Thread Anthony Miller
On 4/12/07, Andreas Maus [EMAIL PROTECTED] wrote:
 On Wed, Apr 11, 2007 at 02:46:32PM -0500, Anthony Miller wrote:
  On 4/11/07, Andreas Maus [EMAIL PROTECTED] wrote:
   On Wed, Apr 11, 2007 at 08:42:02AM -0500, Anthony Miller wrote:
I tried this and basically got the same errors.  I don't have X
running on this server (and don't want to).   Here is the relevant
output of ./configure --disable-ruby --disable-python
  Yes,  I've install libart and png from pkg_add.  I needed these
  libraries for another piece of software.  In fact I think the version
  off rrdtool from the ports requires these as well.  As far as the
  freetype2 I have this directory on my system
  /usr/X11R6/include/freetype2/freetype with stuff in it.
 Hi Anthony.

 O.K. I was confused about the freetype2 stuff.
 You said that you don't _run_ X on the server
 and I read you don't have X _installed_ on the server ;)

 Can you check the presence of the header files and the
 libraries? The file config.log can be helpfull.

 Perhaps you can try to run configure with
 env LDFLAGS=-Lpath_to_your_libs CPPFLAGS=-Ipath_to_your_header_files ?

 I had no problem building and installint 1.2.19 (with --disable-python).

 (But you _have_ to uninstall the rrdtool from ports first.
 It messes up linking - see http://oss.oetiker.ch/rrdtool-trac/ticket/82).

 But I'm not running 4.0, I'm running from a daily system and ports CVS 
 snapshot
 (4.1-current) with the new Xenocara system.

 BTW. According to 
 http://archives.neohapsis.com/archives/openbsd/2007-01/1888.html
 there should be a newer version of rrdtool in the ports tree for 4.1.


 HTH,

 Andreas Maus.

 --
 Dipl.-Ing. Andreas Maus science+computing ag
 System Administration   Hagellocher Weg 73
 mail: [EMAIL PROTECTED]   72070 Tuebingen, Germany
 tel.: +49 7071 9457 456 www.science-computing.de


Okay I finally got it to compile.. Amazing what happens when you copy
and paste and don't pay attention.   Now my problem is that running
mailgraph in apache chroot I get the following error when I hit the
webpage.

Can't load '/usr/local/libdata/perl5/site_perl/i386-openbsd/auto/RRDs/RRDs.so'
for module RRDs: Cannot load specified object at
/usr/libdata/perl5/i386-openbsd/5.8.8/DynaLoader.pm line 230.
 at /cgi-bin/mailgraph.cgi line 8

___
rrd-users mailing list
[EMAIL PROTECTED]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


[rrd-users] RRDTool on OpenBSD 4.0

2007-04-10 Thread Anthony Miller
I'm having difficulty getting RRDTool 1.2 to configure/compile on
OpenBSD 4.0.  It claims it can't find libpng when I know the
package/port from OpenBSD is installed.   Anyone have any experience
with this?

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Re: [rrd-users] RRDTool on OpenBSD 4.0

2007-04-10 Thread jim steele
I was able to successfully build and install rrdtool 1.2.19 on OpenBSD
4.0 by exactly following the instructions in doc/rrdbuild.txt.
However, RRDs seems to be broken, I've tried installing on multiple
machines with multiple versions of OpenBSD and get the same results.
It works fine on my OS X machine.

If you get it installed and use RRDs could you let us know the results?

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


Re: [rrd-users] RRDTool on OpenBSD 4.0

2007-04-10 Thread Kevin Steves
On Tue, Apr 10, 2007 at 08:26:50AM -0500, Anthony Miller wrote:
: I'm having difficulty getting RRDTool 1.2 to configure/compile on
: OpenBSD 4.0.  It claims it can't find libpng when I know the
: package/port from OpenBSD is installed.   Anyone have any experience
: with this?

I just built 1.2.19 on 4.0 using:

export CFLAGS=-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 
-I/usr/local/include/libpng -I/usr/local/include/libart-2.0 -L/usr/local/lib 
-L/usr/X11R6/lib

./configure \
--disable-ruby --disable-python

gmake

___
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users