[Gambas-devel] Compiling Gambas 1.9.4 In Slackware 10

MrBiTs mrbits at ...262...
Wed Mar 23 17:39:56 CET 2005


>>>>>>>>>>>>>>>>>
I fixed the error, but I'm afraid about what is really done by that
function. 
Which compiler do you use ?
>>>>>>>>>>>>>>>>>

Hi, All

Let me introduce myself. My name is Diogo, living in Brazil and completely
in love with Gambas :) Congratulations for the idea, for the work.

Trying to compile 1.9.4 downloaded today, 13:30 UTC Time, I got those
errors, while compiling ODBC

main.c:38:17: sql.h: No such file or directory
main.c:39:20: sqlext.h: No such file or directory
main.c:40:22: sqltypes.h: No such file or directory

As I'm using Slackware Linux 10.1, I really don't have these files. They are
in UnixODBC package, that can be downloaded for Slackware 10.1 here:

http://www2.linuxpackages.net/packages/Slackware-10.1/jay/unixODBC/unixODBC-
2.2.11-i686-1jto.tgz

Here is the complete install process:

[root at ...263... ~]# wget
http://www2.linuxpackages.net/packages/Slackware-10.1/jay/unixODBC/unixODBC-
2.2.11-i686-1jto.tgz
--11:26:06--
http://www2.linuxpackages.net/packages/Slackware-10.1/jay/unixODBC/unixODBC-
2.2.11-i686-1jto.tgz
           => `unixODBC-2.2.11-i686-1jto.tgz'
Resolving www2.linuxpackages.net... 64.90.191.130
Connecting to www2.linuxpackages.net[64.90.191.130]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,440,717 [application/x-tar]

100%[=======================================================================
==================>] 1,440,717     47.64K/s    ETA 00:00

11:26:35 (50.46 KB/s) - `unixODBC-2.2.11-i686-1jto.tgz' saved
[1440717/1440717]

[root at ...263... ~]# installpkg unixODBC-2.2.11-i686-1jto.tgz 
Installing package unixODBC-2.2.11-i686-1jto... 
PACKAGE DESCRIPTION:
unixODBC: unixODBC 2.2.11
unixODBC:
unixODBC: unixODBC is an Open Source ODBC sub-system and an ODBC SDK
unixODBC: for Linux, Mac OSX, and UNIX.
unixODBC:
unixODBC: 
unixODBC: http://sourceforge.net/projects/unixodbc/
unixODBC:
unixODBC: Packager: Jay Scott Raymond <jay_scott_raymond at ...264...>
unixODBC:
Executing install script for unixODBC-2.2.11-i686-1jto...

[root at ...263... ~]# find / -name sql.h
/usr/include/sql.h

This solved the errors from gb.db.odbc. Then, in the next step (
gb.db.postgresql ), I got:

main.c:32:22: libpq-fe.h: No such file or directory
main.c:33:22: postgres.h: No such file or directory
main.c:34:21: pg_type.h: No such file or directory

That's right, because I don't have PostgreSQL installed. Then, I installed
it from
http://www2.linuxpackages.net/packages/Slackware-10.0/Daemon/PostgreSQL/post
gresql-8.0.1-i486-1gca.tgz

I need to run ./configure --prefix=/opt/gambas -C again...

Then, errors in sqllite compilation.

I downloaded SQLite from http://www.sqlite.org/sqlite-3.2.0.tar.gz, and
perform a ./configure --prefix=/usr && make && make install. Then, I did ln
-s /usr/include/sqlite3.h /usr/include/sqlite.h and run ./configure again.
Unfortunatelly, I quit here... Anybody can help me ?

Following, the error

make[4]: Entering directory `/root/gambas2-1.9.4/gb.db.sqlite/src'
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..     -g
-O2 -pipe -Wall -fno-exceptions -g -Os -fno-omit-frame-pointer -MT main.lo
-MD -MP -MF ".deps/main.Tpo" -c -o main.lo main.cpp; \
then mv -f ".deps/main.Tpo" ".deps/main.Plo"; else rm -f ".deps/main.Tpo";
exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -pipe -Wall -fno-exceptions -g -Os
-fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp
-fPIC -DPIC -o .libs/main.o
In file included from dataset.h:38,
                 from sqlitedataset.h:33,
                 from main.cpp:40:
qry_dat.h:225: error: syntax error before `*' token
In file included from sqlitedataset.h:33,
                 from main.cpp:40:
dataset.h:72: warning: `class Database' has virtual functions but
non-virtual 
   destructor
dataset.h:158: warning: `class Dataset' has virtual functions but
non-virtual 
   destructor
In file included from main.cpp:40:
sqlitedataset.h:71: error: syntax error before `*' token
sqlitedataset.h:84: error: syntax error before `*' token
sqlitedataset.h:68: warning: `class SqliteDatabase' has virtual functions
but 
   non-virtual destructor
sqlitedataset.h:86: error: extraneous `int' ignored
sqlitedataset.h:86: error: virtual outside class declaration
sqlitedataset.h:86: error: invalid return type for function `SqliteDatabase 
   status()'
sqlitedataset.h:86: error:   because the following virtual functions are 
   abstract:
dataset.h:117: error:   virtual int Database::setErr(int)
dataset.h:127: error:   virtual long int Database::nextid(const char*)
sqlitedataset.h:87: error: virtual outside class declaration
sqlitedataset.h:89: error: virtual outside class declaration
sqlitedataset.h:92: error: virtual outside class declaration
sqlitedataset.h:94: error: virtual outside class declaration
sqlitedataset.h:96: error: virtual outside class declaration
sqlitedataset.h:98: error: virtual outside class declaration
sqlitedataset.h:100: error: virtual outside class declaration
sqlitedataset.h:104: error: virtual outside class declaration
sqlitedataset.h:105: error: virtual outside class declaration
sqlitedataset.h:106: error: virtual outside class declaration
sqlitedataset.h: In function `bool in_transaction()':
sqlitedataset.h:108: error: `_in_transaction' undeclared (first use this 
   function)
sqlitedataset.h:108: error: (Each undeclared identifier is reported only
once 
   for each function it appears in.)
sqlitedataset.h: At global scope:
sqlitedataset.h:111: error: parse error before `}' token
sqlitedataset.h:129: error: syntax error before `*' token
sqlitedataset.h:121: warning: `class SqliteDataset' has virtual functions
but 
   non-virtual destructor
main.cpp: In function `long int db_version()':
main.cpp:546: error: `sqlite_version' undeclared (first use this function)
main.cpp: In function `void* open_database(DB_DESC*, char**)':
main.cpp:582: error: cannot allocate an object of type `SqliteDatabase'
main.cpp:582: error:   since type `SqliteDatabase' has abstract virtual 
   functions
main.cpp:628: error: `sqlite_encoding' undeclared (first use this function)
main.cpp: In function `int database_create(void*, char*)':
main.cpp:2015: error: cannot declare variable `conn2' to be of type `
   SqliteDatabase'
main.cpp:2015: error:   since type `SqliteDatabase' has abstract virtual 
   functions
make[4]: *** [main.lo] Error 1
make[4]: Leaving directory `/root/gambas2-1.9.4/gb.db.sqlite/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/gambas2-1.9.4/gb.db.sqlite'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/gambas2-1.9.4/gb.db.sqlite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gambas2-1.9.4'
make: *** [all] Error 2













More information about the Devel mailing list