[Gambas-user] gambas 0.83
ron
ronstk at ...239...
Mon Feb 9 03:29:50 CET 2004
Hi Thierry,
1)
With the Diff I found may lacks of
#include "common.h" lines
I thought it was not so importand because somewhere else it was declared
already for inclusion. Only in one of the net files it was moved from the .h
to a .c file.
Including had no result, it not exists any more but renamed to gb_common.h
as i figured out later.
Apply your patch result as OK
2)
The sequenc of
> +#include <sys/types.h>
> #include <sys/socket.h>
> #include <sys/poll.h>
> -#include <sys/types.h>
types.h and socket.h was already a problem Danial found, the types.h before
socket.h had another problem i beleave.
There was some discussion about this sequence.
This sequence was as far i know a solution for another problem.
I had no error here.
Now I get an abort about CURL, the same as in
[gambas-user] make install 0.83 by Rizky Tahara
I am going further there.
Ron
On Sunday 08 February 2004 23:33, Thierry Thomas wrote:
> Le Dim 8 fév 04 à 11:53:33 +0100, Benoit Minisini
>
> On FreeBSD, gambas 0.83 compilation aborts on
>
> #v+
> c++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/X11R6/include
> -I../../../src/share -I/usr/local/include -I/usr/local/include
> -I/usr/X11R6/include -D_GETOPT_H -Wall -fno-exceptions -g -c CFont.cpp
> -fPIC -DPIC -o .libs/CFont.lo CFont.cpp: In function `void CFONT_ref(CFONT
> *)':
> CFont.cpp:46: syntax error before `,'
> CFont.cpp:46: syntax error before `)'
> #v-
>
> because offsetof is not defined. The following patch fixes it:
>
> #v+
> --- ./src/lib/qt/CFont.cpp.orig Sat Feb 7 18:56:11 2004
> +++ ./src/lib/qt/CFont.cpp Sun Feb 8 22:38:18 2004
> @@ -29,6 +29,7 @@
> #include <qstringlist.h>
> #include <qfontmetrics.h>
>
> +#include "gb_common.h"
> #include "CWidget.h"
> #include "CDraw.h"
> #include "CFont.h"
> #v-
>
> Further, it aborts because sys/socket.h needs sys/types.h. The following
> patch fixes it:
>
> #v+
> --- ./src/lib/net/CDnsClient.c.orig Sat Feb 7 22:31:07 2004
> +++ ./src/lib/net/CDnsClient.c Sun Feb 8 23:12:20 2004
> @@ -27,9 +27,9 @@
> #include <stdlib.h>
> #include <string.h>
> #include <netdb.h>
> +#include <sys/types.h>
> #include <sys/socket.h>
> #include <sys/poll.h>
> -#include <sys/types.h>
> #include <netinet/in.h>
> #include <arpa/inet.h>
> #include <unistd.h>
> #v-
>
> And then, everything goes well!
>
> Regards,
More information about the User
mailing list