On Sat, 2004-09-11 at 19:02, dalini wrote:
> Kevin wrote:
> > Hi All-
> > 
> > I'm not sure if I've found a bug in the code or if there is an
> > incompatibility, but can anyone comment on this?
> > 
> > i386/OpenBSD3.5 (most current)
> > /usr/local/src/OpenCA/openca-0.9.2-RC6 # gcc -v
> > Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.5/2.95.3/specs
> > gcc version 2.95.3 20010125 (prerelease, propolice)
>                ^^^^^^
> 
> thats 'the problem' - it should compile with a newer gcc
> i havn't checked out what is the exact problem with 2.95 and
> apps.c but a newer gcc works with the code
> 

Thanks, dalini.  I installed lang/egcs from OBSD ports which gives me
gcc 3.3.2 and tried again.

This time I get a failure with a different message:

================================
...
`openca-xml-cache/Makefile' is up to date.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = "de_AT",
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
cd openca-sv && make
Making all in src
Making all in docs
cd scripts && make
cd web-interfaces && make
make batch       ca              ldap            node           
pub             ra              scep
cd batch && make
cd ca && make
cd ldap && make
cd node && make
cd pub && make
cd ra && make
cd scep && make
cd ocspd && make
Making all in src
if /usr/local/bin/egcc -DPACKAGE_VERSION=\"0.5.1\\x0\"
-D_USE_SEMAPHORES=1 -I. -I. -I../include       -g -O2 -MT ocspd.o -MD
-MP -MF ".deps/ocspd.Tpo"  -c -o ocspd.o `test -f 'ocspd.c' || echo
'./'`ocspd.c;  then mv ".deps/ocspd.Tpo" ".deps/ocspd.Po";  else rm -f
".deps/ocspd.Tpo"; exit 1;  fi
In file included from ocspd.c:25:
general.h:38: error: redefinition of `union semun'
*** Error code 1

Stop in /usr/local/src/OpenCA/openca-0.9.2-RC6/src/ocspd/src.
*** Error code 1

Stop in /usr/local/src/OpenCA/openca-0.9.2-RC6/src/ocspd (line 301 of
Makefile).
*** Error code 1

Stop in /usr/local/src/OpenCA/openca-0.9.2-RC6/src (line 35 of
Makefile).
*** Error code 1

Stop in /usr/local/src/OpenCA/openca-0.9.2-RC6 (line 87 of Makefile).
================================

My configure command was:
CPP=/usr/local/bin/ecpp CC=/usr/local/bin/egcc ./configure  \
 --prefix=/usr/local/openra \
 --with-httpd-user=www  \
 --with-httpd-group=www  \
 --with-openca-prefix=/usr/local/openra/openca  \
 --with-etc-prefix=/usr/local/openra/openca/etc  \
 --with-httpd-fs-prefix=/usr/local/openra/httpd  \
 --with-module-prefix=/usr/local/openra/modules  \
 --with-node-prefix=ra-node  \
 --with-engine=no  \
 --with-web-host=mandible  \
 --enable-ocspd  \
 --enable-dbi  \
 --enable-rbac  \
 --with-hierarchy-level=ra\
 --with-openca-user=_openca\
 --with-openca-group=_openca\
 --with-openldap-prefix=/usr/local/lib

and then just a plain 'make'

The newly installed gcc is egcc with version:
/usr/local/src/OpenCA/openca-0.9.2-RC6 # /usr/local/bin/egcc -v
Reading specs from
/usr/local/lib/gcc-lib/i386-unknown-openbsd3.5/3.3.2/specs
Configured with:
/usr/ports/lang/egcs/stable/w-gcc-3.3.2/gcc-3.3.2/configure --verbose
--program-transform-name=s,^,e, --disable-nls --with-system-zlib
--enable-cpp --enable-languages=c,c++,f77,objc,java
--enable-sjlj-exceptions --with-gnu-as --with-gnu-ld --enable-shared
--prefix=/usr/local --sysconfdir=/etc
Thread model: single
gcc version 3.3.2

A newly built updatedb database shows only the following general.h files
on my system:

/usr/local/src/OpenCA/openca-0.9.2-RC6 # locate general.h
/usr/include/dev/raidframe/rf_general.h
/usr/local/src/OpenCA/openca-0.9.2-RC6/src/ocspd/src/general.h
/usr/local/src/OpenCA/openca-0.9.2-RC6/src/openca-sv/include/openca/general.h
/usr/src/sys/dev/raidframe/rf_general.h
/usr/src/usr.bin/tn3270/general/general.h

I see only one definition of union semun in that.  Is it defined
elsewhere in the OpenCA code?

Has anyone else built RC6 on an OBSD3.5 box?

TIA!

-Kevin




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to