Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537 - koffice compile error
Summary: koffice compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-04 20:49 UTC by Mark Moss
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Moss 2002-02-04 20:49:04 UTC
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.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-02-12 12:36:10 UTC
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?
Comment 2 Dan Armak (RETIRED) gentoo-dev 2002-02-12 12:36:22 UTC
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?
Comment 3 Mark Moss 2002-02-12 17:44:28 UTC
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.
Comment 4 Dan Armak (RETIRED) gentoo-dev 2002-02-14 15:59:39 UTC
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).
Comment 5 Mark Moss 2002-02-14 21:32:58 UTC
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...).
Comment 6 Dan Armak (RETIRED) gentoo-dev 2002-02-15 07:36:28 UTC
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. 
Comment 7 Mark Moss 2002-02-15 21:38:59 UTC
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.
Comment 8 Dan Armak (RETIRED) gentoo-dev 2002-02-16 04:21:13 UTC
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.