[uClibc] Re: shm funkiness

Erik Andersen andersen at codepoet.org
Sat Aug 2 21:25:47 UTC 2003


On Sat Aug 02, 2003 at 01:32:29PM -0700, David Wuertele wrote:
> Erik> Yep.  If you grab the latest and greatest from CVS, it should
> Erik> now be working,
> 
> I've grabbed the latest uclibc snapshot from CVS, and built the entire
> system from scratch.  Other than placing my #include <sys/shm.h> in an
> extern "C" block, I made no other changes.  Here is my test program
> output, and ipcs output as well:

I'm not seeing that...  Did you do a 'make clean', and
then a 'make install' after grabbing the latest?  I bet
you still have the old include/bits/shm.h symlink intact,


../../extra/gcc-uClibc/i386-uclibc-gcc --uclibc-use-build-dir  -Wall -Wstrict-prototypes -Os   -c
shmem.c -o shmem.o
../../extra/gcc-uClibc/i386-uclibc-gcc --uclibc-use-build-dir -s -Wl,-warn-common shmem.o -o shmem 
strip -x -R .note -R .comment shmem
sudo ./shmem 1234
id = 1934753797
        shm_perm.uid = 0
        shm_perm.gid = 0
        shm_perm.cuid = 0
        shm_perm.cgid = 0
        shm_perm.mode = 0
        shm_segsz = 4096
        shm_lpid = 9627
        shm_cpid = 9627
        shm_nattch = 0
        shm_atime = Sat Aug  2 21:22:29 2003
        shm_dtime = Sat Aug  2 21:22:29 2003
        shm_ctime = Sat Aug  2 21:22:29 2003
Mapping...      shm_perm.uid = 0
        shm_perm.gid = 0
        shm_perm.cuid = 0
        shm_perm.cgid = 0
        shm_perm.mode = 0
        shm_segsz = 4096
        shm_lpid = 9649
        shm_cpid = 9627
        shm_nattch = 1
        shm_atime = Sat Aug  2 21:22:36 2003
        shm_dtime = Sat Aug  2 21:22:29 2003
        shm_ctime = Sat Aug  2 21:22:29 2003
Unmapping...    shm_perm.uid = 0
        shm_perm.gid = 0
        shm_perm.cuid = 0
        shm_perm.cgid = 0
        shm_perm.mode = 0
        shm_segsz = 4096
        shm_lpid = 9649
        shm_cpid = 9627
        shm_nattch = 0
        shm_atime = Sat Aug  2 21:22:36 2003
        shm_dtime = Sat Aug  2 21:22:36 2003
        shm_ctime = Sat Aug  2 21:22:29 2003

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list