Re: Problem with gettid() on CentOS 5/gcc 4.1.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Apr 02, 2007 at 11:58:28AM -0400, Alfred von Campe wrote:
> I can't get the simple program below to compile on CentOS 5 beta.  It compiles
> (and runs) just fine on CentOS 4.4, and I'm using gettid() as described in the
> man page.  I wonder if this is a problem with RHEL 5 as well, but I don't have a
> system to test on.  I also wonder if this is a gcc 4.1.1 issue or something
> missing in CentOS 5.
> 
> The issue is that the _syscall0 macro is not defined anywhere.  If I copy and
> paste the following definition for _syscall0 from a CentOS 4.4 system into the
> test program, it works just fine:
> 
>   #define _syscall0(type,name) \
>   type name(void) \
>   {\
>       return syscall(__NR_##name);\
>   }
> 
> Has anyone else run into this problem?
> 
> Alfred

I've got an APP at work that will need to be working on RH5 and possibly
Centos 5 that uses gettid(), so I'm going to hang onto your posting just
in case it is a problem in the real release. Haven't tried RH5 yet, but
I will be (and Centos, too, once it comes out). 

Thanks for the heads-up.

-- 
---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
               But God demonstrates his own love for us in this: 
                         While we were still sinners, 
                              Christ died for us.
------------------------------- Romans 5:8 (niv) ------------------------------

Attachment: pgp3njOzUm3Ix.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux