Re: getpagesize() problems
Felix von Leitner <[email protected]>
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
> > This works fine for me (apart from the fact that sys/user.h does not > > exist for dietlibc and PAGE_SIZE is defined in sys/shm.h). > it works for you?! Maybe i'm not good in compiling and linking with > non-standard tools. Uh, you are using the standard libc headers, this cannot work well in the general case. For dietlibc, you are provided a tool called "diet". After "make install" it is in /opt/diet/bin. Put that in your $PATH and then compile like this: $ diet gcc -o pagesize pagesize.c > > What environment are you using this program in? > > x86? Â Inside user mode linux? Â What kernel version? > Debian i686, Linux 2.6.29.6 > gcc: 4:4.3.3-9 > libc6: 2.9-23 > Hope this can help to understand. > thanks for your help. These should be fine. Strange. Felix