LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem compiling openssh (https://www.linuxquestions.org/questions/linux-software-2/problem-compiling-openssh-173679/)

josephswagner 04-23-2004 09:24 AM

problem compiling openssh
 
When configuring openssh 3.7.1p2 I get this error and I cannot go any further. Anyone have an idea? Thanks.



Code:

checking for socklen_t... no
checking for socklen_t equivalent... configure: error: Cannot find a type to use in place of socklen_t


phil_ro 03-27-2005 05:42 AM

the solution to "socklen_t missing" problem
 
I had the same problem on a poor installed slackware (no headers, no C-compiler, etc.. ) ... and I've done this:

Code:

# ln -sf /usr/src/linux/include/linux /usr/include/linux
# ln -sf /usr/src/linux/include/asm-i386 /usr/include/asm

but be sure that we have install some linux-headers or a linux-kernel under /usr/src/linux !

To test it, you can compile a test C code (test.c):

Code:

#include <sys/socket.h>
main() {
 struct sockaddr name;
 socklen_t namelen;
 getpeername(0, &name, &namelen);
}

and see what if it returns some errors, after you run the resulted compiled code ( above ).


All times are GMT -5. The time now is 12:05 AM.