Compiling from source

For talk and support relating specifically to Puppy derivatives
Post Reply
Message
Author
peterw
Posts: 430
Joined: Wed 19 Jul 2006, 12:12
Location: UK

Compiling from source

#1 Post by peterw »

Hi

I am trying to learn how to compile and am following the example given in http://puppy.b0x.me/wiki/doku.php?id=compile. I am using Dpup Exprimo 5.X.13 on a frugal install which makes it easy to load the devx sfs. I can't get past the configure stage and this is a copy of the log. Googling the problem shows that I am missing headers. I have searched forums for solutions but none seemed to apply to Puppy.

Thanks for any suggestions

Peterw

configure:5296: result: ranlib
configure:5323: checking how to run the C preprocessor
configure:5363: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:157,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-linux-gnu/4.4.5/include-fixed/limits.h:122,
from /usr/lib/gcc/i486-linux-gnu/4.4.5/include-fixed/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.4.5/include-fixed/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
configure:5370: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "xournal"
| #define VERSION "0.4.5"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:5363: gcc -E conftest.c

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#2 Post by pemasu »

Dpup Exprimo 5.X.13 uses Iguleder`s kernel. The kernel and kernel header has been created by builder script which has a bug which I found recently. The bug causes that /usr/include/linux misses a lot needed kernel headers.
Take devx from Dpup Exprimo 5.X.10.3. There is a thread in this derivative section which has that name and you find a download link from the first page of that thread.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#3 Post by pemasu »

Now that I know that bug exists...I can compile the kernel again and that way I get the proper kernel headers to the devx sfs. Next Dpup Exprimo has that fixed devx sfs.
I only realized that bug when I used another kernel builder script which was based to that Igulder`s builder script and I got samekind error...as you did when I tried to compile app....then I started to trace the reason and I find out that aufs3 standalone Kbuild file was copied over kernel existing Kbuild file /linux/include folder. This causes that kernel headers for compiling are defective.

EDIT: I can load the devx sfs over existing one this evening. Easier this way.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#4 Post by pemasu »

Devx sfs for Dpup Exprimo reuploaded after kernel recompile. It has now full /usr/include header content.

http://www.smokey01.com/pemasu/DpupSque ... primo5X13/

peterw
Posts: 430
Joined: Wed 19 Jul 2006, 12:12
Location: UK

Compiling from source

#5 Post by peterw »

Hi pemasu

Many thanks for your help. It was an extremely quick response. I used the other dev.sfs file and that worked fine. The learning experience can continue. I will try your new one soon.

Thanks
Peterw

peterw
Posts: 430
Joined: Wed 19 Jul 2006, 12:12
Location: UK

Dpup Exprimo 5.X.13

#6 Post by peterw »

Hi pemasu

I have downloaded the new dev.sfs file twice and checked the md5sum. I get the following:
8d0d0c192beed590b110c61c588a0be7 devx_squeeze_5.X.13.sfs

Regards

Peterw

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#7 Post by pemasu »

It is correct. Did I forget to update the md5sum file in repo?

EDIT. Yes I did. The md5sum file has been reuploaded.

Post Reply