Thanks, for the help! Did as you advised see top of ftxlate.c file ================================================================ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $Id: ftxlate.c,v 1.6 2005/05/11 14:03:30 maf Exp $ */
#define u_int_8_t unsigned char #define u_int_32_t unsigned int #include "ftconfig.h" #include "ftlib.h" ======================================================================== ================= got the error below, Thanks, Alek ======================================================================== =========== gcc -I. -I./lib -I. -I. -I. -g -Wall -g -Wall -c `test -f 'ftxlate.c' || echo './'`ftxlate.c ftxlate.c:71: error: parse error before "u_int8_t" ftxlate.c:71: warning: no semicolon at end of struct or union ftxlate.c:72: warning: type defaults to `int' in declaration of `m_pad' ftxlate.c:72: warning: data definition has no type or storage class ftxlate.c:76: error: parse error before '}' token ftxlate.c:78: error: parse error before "u_int32_t" ftxlate.c:170: error: field `cp' has incomplete type ftxlate.c:2100: error: parse error before "u_int32_t" ftxlate.c: In function `cryptopan_anon': ftxlate.c:2102: error: `u_int8_t' undeclared (first use in this function) ftxlate.c:2102: error: (Each undeclared identifier is reported only once ftxlate.c:2102: error: for each function it appears in.) ftxlate.c:2102: error: parse error before "rin_output" ftxlate.c:2105: error: `u_int32_t' undeclared (first use in this function) ftxlate.c:2105: error: parse error before "result" ftxlate.c:2108: error: `result' undeclared (first use in this function) ftxlate.c:2109: error: `cp' undeclared (first use in this function) ftxlate.c:2111: error: `rin_input' undeclared (first use in this function) ftxlate.c:2113: error: `first4bytes_pad' undeclared (first use in this function) ftxlate.c:2113: error: parse error before "m_pad" ftxlate.c:2114: error: parse error before "m_pad" ftxlate.c:2115: error: parse error before "m_pad" ftxlate.c:2116: error: parse error before "m_pad" ftxlate.c:2134: error: `first4bytes_input' undeclared (first use in this functio n) ftxlate.c:2136: error: `orig_addr' undeclared (first use in this function) ftxlate.c:2157: error: `rin_output' undeclared (first use in this function) ftxlate.c:2162: error: `new_addr' undeclared (first use in this function) make[2]: *** [ftxlate.o] Error 1 make[2]: Leaving directory `/export/home/abarsky/flow-tools-0.68/lib' make[1]: *** [all] Error 2 make[1]: Leaving directory `/export/home/abarsky/flow-tools-0.68/lib' make: *** [all-recursive] Error 1 # -----Original Message----- From: Mark Fullmer [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 01, 2005 1:07 PM To: Alek Barsky Cc: [email protected] Subject: Re: [Flow-tools] error compiling ver 0.68 on Solaris Try adding the following lines at the top of ftxlate.c #define u_int_8_t unsigned char #define u_int_32_t unsigned int Will be fixed in the next snapshot. -- mark On May 30, 2005, at 2:49 PM, Alek Barsky wrote: > Hi Guys! > I am trying to compile flow-tools ver 0.68 on Solaris SPARC platform. > Configure checks all the dependencies and finishes clean. > When I run "make" I receive error below. > I tried all I could, I modified default lib and include paths to point > them to gcc environment, then I pointed them to Solaris files - with no > luck at all. > I tried to do it on Solaris 7 and Solaris 10, I am using gcc 3.4.2. > > Please see an error below. > Thanks, Alek Barsky > > ======================================================================= > = > ============= > > gcc -I. -I./lib -I. -I. -I. -g -Wall -g -Wall -c `test -f 'ftvar.c' > || echo './'`ftvar.c > source='ftxlate.c' object='ftxlate.o' libtool=no \ > depfile='.deps/ftxlate.Po' tmpdepfile='.deps/ftxlate.TPo' \ > depmode=gcc3 /bin/bash ../depcomp \ > gcc -I. -I./lib -I. -I. -I. -g -Wall -g -Wall -c `test -f > 'ftxlate.c' > || echo './'`ftxlate.c > ftxlate.c:69: error: parse error before "u_int8_t" > ftxlate.c:69: warning: no semicolon at end of struct or union > ftxlate.c:70: warning: type defaults to `int' in declaration of `m_pad' > ftxlate.c:70: warning: data definition has no type or storage class > ftxlate.c:74: error: parse error before '}' token > ftxlate.c:76: error: parse error before "u_int32_t" > ftxlate.c:168: error: field `cp' has incomplete type > ftxlate.c:2098: error: parse error before "u_int32_t" > ftxlate.c: In function `cryptopan_anon': > ftxlate.c:2100: error: `u_int8_t' undeclared (first use in this > function) > ftxlate.c:2100: error: (Each undeclared identifier is reported only > once > ftxlate.c:2100: error: for each function it appears in.) > ftxlate.c:2100: error: parse error before "rin_output" > ftxlate.c:2103: error: `u_int32_t' undeclared (first use in this > function) > ftxlate.c:2103: error: parse error before "result" > ftxlate.c:2106: error: `result' undeclared (first use in this function) > ftxlate.c:2107: error: `cp' undeclared (first use in this function) > ftxlate.c:2109: error: `rin_input' undeclared (first use in this > function) > ftxlate.c:2111: error: `first4bytes_pad' undeclared (first use in this > function) > ftxlate.c:2111: error: parse error before "m_pad" > ftxlate.c:2112: error: parse error before "m_pad" > ftxlate.c:2113: error: parse error before "m_pad" > ftxlate.c:2114: error: parse error before "m_pad" > ftxlate.c:2132: error: `first4bytes_input' undeclared (first use in > this > function) > ftxlate.c:2134: error: `orig_addr' undeclared (first use in this > function) > ftxlate.c:2155: error: `rin_output' undeclared (first use in this > function) > ftxlate.c:2160: error: `new_addr' undeclared (first use in this > function) > make[2]: *** [ftxlate.o] Error 1 > make[2]: Leaving directory > `/export/home/abarsky/source/flow-tools-0.68/lib' > make[1]: *** [all] Error 2 > make[1]: Leaving directory > `/export/home/abarsky/source/flow-tools-0.68/lib' > make: *** [all-recursive] Error 1 > > _______________________________________________ > Flow-tools mailing list > [EMAIL PROTECTED] > http://mailman.splintered.net/mailman/listinfo/flow-tools > _______________________________________________ Flow-tools mailing list [EMAIL PROTECTED] http://mailman.splintered.net/mailman/listinfo/flow-tools
