Menu

#6 Problem ./configure

open
nobody
None
5
2014-08-28
2008-04-14
Anonymous
No

Hi,
I try compile tsocks 1.8 beta 5 but have this error:

sh-3.2# ./configure
creating cache ./config.cache
checking host system type... i386-apple-darwin9.2.2
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking if the C compiler accepts -Wall... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for dlfcn.h... yes
checking for sys/socket.h... yes
checking for arpa/inet.h... yes
checking for fcntl.h... yes
checking for sys/poll.h... yes
checking for unistd.h... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strspn... yes
checking for strtol... yes
checking for connect in -lc... yes
checking for socket... yes
checking for inet_aton... yes
checking for gethostbyname... yes
checking for dlsym in -ldl... yes
checking for RTLD_NEXT from dlfcn.h... yes
checking for correct select prototype... select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
checking for correct connect prototype... connect(int __fd, const struct sockaddr * __addr, socklen_t __len)
checking for correct close prototype... close(int fd)
checking for correct poll prototype... configure: error: no match found!

I have comple with gcc 4.2 and my operation system is Mac osx Leopard

Rengrads
Gianpaolo

Discussion

  • Lindberg G Williams Jr

    Logged In: YES
    user_id=2163712
    Originator: NO

    In the TSOCKS source code directory, create a file named configure.diff with the following 11-line contents:

    --- configure- 2008-07-31 14:22:45.000000000 -0400
    +++ configure 2008-07-31 14:34:23.000000000 -0400
    @@ -2228,7 +2228,7 @@
    echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6
    echo "configure:2230: checking for correct poll prototype" >&5
    PROTO=
    -for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout'
    +for testproto in 'struct pollfd *ufds, nfds_t nfds, int timeout'
    do
    if test "${PROTO}" = ""; then
    cat > conftest.$ac_ext <<EOF

    Then execute:

    cp configure configure-
    patch -p0 < configure.diff

     
  • Caerus

    Caerus - 2010-07-22

    I'm also having the same issue with this. I added the 11-line code to the tsocks-1.8 folder in my downloads section (where the .tar file unpacked). Am I doing something wrong? Did I miss a step?

     

Log in to post a comment.