From: | Luojia Chen <Luojia(dot)Chen(at)Sun(dot)COM> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | pgsql-bugs(at)postgresql(dot)org, Rajesh Ramchandani <Rajesh(dot)Ramchandani(at)Sun(dot)COM> |
Subject: | Re: postgresql-8.0.0 beta5 & postgresql-7.4.6 can't compile |
Date: | 2004-12-20 23:54:50 |
Message-ID: | 41C7664A.2090903@Sun.COM |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Bruce Momjian wrote:
> Luojia Chen wrote:
>
>>Hi,
>>
>>Please see my inline reply.
>>
>>Bruce Momjian wrote:
>>
>>>Would you tell use what is on this line?
>>>
>>> /usr/include/sys/siginfo.h:259:
>>
>>ctid_t __ctid; /* contract ID */
>
>
> OK, do a 'grep' and find out what /usr/include/* file contains the
> definiation of ctid_t.
Hi,Bruce,
The ctid_t was defined in /usr/include/sys/types.h
typedef id_t ctid_t;
>>>Seems you need an extra #include for that platform. Try adding
>>>"#include <sys/types.h>" before the signal.h include and see if that
>>>helps.
>>
>>Adding the "#include <sys/types.h>" in the "/usr/include/sys/signal.h"
>>and "/usr/include/signal.h" doesn't help.
>
>
> OK.
>
>
>>>If your signal.h can't be used without a previous include being present
>>>it sounds like a bug in the operating system.
>>>
>>>My BSD system has for the signal manual page:
>>>
>>> #include <signal.h>
>>>
>>> void
>>> *signal(sig, func());
>>>
>>>Does your signal manual page have another #include at the top?
>>
>>No, I didn't see any other #include at the top for the manual page
>>It shows as:
>>-----------
>> #include <signal.h>
>>
>> void (*signal (int sig, void (*disp)(int)))(int);
>
>
> OK, try a simple test. Create a small C file that just includes
> signal.h and see if it compiles. If it doesn't, that manual page is
> wrong, at the least.
>
A simple test.c as bellow as you suggested:
#include <signal.h>
#include <stdio.h>
int main()
{
printf("just a test");
return 0;
}
It compiled and run well without any error.
Thanks,
Jenny
--
Jenny Chen
Software Engineer
Market Development Engineering
v-mail:(510) 574-7149
SUN Microsystems
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-12-21 01:54:23 | Re: posgresql 8.0 RC1 missing schemas |
Previous Message | Helena Lourenco | 2004-12-20 17:23:02 | unsubscribe pgsql-bugs |