OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: ports in 3.6

From: Otto Moerbeek (ottodrijf.net)
Date: Tue Nov 02 2004 - 05:47:35 CST


On Tue, 2 Nov 2004, Stefan Castille wrote:

> Since I got a few replies claiming that I simply did not
> compile it on a 3.6 system I'll clarify a bit.
>
> 1) I compiled the port on a system installed from the 3.6
> CD.
> 2) I try to run it on a system installed from the 3.6 CD.
> 3) as a check and since the packages are now available on
> FTP i tried the package from ftp.openbsd.org (after
> pkg_delete of the old one) and i get exactly the same error.
>
> So again I would like help so I can solve this myself. I
> simply don't know where this library is referred to in the
> source or makefiles. As stated before a grep in the ports
> directory for that specific library does not give anything.

What does ldd /usr/local/bin/rrdtool show? I get the output below on a
-current system.

        -Otto

[ottopepper:36]$ sudo pkg_add
ftp://ftp.calyx.nl/pub/OpenBSD/3.6/packages/i38>
Adding rrdtool-1.0.48:gd-1.8.3
Adding rrdtool-1.0.48
rrdtool-1.0.48 -------------------
| Extra documentation has been installed in plain text, html, and
| pod formats. It can be located in /usr/local/share/doc/rrdtool.
|
| Some examples and contributed programs have also been installed.
| One particular program is log2rrd, which can convert MRTG log files
| to round robin format for use by rrdtool. These can be found in
| /usr/local/share/examples/rrdtool.
[ottopepper:37]$ ldd /usr/local/bin/rrdtool
/usr/local/bin/rrdtool:
        Start End Type Ref Name
        00000000 00000000 exe 1 /usr/local/bin/rrdtool
        06af6000 26aff000 rlib 1 /usr/local/lib/librrd.so.0.0
        0b159000 2b160000 rlib 2 /usr/local/lib/libpng.so.4.0
        07923000 2792b000 rlib 2 /usr/lib/libz.so.4.0
        092d7000 292fa000 rlib 2 /usr/local/lib/libgd.so.18.3
        061d0000 261d6000 rlib 2 /usr/local/lib/libjpeg.so.62.0
        0afee000 2aff3000 rlib 2 /usr/local/lib/libttf.so.1.3
        0d9df000 2d9e6000 rlib 3 /usr/lib/libm.so.2.0
        0449f000 244d5000 rlib 1 /usr/lib/libc.so.34.2
        0788e000 0788e000 rtld 1 /usr/libexec/ld.so
[ottopepper:38]$ rrdtool
RRDtool 1.0.48 Copyright 1997-2004 by Tobias Oetiker <tobioetiker.ch>

Usage: rrdtool [options] command command_options

Valid commands: create, update, graph, dump, restore,
                last, info, fetch, tune, resize, xport

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

[ottopepper:39]$

>
> Thanks in advance,
> Stefan
>
> -----Original Message-----
> From: owner-miscopenbsd.org
> [mailto:owner-miscopenbsd.org]On Behalf Of
> Stefan Castille
> Sent: vrijdag 29 oktober 2004 11:21
> To: miscopenbsd
> Subject: ports in 3.6
>
>
> Dear list,
>
> I'm trying to get rrdtool to run on a new 3.6 installation.
> To do this
> I got the ports from cvs (cvs get -rOPENBSD_3_6 ports),
> compiled the
> port in a package on a pc for compiling. Then i installed
> the package
> on a different cleanly installed 3.6 system.
>
> When i try to run i get the
> /usr/local/bin/rrdtool: can't load library 'libm.so.1.0'
> errors.
> I checked and the system has libm.so.2.0 so I guess the port
> is still
> compiled with the old libraries. (strange since i did
> compile the ports
> on a 3.6 system)
>
> Can anyone give me a pointer on what to change so it uses
> the correct library?
> I already did a (recursive) grep in the ports directory for
> the libm.so.1.0 but
> it doesnt appear anywhere.
>
> Thanks