Subject: Re: kdebase2 link error
To: None <jnr@po.cwru.edu>
From: Greg Oster <oster@cs.usask.ca>
List: netbsd-help
Date: 10/17/2001 20:40:22
"Joseph N Reed" writes:
> hi all,
> 
> i'm currently running NetBSD 1.5.1 on an i386 and tried installing the curren
> t
> kde2 (v2.2.1) from /usr/pkgsrc/x11/kde2  however, when it gets to the kdebase
> 2
> package, i get the following errors:
> 
> /usr/lib/crt0.o: In function `___start':
> /usr/lib/crt0.o(.text+0xc1): undefined reference to 'main'
> collect2: ld returned 1 exit status
> gmake[3]: *** [kicker] Error 1
> gmake[3]: Leaving directory `/usr/tmp/x11/kdebase2/work/kdebase-2.2.1/kicker'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/usr/tmp/x11/kdebase2/work/kdebase-2.2.1/kicker'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/tmp/x11/kdebase2/work/kdebase-2.2.1/'
> gmake: *** [all-recursive-am] Error 1
> 
> did i miss something in the upgrade?  or is this pkg broken?
> if i missed something, what?

Something is unhappy... for me, I needed to:
1) cd pkgsrc/x11/kdebase2/work/kdebase-2.2.1/kicker
2) edit 'Makefile', changing:

 kicker_LDADD = $(LDADD)

to
 
 kicker_LDADD = kicker.la

3) do a 'make'.  Discover it gets further, but now dies in 'proxy'.
4) 'cd proxy'
5) 'make appletproxy.moc'
6) 'make extensionproxy.moc'
7) 'cd ../'
8) 'make'.  Discover it dies in 'taskmanager' now..
9) 'cd taskmanager'
10) 'make taskmanager.moc'
11) 'cd ..'
12) 'make'
13) discover more problems similar to above. repeat similar steps till all of 
kicker is built.  Somewhere along the way a 'make conf.h' is needed too...  

There are probably 20-30 .moc files that need to get built.. I'm guessing 
there is some trivial change needed to the automated Makefile creation, but
I don't pretend to (nor want to!) understand KDE Makefiles :)

[as of right now the rest of kdebase2 is building.. with any luck I'll have it 
all built by sleeptime :) ]

Later...

Greg Oster