Hi,
I was trying to compile libxml2 which is required for KDE 2.2 's help (documentation) .
Configure can't find sys/socket.h which is required for "socketlen_t". So compile fails.
This is very strange as sys/types.h and other files are found.
I checked /usr/include/ and can confirm that socket.h is present in sys/.
KDE 2.2 requires libxml2 and so I can' proceed without it while compiling KDE 2.2 from source.
I am running Slack 8.0 with Linux 2.4.8.
Any Suggestions Please !!
Thanks in advance.
Michael.
----------------------------------------------- Runbox Mail Manager - www.runbox.com Free online email application
On Thu, 16 Aug 2001, Michael Rodrigues wrote:
Configure can't find sys/socket.h which is required for "socketlen_t". So compile fails. This is very strange as sys/types.h and other files are found. I checked /usr/include/ and can confirm that socket.h is present in sys/.
Sometimes, the problem is with a file included from the required file. You should first figure out what exactly is the problem.
Open up configure and check for the section that looks for sys/socket.h
Try writing a small test app that uses socket.h. It doesn't have to do anything, maybe just call a single function.
Some headers need to be symlinked to the linux source headers:
/usr/include/asm -> /usr/src/linux/include/asm /usr/include/linux -> /usr/src/linux/include/linux
These need to be updated everytime you update your kernel.
Are these present for your current kernel?
Philip
On Thu, 16 Aug 2001, Philip S Tellis wrote:
Some headers need to be symlinked to the linux source headers:
/usr/include/asm -> /usr/src/linux/include/asm /usr/include/linux -> /usr/src/linux/include/linux
These need to be updated everytime you update your kernel. Are these present for your current kernel?
Symlinking now ... Yay!! It Worked!. :-) Now On to compiling KDE 2.2. Thanks for the help
Open up configure and check for the section that looks for sys/socket.h
Try writing a small test app that uses socket.h. It doesn't have to do anything, maybe just call a single function.
I don't know much about programming :-( , still on the learning curve otherwise I'd have tried that suggestion too.
Thanks again for the immediate help.
Regards, Michael.
On Thu, 16 Aug 2001, Michael Rodrigues wrote:
Try writing a small test app that uses socket.h. It doesn't have to do anything, maybe just call a single function.
I don't know much about programming :-( , still on the learning curve otherwise I'd have tried that suggestion too.
Your app would be something like this:
#include <sys/socket.h>
main() { return 0; }
If it can find socket.h, it will compile, else it won't.
Philip
On Thu, Aug 16, 2001 at 05:04:36PM +0530, Philip S Tellis wrote:
Your app would be something like this:
#include <sys/socket.h>
main() { return 0; }
If it can find socket.h, it will compile, else it won't.
Philip
OK , I'll try it out. Thanks for the tip.
BTW, Any idea about what was the reason sockets.h was not found at first go even when I saw that it existed ?
I really broke my head over this cause I could not figure out why 'configure' was unable to find the file when it existed in the appropriate location.
I even reinstalled the slackpackage containing the kernel include files after the third unsuccessful attempt at an install.
The problem may be that I run a 2.4 kernel and the include files are from 2.2.19 ?
Don't know why Slack 8 doesn't come with 2.4 includes when they give you an option for a 2.4.5 install.
Thanks again. Regards, Michael.