When I tried to emerge app-office/koffice, I received the following error during compilation: make[2]: Entering directory `/var/tmp/portage/koffice-1.1.1/work/koffice-1.1.1/qt3stuff' c++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/kde/2/include -I/usr/qt/2/include -I/usr/X11R6/include -DNDEBUG -O2 -mcpu=i686 -march=i686 -O3 -pipe -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -UQT_NO_COMPAT -c libqt3stuff_la_closure.cpp -fPIC -DPIC -o .libs/libqt3stuff_la_closure.o c++ -DNDEBUG -O2 -mcpu=i686 -march=i686 -O3 -pipe -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -UQT_NO_COMPAT -o libqt3stuff.la.closure .libs/libqt3stuff_la_closure.o .libs/qcomplextext.o .libs/qrichtext.o .libs/qrichtext_p.o .libs/qstylesheet.o .libs/mocstuff.o -L/usr/X11R6/lib -L/usr/qt/2/lib -L/usr/kde/2/lib -L/usr/lib/python2.2/config -lqt -lpng /usr/lib/librpm.so -L/usr/local/lib -ldb1 -lz -lbz2 /usr/lib/libjpeg.so -lXext -lX11 -lresolv -lSM -lICE /usr/lib/librpm.so: undefined reference to `poptParseArgvString' collect2: ld returned 1 exit status I do have app-arch/rpm-3.0.6-r1 installed.
I'm sorry I haven't paid this any attention for so long. I'll try to fix it asap. Please provide me with any info you think might help. Specifically, what are your USE flags?
I'm sorry I haven't paid this any attention for so long. I'll try to fix it asap.Please provide me with any info you think might help. Specifically, what are your USE flags?
Here are the use and compile flags from my make.conf: USE="slang readline gpm berkdb gdbm tcpd pam libwww ssl alsa nls mitshm perl python esd gif sdl vorbis ogg gnome gtk X qt kde motif opengl mozilla objprelink mmx tcltk java guile cups lame fbcon ggi" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=i686 -march=i686 -O3 -pipe" CXXFLAGS="-mcpu=i686 -march=i686 -O3 -pipe" I'll be happy to provide any other details you might find helpful.
I am unable to find any connection between koffice and rpm/librpm. A grep rpm of the full koffice sources has no results. Let's try to track this down...1. If you haven't yet, try remerging rpm and then koffice.2. Try searching for "rpm" in your own koffice sources (/var/tmp/portage/koffice-1.1.1/work/koffice-1.1.1).
I grepped the work directory (as it appears immediatly after failing) and couldn't find "librpm" or "lrpm" in any of the ASCII files (It does show up in a shared library in work/koffice-1.1.1/kchart/kdchart/.libs/). I dug around a little bin in work/koffice-1.1.1/qt3stuff/Makefile, and it appears the offending /usr/lib/librpm.so comes from the ${LIBPNG} from "LIB_QT = -lqt $(LIBPNG) $(LIBJPEG) -lxext $(LIB_X11) $(LIBSM)" on line 154 of the work/koffice-1.1.1/qt3stuff/Makefile. When I remove $(LIBPNG), /usr/lib/librpm.so disappears from the command line. If I replace $(LIBPNG) with -lpng -lm -lz (which $(LIBPNG) is defined as on line 121 of the makefile), /usr/lib/librpm.so returns. I couldn't find anything else in the makefile which would explain where /usr/lib/librpm.so is coming from (but then again, I'm not exacltly a makefile guru...).
My Makefile looks exactly the same as the one you describe - libpng = -lpng -lm -lz etc. I'm at a loss to understand where the librpm thing could be coming from. I'm afraid I;ve run out of ideas to diagnose this, so let's just try to fix it (since there've been no other reports). Unmerge rpm, remerge libpng, and try to emere koffice again. Hopefully it won't pull librpm in anymore. If it works, merge rpm again.
I unmerged rpm and libpng and then remerged libpng, and the /usr/bin/librpm.so in the compiler command line went away. I remerged rpm and was then able to merge koffice successfully. (There was no change when I unmerged and remerged librpm yesterday.) I don't have any idea why compilation succeeds now, though.
This looks like one of those one-time bugs which go away if you remerge the right thing, and are very difficult to track down. Glad we're done with it; I'm closing the bug.