[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] patch-01-boa for devboard_82-R1_90 (was Re: devboard_82-R1_90boa compile fails on SuSE Linux 8.2)



Peter van Duijn wrote on 17.11.2003 09:03 MET:
>> I just installed the environment for the "Axis 82 - Developer Board".
>> When compiling the first time everything goes well up to the point when
>> the boa webserver gets compiled:
>> 
>> ....
>> boa_grammar.y:29:2: warning: '/*' within comment
>> y.tab.c: In function `yyparse':
>> y.tab.c:872: warning: implicit declaration of function `yylex'
>> boa_grammar.y:81: `NULL' undeclared (first use in this function)
>> boa_grammar.y:81: (Each undeclared identifier is reported only once
>> boa_grammar.y:81: for each function it appears in.)
>> boa_grammar.y:95: warning: implicit declaration of function `strdup'
>> boa_grammar.y:95: warning: assignment makes pointer from integer without
>> a cast
>> boa_grammar.y:102: warning: implicit declaration of function `free'
> 
> 
> This is due to a error in the install script or patch.
> Just edit the boa_grammer.y and add
> #include <malloc.h>
> Under #include "parse.h"

Thanks for the hints. But I modified this a little bit and you can
find the patch at
   ftp://ftp.fl.priv.at/pub/axis/devboard_82/patches/R1_90/patch-01-boa

Would be nice if someone at Axis could take a look and apply the patch
or at least upload it to http://developer.axis.com/download/devboard_82/R1_90/

--- axis/devboard_82/apps/web/boa/src/boa_grammar.y.old	2003-11-17 13:45:14.000000000 +0100
+++ axis/devboard_82/apps/web/boa/src/boa_grammar.y	2003-11-17 13:53:52.000000000 +0100
@@ -22,12 +22,13 @@

  /* $Id: boa_grammar.y,v 1.14 1999/10/12 14:49:07 jon Exp $*/

-#include <string.h>
  #include <stdio.h>
  #include <stdlib.h>
  #include <unistd.h>
  /* #include "boa.h" */
  #include "parse.h"
+#include <malloc.h>
+#include <string.h>

  int yyerror(char * msg);



> Edit the install file and remove (or rem) line 61-78.
> If the script fails again, edit the os/linux/mm/shmem.c file and remove
> any double
> Entries of the shmen readpage function.

As far as I can tell now this was not needed as the boa exec got installed
correctly with just the modifications from above but I can start testing
the system when I finaly get the board this Friday or next Monday.

-- 
MfG / Regards
Friedrich Lobenstock