[Top] [All Lists]

Re: freeacs build error

To: Khaled Ben Amor <>,
Subject: Re: freeacs build error
From: Khaled Ben Amor <>
Date: Mon, 20 May 2013 11:49:22 +0100
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=6WZrp59pWq4aMU15cVkqQGQXn6ssvGIPp/jN6iEkxSc=; b=a/S3hsNjSZPgjtUahczXdz4vezs59jp50HQt7JLnEqxN4NmU8451qo74mkO0cvhQ+c TK6dX5xPF7y6d45C3zArHV28ESUWZvkqBYWrG0MkoYGHIoCo708yZhc8Uc71Ymf2U7iU 6mRHM6dWoVX+5FXfEzt5yBxO0ejWozHqBAXmVAteErUh9/wT6YMafT9k0uzI8yBhHZ4W 1nakVIf+o0YWNhgMFge0Uih2oIdUQE2mnnDCRjq3yDHbWgn/WwYmabMy6pf1rOJoGKtu 1pW42z9YFisQXIulYcWcFraXTQ+gckfrrxv/N6cERsvaNBYBrMaACLOVp+mUKmQOPVk0 sp8A==
In-reply-to: <20130520082553-21371@mutt-kz>
Original-recipient: rfc822;
References: <> <20130520082553-21371@mutt-kz>
Thank you Luka !
I applied patches and I can now buid freeacs source code.
I think that the build error is due to checkout to a special tag as explained in
> git tag

> git checkout v0.1

Good work !

2013/5/20 Luka Perkov <>
Hi Khaled,

On Thu, May 16, 2013 at 04:13:19PM +0100, Khaled Ben Amor wrote:
> I get freeacs and all its dependency code by  git.

Please install patches for the dependencies that can be found in this
git repository:

git clone git://

> I manually copied .so and .h files into /usr/include and /usr/lib for the
> following libraries :
>    - cscgi
>    - cnetstring
> because no make install is defined.

Like said above look at that git repository to see how to install the
packages. The patches you should install are:


> When I tried to make freeacs code I obtain following error :
> Making all in bin
> make[1]: Entering directory
> `/media/LinuxDisk/projects/pan_router/src/tr69_work/freeacs-ng/bin'
> gcc -std=gnu99 -DPACKAGE_NAME=\"freeacs-ng\"
> -DPACKAGE_TARNAME=\"freeacs-ng\" -DPACKAGE_VERSION=\"0.1\"
>\" -DPACKAGE_URL=\"\" -DPACKAGE=\"freeacs-ng\"
> -DHAVE_STRING_H=1 -I.          -I/usr/include/libxml2
> -I/usr/include/json-c    -g -O2 -MT freeacs_ng-freeacs-ng.o -MD -MP -MF
> .deps/freeacs_ng-freeacs-ng.Tpo -c -o freeacs_ng-freeacs-ng.o `test -f
> '../src/freeacs-ng.c' || echo './'`../src/freeacs-ng.c
> ../src/freeacs-ng.c: In function ‘read_cb’:
> ../src/freeacs-ng.c:584: warning: passing argument 1 of ‘scgi_consume’ from
> incompatible pointer type
> /usr/include/scgi.h:275: note: expected ‘const struct scgi_limits *’ but
> argument is of type ‘struct scgi_parser *’
> ../src/freeacs-ng.c:584: warning: passing argument 2 of ‘scgi_consume’ from
> incompatible pointer type
> /usr/include/scgi.h:275: note: expected ‘struct scgi_parser *’ but argument
> is of type ‘char *’
> ../src/freeacs-ng.c:584: warning: passing argument 3 of ‘scgi_consume’
> makes pointer from integer without a cast
> /usr/include/scgi.h:275: note: expected ‘const char *’ but argument is of
> type ‘size_t’
> *../src/freeacs-ng.c:584: error: too few arguments to function
> ‘scgi_consume’*
> make[1]: *** [freeacs_ng-freeacs-ng.o] Error 1
> make[1]: Leaving directory
> `/media/LinuxDisk/projects/pan_router/src/tr69_work/freeacs-ng/bin'
> make: *** [all-recursive] Error 1

Something is not right with your setup. Here is partial output of /usr/include/scgi.h
where you can see that scgi_consume is in fact size_t:

289 /*!
290  * @brief Feed data to the parser.
291  * @param data Pointer to first byte of data.
292  * @param size Size of @a data, in bytes.
293  * @return Number of bytes consumed.  Normally, this value is equal to
294  *  @a size.  However, the parser may choose to interrupt parser early or stop
295  *  processing data because of an error.
296  *
297  * You should @e always check the parser's @c error field after a call to this
298  * method.  In particular, all data may be consumed before an error is
299  * reported, so a return value equal to @a size is not a reliable indicator of
300  * success.
301  */
302 size_t scgi_consume (struct scgi_parser * parser,
303                      const char * data, size_t size);

Reinstall all the dependencies using archlinux PKGBUILD files as a


<Prev in Thread] Current Thread [Next in Thread>