axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lilantha Darshana <ldarsh...@edocs.com>
Subject RE: porting axis-c++ to Mac OS 10.3
Date Thu, 04 Mar 2004 06:23:15 GMT
Were you able to compile the apache 1.3.* in your platform? if so,

According to the error it seems like the C++ preprocessor cannot find the 
os.h file in the ap_config.h. Further the error has occurred before the
this:

/usr/include/libkern/ppc/OSByteOrder.h:42: error: syntax error before
"uint16_t" 

that mean some of the other header file has a dependency on this which
should have the
error itself. Check other include files dependencies on httpd.h file which
should be the
culprit.

regards
-Lilantha


> -----Original Message-----
> From: Andrew Erlichson [mailto:aje@erlichson.net]
> Sent: Thursday, March 04, 2004 12:29 AM
> To: Apache AXIS C Developers List
> Subject: RE: porting axis-c++ to Mac OS 10.3
> 
> 
> Roshan,
>  I did try it with the 1.3.27 source subsequently and the results were
> the same. Based on your suggestion, I just tried the cvs source and am
> getting the same errors. Also, as before, I needed to change 
> one include
> in Axis.cpp from malloc.h to sys/malloc.h to get this far.
> 
>  The code that fails looks like this (from
> /usr/include/libkern/ppc/OSByteOrder.h)
> 
> #if !defined(OS_INLINE)
> #        define OS_INLINE static inline
> #endif
> 
> /* Functions for byte reversed loads. */
> 
> OS_INLINE
> uint16_t
> OSReadSwapInt16(
>     volatile void               * base,
>     uintptr_t                          offset
> )
> {
>     uint16_t result;
>     __asm__ volatile("lhbrx %0, %1, %2"
> 
> --
> so a reasonable guess is that maybe OS_INLINE is not being 
> defined in a
> reasonable fashion. I don't really understand the config stuff well
> enough to know how to correct the defines properly across all the
> source. 
> 
> actual compile error is below.  btw, I also posted some 
> questions to the
> axis-c-users group about problems I am having compiling on 
> redhat 7.3. I
> did not post those to the dev mailing list because I figured that
> problems on linux are really user-level, not dev level problems. but
> overall, I have not been succesful in building axis on redhat 
> 7.3 or mac
> os 10.3. your offically suggested platform is redhat 8, but as I
> understand it, that is a soon-not-to-be-supported release by rehdat as
> well.
> 
> thanks,
> 
> Andrew
> 
> --
> 
> 
> Making all in apache
> source='mod_axis.c' object='mod_axis.lo' libtool=yes \
> depfile='.deps/mod_axis.Plo' tmpdepfile='.deps/mod_axis.TPlo' \
> depmode=gcc3 /bin/sh ../../../depcomp \
> /bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../.. -I/Users/aje/src/axis/axis-cvs-source/ws-axis/c/include
> -Wshadow -Wall -pedantic -ansi   -Wall -Wshadow -c -o 
> mod_axis.lo `test
> -f 'mod_axis.c' || echo './'`mod_axis.c
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -I. -I. -I../../..
> -I/Users/aje/src/axis/axis-cvs-source/ws-axis/c/include -Wshadow -Wall
> -pedantic -ansi -Wall -Wshadow -c mod_axis.c -MT mod_axis.lo 
> -MD -MP -MF
> .deps/mod_axis.TPlo  -fno-common -DPIC -o .libs/mod_axis.o
> In file included from
> /Users/aje/src/axis/axis-cvs-source/ws-axis/c/include/apache1_
> 3/httpd.h:
> 72,
>                  from mod_axis.c:1:
> /Users/aje/src/axis/axis-cvs-source/ws-axis/c/include/apache1_
> 3/ap_confi
> g.h:114:16: os.h: No such file or directory
> In file included from /usr/include/libkern/OSByteOrder.h:35,
>                  from /usr/include/mach/ndr.h:93,
>                  from /usr/include/mach/clock_priv.h:7,
>                  from /usr/include/mach/mach_interface.h:37,
>                  from /usr/include/mach/mach.h:62,
>                  from /usr/include/sys/event.h:154,
>                  from /usr/include/sys/select.h:71,
>                  from
> /Users/aje/src/axis/axis-cvs-source/ws-axis/c/include/apache1_
> 3/ap_confi
> g.h:1137,
>                  from
> /Users/aje/src/axis/axis-cvs-source/ws-axis/c/include/apache1_
> 3/httpd.h:
> 72,
>                  from mod_axis.c:1:
> /usr/include/libkern/ppc/OSByteOrder.h:42: error: syntax error before
> "uint16_t"
> /usr/include/libkern/ppc/OSByteOrder.h:57: error: syntax error before
> "uint32_t"
> /usr/include/libkern/ppc/OSByteOrder.h:72: error: syntax error before
> "uint64_t"
> /usr/include/libkern/ppc/OSByteOrder.h:93: error: syntax error before
> "void"
> /usr/include/libkern/ppc/OSByteOrder.h:107: error: syntax error before
> "void"
> /usr/include/libkern/ppc/OSByteOrder.h:121: error: syntax error before
> "void"
> /usr/include/libkern/ppc/OSByteOrder.h:143: error: syntax error before
> "uint16_t"
> /usr/include/libkern/ppc/OSByteOrder.h:153: error: syntax error before
> "uint32_t"
> /usr/include/libkern/ppc/OSByteOrder.h:163: error: syntax error before
> "uint64_t"
> In file included from /usr/include/mach/ndr.h:93,
>                  from /usr/include/mach/clock_priv.h:7,
>                  from /usr/include/mach/mach_interface.h:37,
>                  from /usr/include/mach/mach.h:62,
>                  from /usr/include/sys/event.h:154,
>                  from /usr/include/sys/select.h:71,
>                  from
> /Users/aje/src/axis/axis-cvs-source/ws-axis/c/include/apache1_
> 3/ap_confi
> g.h:1137,
>                  from
> /Users/aje/src/axis/axis-cvs-source/ws-axis/c/include/apache1_
> 3/httpd.h:
> 72,
>                  from mod_axis.c:1:
> /usr/include/libkern/OSByteOrder.h:49: error: syntax error before
> "int32_t"
> /usr/include/libkern/OSByteOrder.h:105: error: syntax error before
> "uint16_t"
> /usr/include/libkern/OSByteOrder.h:115: error: syntax error before
> "uint32_t"
> /usr/include/libkern/OSByteOrder.h:125: error: syntax error before
> "uint64_t"
> /usr/include/libkern/OSByteOrder.h:137: error: syntax error before
> "void"
> /usr/include/libkern/OSByteOrder.h:148: error: syntax error before
> "void"
> /usr/include/libkern/OSByteOrder.h:159: error: syntax error before
> "void"
> /usr/include/libkern/OSByteOrder.h:172: error: syntax error before
> "uint16_t"
> /usr/include/libkern/OSByteOrder.h:182: error: syntax error before
> "uint32_t"
> /usr/include/libkern/OSByteOrder.h:192: error: syntax error before
> "uint64_t"
> /usr/include/libkern/OSByteOrder.h:204: error: syntax error before
> "void"
> /usr/include/libkern/OSByteOrder.h:215: error: syntax error before
> "void"
> /usr/include/libkern/OSByteOrder.h:226: error: syntax error before
> "void"
> /usr/include/libkern/OSByteOrder.h:245: error: syntax error before
> "uint16_t"
> /usr/include/libkern/OSByteOrder.h:254: error: syntax error before
> "uint32_t"
> /usr/include/libkern/OSByteOrder.h:263: error: syntax error before
> "uint64_t"
> /usr/include/libkern/OSByteOrder.h:292: error: syntax error before
> "uint16_t"
> /usr/include/libkern/OSByteOrder.h:301: error: syntax error before
> "uint32_t"
> /usr/include/libkern/OSByteOrder.h:310: error: syntax error before
> "uint64_t"
> In file included from mod_axis.c:1:
> /Users/aje/src/axis/axis-cvs-source/ws-axis/c/include/apache1_
> 3/httpd.h:
> 1041: warning: declaration of `exp' shadows a global declaration
> <built-in>:0: warning: shadowed declaration is here
> /Users/aje/src/axis/axis-cvs-source/ws-axis/c/include/apache1_
> 3/httpd.h:
> 1042: warning: declaration of `exp' shadows a global declaration
> <built-in>:0: warning: shadowed declaration is here
> In file included from mod_axis.c:7:
> 
> 
> -----Original Message-----
> From: Roshan Weerasuriya [mailto:roshan@opensource.lk] 
> Sent: Wednesday, March 03, 2004 10:13 PM
> To: Apache AXIS C Developers List
> Subject: Re: porting axis-c++ to Mac OS 10.3
> 
> 
> Hi Andrew,
> 
>  >one guess is that apache 1.3.29 is different enough from 
> 1.3.27 in its
> 
> config that axis-c++ won't build against it.
> 
> So did you try on Apache 1.3.27 also, to verify this Andrew.
> 
> It is much better if you use the CVS Head Axic CPP source file instead
> of 
> using 1.0 relese source files, if you need to get the latest source.
> 
> rgds,
> roshan
> 
> At 11:20 AM 3/3/2004 -0500, you wrote:
> >Hi all,
> >  I am trying to port Axis-C++ to mac os 10.3.2 (panther). I 
> am running
> 
> >in
> > to some difficulties and wanted to know if anyone out there had some
> advice.
> >
> >  My basic approach has been to take the linux released source
> > (axis-c-src-1-0-linux), compile xerces-c for the mac, get apache
> 1.3.29 
> > source from apache, copy in the header files to the apache 1_3
> directory 
> > in axis-c++, configure and run. I had to make one small change in 
> > src/engine/Axis.cpp (change #include of malloc.h to sys/malloc.h) to
> get 
> > past an early include problem. Now, it looks like I am running into
> some 
> > undefined values for INLINE being defined deep in libkern includes.
> one 
> > guess is that apache 1.3.29 is different enough from 1.3.27 in its
> config 
> > that axis-c++ won't build against it.
> >
> >Here is the error I am getting on compilation (description of build
> >process below)
> >--
> >Making all in server
> >Making all in apache
> >source='mod_axis.c' object='mod_axis.lo' libtool=yes \
> >depfile='.deps/mod_axis.Plo' tmpdepfile='.deps/mod_axis.TPlo' \
> >depmode=gcc3 /bin/sh ../../../depcomp \
> >/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
> >-I../../.. -I/Users/aje/src/axis-c-src-1-0-linux/include 
> -Wshadow -Wall
> 
> >-pedantic -ansi   -Wall -Wshadow -c -o mod_axis.lo `test -f
> 'mod_axis.c' 
> >|| echo './'`mod_axis.c
> >  gcc -DHAVE_CONFIG_H -I. -I. -I../../..
> > -I/Users/aje/src/axis-c-src-1-0-linux/include -Wshadow 
> -Wall -pedantic
> 
> > -ansi -Wall -Wshadow -c mod_axis.c -MT mod_axis.lo -MD -MP -MF 
> > .deps/mod_axis.TPlo  -fno-common -DPIC -o .libs/mod_axis.o
> >In file included from /usr/include/libkern/OSByteOrder.h:35,
> >                  from /usr/include/mach/ndr.h:93,
> >                  from /usr/include/mach/clock_priv.h:7,
> >                  from /usr/include/mach/mach_interface.h:37,
> >                  from /usr/include/mach/mach.h:62,
> >                  from /usr/include/sys/event.h:154,
> >                  from /usr/include/sys/select.h:71,
> >                  from 
> >
> /Users/aje/src/axis-c-src-1-0-linux/include/apache1_3/ap_confi
> g.h:1137,
> >                  from 
> > /Users/aje/src/axis-c-src-1-0-linux/include/apache1_3/httpd.h:72,
> >                  from mod_axis.c:1:
> >/usr/include/libkern/ppc/OSByteOrder.h:42: error: syntax 
> error before 
> >"uint16_t"
> >/usr/include/libkern/ppc/OSByteOrder.h:57: error: syntax 
> error before 
> >"uint32_t"
> >/usr/include/libkern/ppc/OSByteOrder.h:72: error: syntax 
> error before 
> >"uint64_t"
> >/usr/include/libkern/ppc/OSByteOrder.h:93: error: syntax error before
> "void"
> >/usr/include/libkern/ppc/OSByteOrder.h:107: error: syntax 
> error before
> "void"
> >/usr/include/libkern/ppc/OSByteOrder.h:121: error: syntax 
> error before
> "void"
> >/usr/include/libkern/ppc/OSByteOrder.h:143: error: syntax 
> error before 
> >"uint16_t"
> >/usr/include/libkern/ppc/OSByteOrder.h:153: error: syntax 
> error before 
> >"uint32_t"
> >/usr/include/libkern/ppc/OSByteOrder.h:163: error: syntax 
> error before 
> >"uint64_t"
> >In file included from /usr/include/mach/ndr.h:93,
> >                  from /usr/include/mach/clock_priv.h:7,
> >                  from /usr/include/mach/mach_interface.h:37,
> >                  from /usr/include/mach/mach.h:62,
> >                  from /usr/include/sys/event.h:154,
> >                  from /usr/include/sys/select.h:71,
> >                  from 
> >
> /Users/aje/src/axis-c-src-1-0-linux/include/apache1_3/ap_confi
> g.h:1137,
> >                  from 
> > /Users/aje/src/axis-c-src-1-0-linux/include/apache1_3/httpd.h:72,
> >                  from mod_axis.c:1:
> >/usr/include/libkern/OSByteOrder.h:49: error: syntax error before
> "int32_t"
> >/usr/include/libkern/OSByteOrder.h:105: error: syntax error before
> "uint16_t"
> >/usr/include/libkern/OSByteOrder.h:115: error: syntax error before
> "uint32_t"
> >/usr/include/libkern/OSByteOrder.h:125: error: syntax error before
> "uint64_t"
> >/usr/include/libkern/OSByteOrder.h:137: error: syntax error before
> "void"
> >
> >(and so on..)
> >--
> >Here was my exact build process:
> >   untar axis-c-src-1-0-linux
> >   untar xerces-c-src-2_5_0\
> >     build that according to directions in
> >         http://xml.apache.org/xerces-c/build-other.html#Mac
> >   cd axis-c-src-1-0-linux/include
> >   ln -s xerces-c-src-2_5_0/src/xercesc
> >   untar apache_1_3_29
> >   config apache:
> >     ./configure --prefix=/path/to/apache \
> >                   --enable-module=most \
> >                   --enable-shared=max
> >     make
> >   now go back to axis source/include dir
> >   cd axis-c-src-1-0-linux/include
> >   cp apache_1_3_29/src/include/*.h .
> >   cd $AXISCPP_HOME (which is axis-c-src-1-0-linux/include)
> >   ./configure
> >   make
> >    then it goes along a while and finally hits the errors above.
> >
> >Thanks in advance,
> >
> >Andrew
> >
> >--
> >Andrew Erlichson
> >732.549.9678 (voice)
> >732.549.9679 (fax)
> >aje@erlichson.net
> >
> 
> 
> 

Mime
View raw message