Problems comping kdelibs & kdebase 3.0.2 on OpenBSD

"Thomas Delaet" <[email protected]>
Newsgroups gmane.comp.kde.non-linux
Message-ID <[email protected]>
Hi all,

I've got problems with both packages compiling on OpenBSD 3.1.
I'm trying to compile 3.0.2 from the sources I've downloaded from the main
kde website.

These are the steps I followed :

* I first installed qt 3.0.5 & arts 1.0.2 without any problems.

* Installing kdelibs

  These are the instructions I executed.
  ./configure --prefix=/usr/local/kde --with-extra-libs=/usr/local/lib
--with-extra-includes=/usr/local/include
--with-qt-dir=/usr/local/package/qt-x11-free &&
  gmake &&
  gmake install

  gmake ends with the following error :

g++ -O2 -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -o
.libs/kdeprint_cups.la.closure .libs/kdeprint_cups_la_closure.o -pthread
.libs/cupsinfos.o .libs/ipprequest.o .libs/kmcupsfactory.o
.libs/kmcupsjobmanager.o .libs/kmcupsmanager.o .libs/kmcupsuimanager.o
.libs/kmpropbanners.o .libs/kmwbanners.o .libs/kmwipp.o
.libs/kmwippselect.o .libs/kcupsprinterimpl.o .libs/kmcupsconfigwidget.o
.libs/kmconfigcups.o .libs/kmconfigcupsdir.o .libs/kmwippprinter.o
.libs/kmwfax.o .libs/kmwquota.o .libs/kmpropquota.o .libs/kmwusers.o
.libs/kmpropusers.o .libs/kpschedulepage.o .libs/image.o
.libs/imagepreview.o .libs/imageposition.o .libs/marginpreview.o
.libs/kpimagepage.o .libs/marginwidget.o .libs/kptextpage.o
.libs/kphpgl2page.o .libs/cupsaddsmb2.o .libs/kmwother.o
.libs/ippreportdlg.o .libs/kdeprint_cups_la_meta_unload.o 
-L/usr/X11R6/lib -L/usr/local/package/qt-x11-free/lib -L/usr/local/kde/lib
-L/usr/local/lib ../../kdeprint/management/.libs/libkdeprint_mana	gement.a
-L/usr/lib/gcc-lib/i386-unknown-openbsd3.1/2.95.3
/var/tmp/kdelibs-3.0.2/kdeprint/.libs/libkdeprint.a
/var/tmp/kdelibs-3.0.2/kparts/.libs/libkparts.a
/var/tmp/kdelibs-3.0.2/kio/.libs/libkio.a ../../kdeui/.libs/libkdeui.a
../../kio/.libs/libkio.a /var/tmp/kdelibs-3.0.2/kdeui/.libs/libkdeui.a
/var/tmp/kdelibs-3.0.2/kdefx/.libs/libkdefx.a -lXrender
/var/tmp/kdelibs-3.0.2/kdesu/.libs/libkdesu.a
/var/tmp/kdelibs-3.0.2/kdecore/.libs/libkdecore.a
/var/tmp/kdelibs-3.0.2/dcop/.libs/libDCOP.a -lqt-mt -lpng -lX11 -lSM -lICE
-lXext -lutil -lz -lstdc++ -lm -lgcc -lcups
../../kdecore/.libs/libkdefakes.so.4.0
.libs/kmwbanners.o: Definition of symbol `setComboItem(QComboBox *,
QString const &)' (multiply defined)
/var/tmp/kdelibs-3.0.2/kdeprint/.libs/libkdeprint.a(kpgeneralpage.o):
Definition of symbol `setComboItem(QComboBox *, QString const &)'
(multiply defined)
collect2: ld returned 1 exit status
gmake[4]: *** [kdeprint_cups.la.closure] Error 1
gmake[4]: Leaving directory `/var/tmp/kdelibs-3.0.2/kdeprint/cups'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/var/tmp/kdelibs-3.0.2/kdeprint/cups'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/kdelibs-3.0.2/kdeprint'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/kdelibs-3.0.2'
gmake: *** [all] Error 2

  So I presume there is a problem with recognizing my cups installation ...
  When I investigate the output of the ./configure script I can see the
following lines :
	<snip>
	checking for cupsServer in -lcups... yes
	checking for cups/cups.h... yes
	checking CUPS version >= 1.0109... "yes"
	<snip>
  I have cups 1.1.15 installed.

  When I add "--disable-cups" to the configure script and try compiling
again kdelibs compiled properly.
  But I'd like to have cups support in kde since this is the printing
system I use on my network.

* After I succesfully compiled kdelibs with the "--disable-cups" option I
tried to compile kdebase.

  Again, these are the instructions :
  ./configure --prefix=/usr/local/kde
--with-extra-libs=/usr/local/lib:/usr/local/kde/lib
--with-extra-includes=/usr/local/include:/usr/local/kde/include
--with-qt-dir=$global_package_dir/qt-x11-free \
	--without-xdmcp --without-ldap &&
  gmake &&
  gmake install

  Here gmake stops with the following message :

*** Warning: linker path does not have real file for library -lgcc.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libgcc and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/usr/lib/gcc-lib/i386-unknown-openbsd3.1/2.95.3/libgcc.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
g++ -shared   .libs/interfaces.o .libs/libkateinterfaces_la_meta_unload.o 
-L/usr/lib/gcc-lib/i386-unknown-openbsd3.1/2.95.3 -L/usr/X11R6/lib
-L/usr/local/package/qt-x11-free/lib -L/usr/local/kde/lib -L/usr/local/lib
/usr/local/kde/lib/libkatepartinterfaces.so.0.0 -lstdc++ -lm    -O2
-fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT
-DQT_NO_ASCII_CAST -pthread -o .libs/libkateinterfaces.so.0.0
ld: ../../interfaces/ktexteditor/.libs/libktexteditor.so.0.0: No such file
or directory
collect2: ld returned 1 exit status
gmake[3]: *** [libkateinterfaces.la] Error 1
gmake[3]: Leaving directory `/var/tmp/kdebase-3.0.2/kate/interfaces'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/var/tmp/kdebase-3.0.2/kate'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/kdebase-3.0.2'
gmake: *** [all] Error 2

When I do a search for this library (libktexteditor.so.0.0) I found it
installed in my /usr/local/kde/lib directory, so I can't see why kdebase
is searching for it in its own source-tree ...

I hope someone could give me a clue for one or both of these problems.

Thanks a lot in advance for any help

Kind Regards,

--Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.