Subject: [fwd] Bug in compiling kdevelop-1.0beta1 under NetBSD ?
To: netbsd-help <netbsd-help@netbsd.org>
From: Pierre Bourgin <Pierre.Bourgin@lip6.fr>
List: netbsd-help
Date: 08/03/1999 18:55:17
Just a tip (horrible hack ?) to build kdevelop-1.0beta1 under
NetBSD/i386.

If It can help people .... :)

Pierre Bourgin

/------ Pierre Bourgin -----------------\
| Universit=E9 de Paris VI=09=09|
| LIP6 - Network & Performance Group    |
|=09=09=09=09 =09|
| http://www-rp.lip6.fr/~bourgin=09|
\---------------------------------------/

---------- Forwarded message ----------
[...]

Hello,

I've got some problem to build Kdevelop under NetBSD, because of
automake/autoconf stuff, I think.

I found some solutions described below that make kdevelop to be
builded. Also, kdevelop seems to work well.

My system is NetBSD/i386 1.4I with egcs and is in ELF stuff.


1).
---

If I use the command=20
# ./configure --with-extra-libs=3D/usr/pkg/lib

it does not find libtiff.so (<- libtiff.so.3.4) that is in the
/usr/pkg/lib directory.

So the search of libs does not match with rpath, even 'rpath=3D
/usr/pkg/lib' is present on the linker command line to build the
executable 'kdevelop'.

As well, the libpng is neither found, but exists in /usr/pkg/lib
too.

2).
---

On my system, libdl does not exist (on Linux RedHat, it seems
to come with the glibc package). I think ths stuff it contains
must be in another 'standard' lib of my system.

So configure does not find it, but the linker step use it anyway
(-ldl) !

It can't build because even configure does not find 'libdl', the
command line for the link of kdevelop use '-ldl'.

Solution
--------

I edited the kdeveleop/Makefile file and replaced '-ldl' with
'-ltiff -lpng -lz'.

With this, It's compiling, and kdevelop seems to work well.

Regards,

Pierre Bourgin