1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Error Compiling Apache 2.4 On Cygwin

Discussion in 'Apache' started by baselsayeh, Feb 7, 2013.

  1. #1
    hello everyone,
    i tried to compile apache in cygwin windows 7 home basic x64
    running ./configure fine then
    make

    full of errors
    can you help me?

    Basel@Basel-PC /cygdrive/c/apachescr/httpd-2.4.3
    $ make
    Making all in srclib
    make[1]: Entering directory `/cygdrive/c/apachescr/httpd-2.4.3/srclib'
    Making all in apr
    make[2]: Entering directory `/cygdrive/c/apachescr/httpd-2.4.3/srclib/apr'
    make[3]: Entering directory `/cygdrive/c/apachescr/httpd-2.4.3/srclib/apr'
    /bin/sh /cygdrive/c/apachescr/httpd-2.4.3/srclib/apr/libtool --silent --mode=com
    pile gcc -g -O2  -DHAVE_CONFIG_H -DCYGWIN  -I./include -I/cygdrive/c/apachescr
    /httpd-2.4.3/srclib/apr/include/arch/unix -I./include/arch/unix -I/cygdrive/c/ap
    achescr/httpd-2.4.3/srclib/apr/include/arch/unix -I/cygdrive/c/apachescr/httpd-2
    .4.3/srclib/apr/include  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && tou
    ch passwd/apr_getpass.lo
    In file included from /usr/include/sys/socket.h:16:0,
                    from ./include/apr.h:168,
                    from ./include/apr_pools.h:43,
                    from /cygdrive/c/apachescr/httpd-2.4.3/srclib/apr/include/arch/
    unix/../apr_private_common.h:24,
                    from /cygdrive/c/apachescr/httpd-2.4.3/srclib/apr/include/arch/
    unix/apr_private.h:996,
                    from passwd/apr_getpass.c:22:
    /usr/include/cygwin/socket.h:30:8: error: redefinition of 'struct sockaddr'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/psdk_inc/_ip_types.
    h:70:8: note: originally defined here
    /usr/include/cygwin/socket.h:42:8: error: redefinition of 'struct sockaddr_stora
    ge'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:260:10:
    note: originally defined here
    In file included from /usr/include/sys/socket.h:16:0,
                    from ./include/apr.h:168,
                    from ./include/apr_pools.h:43,
                    from /cygdrive/c/apachescr/httpd-2.4.3/srclib/apr/include/arch/
    unix/../apr_private_common.h:24,
                    from /cygdrive/c/apachescr/httpd-2.4.3/srclib/apr/include/arch/
    unix/apr_private.h:996,
                    from passwd/apr_getpass.c:22:
    /usr/include/cygwin/socket.h:61:8: error: redefinition of 'struct linger'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/psdk_inc/_ip_types.
    h:63:8: note: originally defined here
    In file included from ./include/apr.h:168:0,
                    from ./include/apr_pools.h:43,
                    from /cygdrive/c/apachescr/httpd-2.4.3/srclib/apr/include/arch/
    unix/../apr_private_common.h:24,
                    from /cygdrive/c/apachescr/httpd-2.4.3/srclib/apr/include/arch/
    unix/apr_private.h:996,
                    from passwd/apr_getpass.c:22:
    /usr/include/sys/socket.h:30:7: error: conflicting types for 'accept'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:964:37:
    note: previous declaration of 'accept' was here
    /usr/include/sys/socket.h:32:7: error: conflicting types for 'bind'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:965:34:
    note: previous declaration of 'bind' was here
    /usr/include/sys/socket.h:33:7: error: conflicting types for 'connect'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:967:34:
    note: previous declaration of 'connect' was here
    /usr/include/sys/socket.h:34:7: error: conflicting types for 'getpeername'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:969:34:
    note: previous declaration of 'getpeername' was here
    /usr/include/sys/socket.h:35:7: error: conflicting types for 'getsockname'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:970:34:
    note: previous declaration of 'getsockname' was here
    /usr/include/sys/socket.h:36:7: error: conflicting types for 'listen'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:978:34:
    note: previous declaration of 'listen' was here
    /usr/include/sys/socket.h:37:11: error: conflicting types for 'recv'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:983:34:
    note: previous declaration of 'recv' was here
    /usr/include/sys/socket.h:38:11: error: conflicting types for 'recvfrom'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:984:34:
    note: previous declaration of 'recvfrom' was here
    /usr/include/sys/socket.h:41:11: error: conflicting types for 'send'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:988:34:
    note: previous declaration of 'send' was here
    /usr/include/sys/socket.h:43:11: error: conflicting types for 'sendto'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:989:34:
    note: previous declaration of 'sendto' was here
    /usr/include/sys/socket.h:45:7: error: conflicting types for 'setsockopt'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:990:34:
    note: previous declaration of 'setsockopt' was here
    /usr/include/sys/socket.h:47:7: error: conflicting types for 'getsockopt'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:971:34:
    note: previous declaration of 'getsockopt' was here
    /usr/include/sys/socket.h:49:7: error: conflicting types for 'shutdown'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:991:34:
    note: previous declaration of 'shutdown' was here
    /usr/include/sys/socket.h:50:7: error: conflicting types for 'socket'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:992:37:
    note: previous declaration of 'socket' was here
    /usr/include/sys/socket.h:53:19: error: conflicting types for 'getservbyname'
    /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/winsock2.h:997:46:
    note: previous declaration of 'getservbyname' was here
    /cygdrive/c/apachescr/httpd-2.4.3/srclib/apr/build/apr_rules.mk:202: recipe for
    target `passwd/apr_getpass.lo' failed
    make[3]: *** [passwd/apr_getpass.lo] Error 1
    make[3]: Leaving directory `/cygdrive/c/apachescr/httpd-2.4.3/srclib/apr'
    /cygdrive/c/apachescr/httpd-2.4.3/srclib/apr/build/apr_rules.mk:114: recipe for
    target `all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/cygdrive/c/apachescr/httpd-2.4.3/srclib/apr'
    /cygdrive/c/apachescr/httpd-2.4.3/build/rules.mk:72: recipe for target `all-recu
    rsive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/cygdrive/c/apachescr/httpd-2.4.3/srclib'
    /cygdrive/c/apachescr/httpd-2.4.3/build/rules.mk:72: recipe for target `all-recu
    rsive' failed
    make: *** [all-recursive] Error 1
    
    Code (markup):

     

    Attached Files:

    baselsayeh, Feb 7, 2013 IP
  2. baselsayeh

    baselsayeh Member

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    no one?
     
    baselsayeh, Feb 27, 2013 IP