Hi,
Last week I asked ;
I'm trying to compile qi serverver ( version 3.1.B7 ) but after a while I
get a message like
/usr/lib/cmplrs/cc/cfe: Error: ph.c, line 1045: storage size for 'junk'
isn't known
union wait junk;
---------------^
*** Exit 1
Stop.
*** Exit 1
Stop.
and stops. Do you have any idea ?
- o -
Thanx to :
Dave Newbold <phdmn_at_siva.bris.ac.uk>
Jim Neeland <neeland_at_madmax.hrl.hac.com>
Wayne Jennings <Wayne.Jennings_at_jcu.edu.au>
- o -
Dave Newbold <phdmn_at_siva.bris.ac.uk> said :
This is a well-known problem with the DU include files (or with people's code,
if you care to look at it that way). Having said that, I can't acutally
remember the solution... is this the one where you have to define the BSD flag?
Anyway, it's in the archives, almost certainly... but I'll have a look later
when I get the time. Try looking at the relevent system include file (wait.h?),
and you'll probably see that there's a compile-time flag that needs to be
set to include the definition of struct wait.
- o -
Jim Neeland <neeland_at_madmax.hrl.hac.com> said :
I got my qi to build successfully by the following:
In configs/defaults, I changed the line $Cflags from:
$Cflags = "-I$SrcDir/include ";
to
$Cflags = "-I$SrcDir/include -DWAIT_INT"; (added -DWAIT_INT)
Hope this is all you need.
- o -
Wayne Jennings <Wayne.Jennings_at_jcu.edu.au> said :
I think all you need to do is make sure that you have defined
-DWAIT_INT (for DEC UNIX) in your compiles. You do that when you go
through the configure process you add it in to the $Cflags
definition in the config file.
Can I also ask as to where you got the version of qi from. I am way
back in versions and I cannot find it at the original source
anymore.
>> I got it from ftp://nic.switch.ch/software/sources/network/qi
- o -
Yes when I added the -DWAIT_INT option its compiled easily.
Although it compiled easily unfortunately I havent succed in running ph. I
followed the steps given, and made a simple database, but when I make a
query by ph it always gives
Oops; lost connection to server.
message, and exits. However as far as I read from FAQ, this is a well
known event, and gives some clues to overcome it, but I havent succed in
yet, although I did each of them. Do you have any idea ?
Sincerely.
murat.
--
Murat Balci UNIX sys. Admin http://bornova.ege.edu.tr/~balci
s-mail : Ege Universitesi B.A.U.M - Bornova, IZMIR, TURKIYE.
e-mail : balci_at_bornova.ege.edu.tr Phone :+(90)(232)3881080-253
Received on Tue Jul 02 1996 - 08:49:13 NZST