Re: getpagesize() problems

Felix von Leitner <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
> I know about "diet" but I don't want/ or can not use it on the project.

Uh... why?

That does not make much sense.  You cannot expect dietlibc code to work
with code that uses glibc headers.  For example, struct stat has a
different size.  This will cause memory corruption.

And the environ issue you noticed.

> I know that example works well with "diet gcc (...)" compiling and linking but
> I have to use "dietlibc.a" in linking without "diet".
> My Makefile looks like this:

> cc -static -o output <some *.o files> -nostdlib -nostartfiles
> ../dietlibc.a -lgcc

This is by and large what died gcc -o output <some *.o files> does.

> and it works since dietlibc 0.31.

By coincidence, not by design.

Felix
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.