On 10/13/05, Christian Jensen <[EMAIL PROTECTED]> wrote: > I'm having a project on my own. Trying to compile mythtv 0.18.1 from gentoo > build files. > I've made a lot of patches witch I will post to those who want them.. But I'm > still having trouble with a undefined reference. Here is the error: > > /usr/qt/3/bin/moc customrecord.h -o moc_customrecord.cppg++ -c -pipe > -march=i586 -include uclibc-hack.h -Wall -W -O3 -Wall -Wno-switch > -fomit-frame-pointer -D_REENTRANT -DMMX -Di386 -DUSING_IVTV -DUSING_XRANDR > -DUSING_XVMC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" > -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT > -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I../../libs/libmythtv -I../../libs > -I../../libs/libmyth -I/usr/include -I/usr/qt/3/include -o moc_customrecord.o > moc_customrecord.cpp > g++ -o mythfrontend main.o manualbox.o playbackbox.o viewscheduled.o > globalsettings.o manualschedule.o programrecpriority.o channelrecpriority.o > statusbox.o previousbox.o customrecord.o moc_manualbox.o moc_playbackbox.o > moc_viewscheduled.o moc_manualschedule.o moc_programrecpriority.o > moc_channelrecpriority.o moc_statusbox.o moc_previousbox.o moc_customrecord.o > -L/usr/qt/3/lib -L../../libs/libmyth -L../../libs/libmythtv > -L../../libs/libavcodec -L../../libs/libavformat -lmythtv-0.18.1 > -lmythavformat-0.18.1 -lmythavcodec-0.18.1 -lmyth-0.18.1 -lfreetype -lmp3lame > -lasound -L/usr/X11R6/lib -lXinerama -lXv -lXxf86vm -lI810XvMC -lXvMC -lGL > -lGLU -lqt-mt -lXext -lX11 -lm -lpthread > statusbox.o(.text+0x13893): In function `StatusBox::doMachineStatus()': > : undefined reference to `getloadavg' > collect2: ld returned 1 exit status > make[2]: *** [mythfrontend] Error 1 > make[2]: Leaving directory > `/var/tmp/portage/mythtv-0.18.1-r1/work/mythtv-0.18.1/programs/mythfrontend' > make[1]: *** [sub-mythfrontend] Error 2 > make[1]: Leaving directory > `/var/tmp/portage/mythtv-0.18.1-r1/work/mythtv-0.18.1/programs' > make: *** [sub-programs] Error 2 > > I've tried to do a search on getloadavg but I can't find any.. > Thanks > > Christian Jensen
I wrote a uClibc patch for Myth some time ago - much of it will likely need updating. Getloadavg was one of many things that Myth expects that is missing from uClibc. It's easy enough to write a quick and dirty getloadavg by reading the data from /proc with scanf, or you can remove the reference entirely (you'll only lose load average reporting for that system). -- Andrew Mahone andrew DOT mahone AT gmail DOT com _______________________________________________ mythtv-dev mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
