httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Fellows <lfell...@4lane.com>
Subject Re: [users@httpd] build error apache 2.0.40 mod_ssl.c AIX
Date Thu, 26 Sep 2002 17:58:59 GMT
On Thu, 2002-09-26 at 12:03, susan hall wrote:
> I tried using gcc.  I die earlier now, with the same error as reported
> in the following email:
> 
> http://marc.theaimsgroup.com/?l=apache-httpd-users&m=102675938323762&w=2
> 
> This guy abandoned gcc for xlc, to fix his problem.  I cannot find any
> other ref to a fix for this make error.  I had given up on gcc myself
> (v. 2.95) and installed xlc because it had been months since I had been
> able to successfully compile anything sizeable with gcc.  
> 
> My error using gcc 3.0.1:
> 
>         /bin/sh /usr/local/src/httpd-2.0.40/srclib/apr/libtool --silent
> --mode=compile /usr/local/bin/gcc -g -O2   -DHAVE_CONFIG_H -U__STR__
> -D_USE_IRS -D_THREAD_SAFE   -I../../include -I../../include/arch/unix
> -I../../include/arch/unix  -c dir.c && touch dir.lo
> In file included from /usr/include/sys/pri.h:29,
>                  from /usr/include/sys/sched.h:38,
>                  from /usr/include/sched.h:52,
>                  from /usr/include/pthread.h:43,
>                  from ../../include/apr_portable.h:90,
>                  from dir.c:57:
> /usr/include/sys/proc.h:203: parse error before "crid_t"
> /usr/include/sys/proc.h:212: parse error before "p_class"
> /usr/include/sys/proc.h:355: parse error before '}' token
> make: 1254-004 The error code from the last command is 1.
> 
> Derrick Beery wrote:
> > 
> > Try gcc compiler from http://www.bullfreeware.com/main.html
> > 
> > I had similar problems until switching.
> > 
> > Derrick
> > 
> > -----Original Message-----
> > From: susan hall [mailto:suehall@prodigy.net]
> > Sent: Wednesday, September 25, 2002 3:15 PM
> > To: users@httpd.apache.org
> > Subject: [users@httpd] build error apache 2.0.40 mod_ssl.c AIX
> > 
> > Trying to build on AIX 4.3.3 maint level 9, using IBM's xlc compiler.
> > Openssl version 0.9.6g.
> > 
> > The configure options are:
> > 
> > --prefix=/usr/local/apache_2.0.40 \
> > --enable-ssl=shared \
> > --enable-mods-shared=most \
> > --with-mpm=worker
> > 
> > The make error is:
> > 
> >         /bin/sh /usr/local/src/httpd-2.0.40/srclib/apr/libtool --silent
> > --mode=compile /usr/ibmcxx
> > /bin/xlC_r  -g -qHALT=E -DNO_DBM_REWRITEMAP    -U__STR__ -D_USE_IRS
> > -D_THREAD_SAFE    -I/usr/local
> > /src/httpd-2.0.40/srclib/apr/include
> > -I/usr/local/src/httpd-2.0.40/srclib/apr-util/include -I/usr/
> > local/src/httpd-2.0.40/srclib/apr-util/xml/expat/lib -I.
> > -I/usr/local/src/httpd-2.0.40/os/unix -I/
> > usr/local/src/httpd-2.0.40/server/mpm/worker
> > -I/usr/local/src/httpd-2.0.40/modules/http -I/usr/loc
> > al/src/httpd-2.0.40/modules/filters
> > -I/usr/local/src/httpd-2.0.40/modules/proxy -I/usr/local/src/h
> > ttpd-2.0.40/include -I/usr/local/ssl/include/openssl
> > -I/usr/local/ssl/include -I/usr/local/src/htt
> > pd-2.0.40/modules/dav/main -prefer-pic -c mod_ssl.c && touch mod_ssl.slo
> > "mod_ssl.c", line 338.42: 1506-280 (E) Function argument assignment
> > between types "const unsigned
> > char*" and "const char*" is not allowed.
> > make: 1254-004 The error code from the last command is 1.
> > 
> > Not being a C programmer, I am stuck.
> > 
> > Thanks, Susan
> > 
  It looks like you could get past this error by changing line 338 in
  mod_ssl.c from 'vhost_md5 = ap_md5_binary(c->pool, sc->vhost_id,
  sc->vhost_id_len);' to 'vhost_md5 = ap_md5_binary(c->pool,
  (const unsigned char*)sc->vhost_id, sc->vhost_id_len);'.

  However, I suspect you would only encounter additional errors before
  the build completed.  Given you are not a C programmer, you could
  still be stuck.

  IMHO your best bet is getting the latest GNU build tools (gcc,
  binutils, et al) and using them.




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message