logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: failed to compile mod_auth_cas
Author
moshebs



Joined: 16 Jul 2008
Posts: 2

PostPosted: Wed 16 Jul '08 8:47    Post subject: failed to compile mod_auth_cas Reply with quote

Hi,

I'm trying to compile mod_auth_cas using apxs I downloaded from this site (apxs_win32.zip).

This is the error message I get:

Code:

c:\Program Files\Apache Software Foundation\Apache2.2\bin>apxs -i -c mod_auth_cas.c
gcc  /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG    -I"C:\PROGRA~1\APACHE~1\Apache2.2\include"  /c /Fomod_auth_ca
s.lo mod_auth_cas.c
gcc: /nologo: No such file or directory
gcc: /MD: No such file or directory
gcc: /W3: No such file or directory
gcc: /O2: No such file or directory
gcc: /D: No such file or directory
gcc: WIN32: No such file or directory
gcc: /D: No such file or directory
gcc: _WINDOWS: No such file or directory
gcc: /D: No such file or directory
gcc: NDEBUG: No such file or directory
gcc: /c: No such file or directory
gcc: /Fomod_auth_cas.lo: No such file or directory
mod_auth_cas.c:40:28: openssl/crypto.h: No such file or directory
mod_auth_cas.c:41:26: openssl/x509.h: No such file or directory
mod_auth_cas.c:42:25: openssl/pem.h: No such file or directory
mod_auth_cas.c:43:25: openssl/ssl.h: No such file or directory
mod_auth_cas.c:44:25: openssl/err.h: No such file or directory
In file included from mod_auth_cas.c:61:
mod_auth_cas.h:140: error: syntax error before "SSL_CTX"
mod_auth_cas.h:141: error: syntax error before "SSL"
mod_auth_cas.c:1275: error: syntax error before "SSL_CTX"
mod_auth_cas.c: In function `check_cert_cn':
mod_auth_cas.c:1278: error: `cn' undeclared (first use in this function)
mod_auth_cas.c:1278: error: (Each undeclared identifier is reported only once
mod_auth_cas.c:1278: error: for each function it appears in.)
mod_auth_cas.c:1279: error: `X509_STORE' undeclared (first use in this function)
mod_auth_cas.c:1279: error: `store' undeclared (first use in this function)
mod_auth_cas.c:1279: error: `ctx' undeclared (first use in this function)
mod_auth_cas.c:1280: error: `X509_STORE_CTX' undeclared (first use in this function)
mod_auth_cas.c:1280: error: `xctx' undeclared (first use in this function)
mod_auth_cas.c:1283: error: `certificate' undeclared (first use in this function)
mod_auth_cas.c:1289: error: `NID_commonName' undeclared (first use in this function)
mod_auth_cas.c:1295: error: `c' undeclared (first use in this function)
mod_auth_cas.c: At top level:
mod_auth_cas.c:1309: error: syntax error before "SSL"
mod_auth_cas.c: In function `CASCleanupSocket':
mod_auth_cas.c:1311: error: `s' undeclared (first use in this function)
mod_auth_cas.c:1318: error: `ssl' undeclared (first use in this function)
mod_auth_cas.c:1321: error: `ctx' undeclared (first use in this function)
mod_auth_cas.c: In function `getResponseFromServer':
mod_auth_cas.c:1338: error: `SSL_METHOD' undeclared (first use in this function)
mod_auth_cas.c:1338: error: `m' undeclared (first use in this function)
mod_auth_cas.c:1339: error: `SSL_CTX' undeclared (first use in this function)
mod_auth_cas.c:1339: error: `ctx' undeclared (first use in this function)
mod_auth_cas.c:1340: error: `SSL' undeclared (first use in this function)
mod_auth_cas.c:1340: error: `ssl' undeclared (first use in this function)
mod_auth_cas.c:1384: error: `SSL_VERIFY_PEER' undeclared (first use in this function)
mod_auth_cas.c:1436: error: `X509_V_OK' undeclared (first use in this function)
mod_auth_cas.c:1436: warning: comparison between pointer and integer
mod_auth_cas.c: At top level:
mod_auth_cas.c:1641: error: initializer element is not constant
mod_auth_cas.c:1641: error: (near initialization for `cas_cmds[2].func.take1')
mod_auth_cas.c:1641: error: initializer element is not constant
mod_auth_cas.c:1641: error: (near initialization for `cas_cmds[2].func')
mod_auth_cas.c:1641: error: initializer element is not constant
mod_auth_cas.c:1641: error: (near initialization for `cas_cmds[2]')
mod_auth_cas.c:1642: error: initializer element is not constant
mod_auth_cas.c:1642: error: (near initialization for `cas_cmds[3].func.take1')
mod_auth_cas.c:1642: error: initializer element is not constant
mod_auth_cas.c:1642: error: (near initialization for `cas_cmds[3].func')
mod_auth_cas.c:1642: error: initializer element is not constant
mod_auth_cas.c:1642: error: (near initialization for `cas_cmds[3]')
mod_auth_cas.c:1643: error: initializer element is not constant
mod_auth_cas.c:1643: error: (near initialization for `cas_cmds[4].func.take1')
mod_auth_cas.c:1643: error: initializer element is not constant
mod_auth_cas.c:1643: error: (near initialization for `cas_cmds[4].func')
mod_auth_cas.c:1643: error: initializer element is not constant
mod_auth_cas.c:1643: error: (near initialization for `cas_cmds[4]')
mod_auth_cas.c:1644: error: initializer element is not constant
mod_auth_cas.c:1644: error: (near initialization for `cas_cmds[5].func.take1')
mod_auth_cas.c:1644: error: initializer element is not constant
mod_auth_cas.c:1644: error: (near initialization for `cas_cmds[5].func')
mod_auth_cas.c:1644: error: initializer element is not constant
mod_auth_cas.c:1644: error: (near initialization for `cas_cmds[5]')
mod_auth_cas.c:1647: error: initializer element is not constant
mod_auth_cas.c:1647: error: (near initialization for `cas_cmds[6].func')
mod_auth_cas.c:1647: error: initializer element is not constant
mod_auth_cas.c:1647: error: (near initialization for `cas_cmds[6]')
mod_auth_cas.c:1648: error: initializer element is not constant
mod_auth_cas.c:1648: error: (near initialization for `cas_cmds[7].func')
mod_auth_cas.c:1648: error: initializer element is not constant
mod_auth_cas.c:1648: error: (near initialization for `cas_cmds[7]')
mod_auth_cas.c:1649: error: initializer element is not constant
mod_auth_cas.c:1649: error: (near initialization for `cas_cmds[8].func')
mod_auth_cas.c:1649: error: initializer element is not constant
mod_auth_cas.c:1649: error: (near initialization for `cas_cmds[8]')
mod_auth_cas.c:1650: error: initializer element is not constant
mod_auth_cas.c:1650: error: (near initialization for `cas_cmds[9].func')
mod_auth_cas.c:1650: error: initializer element is not constant
mod_auth_cas.c:1650: error: (near initialization for `cas_cmds[9]')
mod_auth_cas.c:1653: error: initializer element is not constant
mod_auth_cas.c:1653: error: (near initialization for `cas_cmds[10].func')
mod_auth_cas.c:1653: error: initializer element is not constant
mod_auth_cas.c:1653: error: (near initialization for `cas_cmds[10]')
mod_auth_cas.c:1654: error: initializer element is not constant
mod_auth_cas.c:1654: error: (near initialization for `cas_cmds[11].func')
mod_auth_cas.c:1654: error: initializer element is not constant
mod_auth_cas.c:1654: error: (near initialization for `cas_cmds[11]')
mod_auth_cas.c:1655: error: initializer element is not constant
mod_auth_cas.c:1655: error: (near initialization for `cas_cmds[12].func')
mod_auth_cas.c:1655: error: initializer element is not constant
mod_auth_cas.c:1655: error: (near initialization for `cas_cmds[12]')
mod_auth_cas.c:1658: error: initializer element is not constant
mod_auth_cas.c:1658: error: (near initialization for `cas_cmds[13].func')
mod_auth_cas.c:1658: error: initializer element is not constant
mod_auth_cas.c:1658: error: (near initialization for `cas_cmds[13]')
mod_auth_cas.c:1659: error: initializer element is not constant
mod_auth_cas.c:1659: error: (near initialization for `cas_cmds[14].func')
mod_auth_cas.c:1659: error: initializer element is not constant
mod_auth_cas.c:1659: error: (near initialization for `cas_cmds[14]')
mod_auth_cas.c:1660: error: initializer element is not constant
mod_auth_cas.c:1660: error: (near initialization for `cas_cmds[15].func')
mod_auth_cas.c:1660: error: initializer element is not constant
mod_auth_cas.c:1660: error: (near initialization for `cas_cmds[15]')
mod_auth_cas.c:1661: error: initializer element is not constant
mod_auth_cas.c:1661: error: (near initialization for `cas_cmds[16].func')
mod_auth_cas.c:1661: error: initializer element is not constant
mod_auth_cas.c:1661: error: (near initialization for `cas_cmds[16]')
mod_auth_cas.c:1662: error: initializer element is not constant
mod_auth_cas.c:1662: error: (near initialization for `cas_cmds[17].func.take1')
mod_auth_cas.c:1662: error: initializer element is not constant
mod_auth_cas.c:1662: error: (near initialization for `cas_cmds[17].func')
mod_auth_cas.c:1662: error: initializer element is not constant
mod_auth_cas.c:1662: error: (near initialization for `cas_cmds[17]')
mod_auth_cas.c:1663: error: initializer element is not constant
mod_auth_cas.c:1663: error: (near initialization for `cas_cmds[18].func.take1')
mod_auth_cas.c:1663: error: initializer element is not constant
mod_auth_cas.c:1663: error: (near initialization for `cas_cmds[18].func')
mod_auth_cas.c:1663: error: initializer element is not constant
mod_auth_cas.c:1663: error: (near initialization for `cas_cmds[18]')
mod_auth_cas.c:1664: error: initializer element is not constant
mod_auth_cas.c:1664: error: (near initialization for `cas_cmds[19].func.take1')
mod_auth_cas.c:1664: error: initializer element is not constant
mod_auth_cas.c:1664: error: (near initialization for `cas_cmds[19].func')
mod_auth_cas.c:1664: error: initializer element is not constant
mod_auth_cas.c:1664: error: (near initialization for `cas_cmds[19]')
mod_auth_cas.c:1666: error: initializer element is not constant
mod_auth_cas.c:1666: error: (near initialization for `cas_cmds[20].func')
mod_auth_cas.c:1666: error: initializer element is not constant
mod_auth_cas.c:1666: error: (near initialization for `cas_cmds[20]')
mod_auth_cas.c:1667: error: initializer element is not constant
mod_auth_cas.c:1667: error: (near initialization for `cas_cmds[21].func')
mod_auth_cas.c:1667: error: initializer element is not constant
mod_auth_cas.c:1667: error: (near initialization for `cas_cmds[21]')
mod_auth_cas.c:1668: error: initializer element is not constant
mod_auth_cas.c:1668: error: (near initialization for `cas_cmds[22].func')
mod_auth_cas.c:1668: error: initializer element is not constant
mod_auth_cas.c:1668: error: (near initialization for `cas_cmds[22]')
mod_auth_cas.c:1669: error: initializer element is not constant
mod_auth_cas.c:1669: error: (near initialization for `cas_cmds[23]')
apxs:Error: Command failed with rc=65536


Any help is appreciated

Thank you!
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 16 Jul '08 21:55    Post subject: Reply with quote

For starters, you do not seem to have the gcc compiler installed, or it is not in your %PATH%

Secondly, I am not familiar with gcc but these look like compiler commands for VC++ (a.k.a. cl.exe /nologo /MD /etc. etc.)
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 16 Jul '08 23:00    Post subject: Reply with quote

see
https://www.ja-sig.org/svn/cas-clients/mod_auth_cas/tags/mod_auth_cas-1.0.7/README.win32 for compile instructions on Win32
Back to top
moshebs



Joined: 16 Jul 2008
Posts: 2

PostPosted: Thu 17 Jul '08 13:02    Post subject: Reply with quote

Hi,

thanks a lot, I sucessfully compiled it.

Moshe.
Back to top


Reply to topic   Topic: failed to compile mod_auth_cas View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads