Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38825 - khacc cannot find qhacc's headers
Summary: khacc cannot find qhacc's headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-20 08:22 UTC by Charles Phoenix
Modified: 2004-03-09 13:49 UTC (History)
1 user (show)

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


Attachments
qhacc-2.9.8.ebuild (qhacc-2.9.8.ebuild,1012 bytes, text/plain)
2004-03-05 12:39 UTC, Charles Phoenix
Details
khacc-1.7.8.ebuild (khacc-1.7.8.ebuild,518 bytes, text/plain)
2004-03-05 12:43 UTC, Charles Phoenix
Details
khacc-1.7.8.ebuild w/warning message (khacc-1.7.8.ebuild,727 bytes, text/ebuild)
2004-03-06 18:32 UTC, Charles Phoenix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Phoenix 2004-01-20 08:22:55 UTC
This is the error...

QHacc headers not found! If you have installed QHacc in an
unusual place, please use the "--with-qhacc-includes=" option

make: *** No targets specified and no makefile found.  Stop.

!!! ERROR: app-office/khacc-1.7.2 failed.
!!! Function kde_src_compile, Line 123, Exitcode 2
!!! died running emake, kde_src_compile:make

The location the qhacc.ebuild put the headers is /usr/include

Not sure how to edit the khacc ebuild... how does that work when inherited?
Comment 1 Dominik Stadler (RETIRED) gentoo-dev 2004-03-03 17:01:05 UTC
I see the same here. Seems to be a problem in the ebuild, because if I add 

src_compile() {
    myconf="$myconf --with-qhacc-includes=/usr/include --with-qhacc-libs=/usr/lib"
    kde_src_compile
}

to the ebuild, the configure-script works, but then I get more errors during compiling:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -march=pentium3 -O3 -pipe -fomit-frame-pointer -fno-exceptions -fno-check-new  -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp
qhaccgraphpainters.cpp: In member function `virtual void
   QHaccPiePainter::isetData()':
qhaccgraphpainters.cpp:125: error: `XSACCTID' is not a member of type `QC'
qhaccreportwriter.cpp: In static member function `static QString
   QHaccReportWriter::makereport(int, QHacc*, unsigned int, QHaccTable*, const
   QDate&, const QDate&, QHaccTable*&)':
qhaccreportwriter.cpp:79: error: `XCOLTYPES' is not a member of type `QC'
qhaccreportwriter.cpp:79: error: `XCOLNAMES' is not a member of type `QC'
qhaccreportwriter.cpp:79: error: `XCOLS' is not a member of type `QC'
qhaccreportwriter.cpp:79: error: `XSID' is not a member of type `QC'
qhaccreportwriter.cpp:85: error: `XTDATE' is not a member of type `QC'
qhaccreportwriter.cpp:86: error: `XTDATE' is not a member of type `QC'
qhaccreportwriter.cpp:88: error: `XTLID' is not a member of type `QC'qhaccgraphpainters.cpp:125: error: `XTPAYEE' is not a member of type `QC'

...
Comment 2 Charles Phoenix 2004-03-04 20:38:51 UTC
For the web site: http://qhacc.sourceforge.net/

1) There was compile problems
2) khacc/qhacc seem to be released together thus a strong possiblity different minor version might clash
3) latest versions, as of 2004-02-15, are QHacc 2.9.8 and KHacc 1.7.8
4) both compiled from default settings and KHacc works; it has a problem with locale thou so only works from a terminal

Suggestion is to add both as unstable.
Comment 3 Charles Phoenix 2004-03-05 12:39:56 UTC
Created attachment 26911 [details]
qhacc-2.9.8.ebuild

based on previous ebuild, removed patches
Comment 4 Charles Phoenix 2004-03-05 12:43:08 UTC
Created attachment 26912 [details]
khacc-1.7.8.ebuild

still complains about dirs so added them manual
made explictly dependant on qhacc-2.9.8 since they are released together.
Comment 5 Charles Phoenix 2004-03-05 12:49:20 UTC
Since I am still new to this, I would like someone to "proof" the ebuilds.

FYI to anyone building this two errors I encountered

1) A KLocale warning on start up. This is related to Title being blank in the configuration setup.

2) Could be my setup but I could not launch either through "Run Command" or the given shortcut. Yet, I could start khacc through Konsole, Konqueror, or my own shortcut. Go figure. :)
Comment 6 Dominik Stadler (RETIRED) gentoo-dev 2004-03-06 13:35:12 UTC
I have now added the two new ebuilds to the CVS, thank you! Please try the new ebuilds and tell me if they work.

For the two issues you saw:

1. You may report a bug to the autors of the applications, as it seemst that this is not caused by the Gentoo-Packaging.

2. If I follow the suggestion that the ebuild prints out: "Copy the files in /etc/qhacc to ~/.qhacc, You have to run this program with the command: qhacc -f ~/.qhacc/" also for khacc, it works for me.
Comment 7 Charles Phoenix 2004-03-06 18:27:27 UTC
I can confirm it grabs from sourceforge and compiles on a mostly stable

System uname: 2.4.25_pre6-gss i686 AMD Athlon(tm) XP 2100+
Gentoo Base System version 1.4.3.13
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
with & without xml (forget the flag)
with mysql


As for 1) was just warning people already reported the bug

As for 2) it is part of the start up script 'khacc --gui' also works

Concerning 2) I added basically the same message that qhacc has to the khacc build.

I still think like a newbie sometimes and it is not obvious unless you think like a programmer and realize khacc uses the same data files as qhacc.

I have made note of this to the programmer.
Comment 8 Charles Phoenix 2004-03-06 18:32:24 UTC
Created attachment 26970 [details]
khacc-1.7.8.ebuild w/warning message

Same build as before with a postinst message matching qhacc, feel free to
re-edit
Comment 9 Dominik Stadler (RETIRED) gentoo-dev 2004-03-09 13:49:55 UTC
I have added the einfo to the ebuild.