Building from source

Roland Stigge <[email protected]> 01 Aug 2003 10:52:38 +0200
Newsgroups gmane.comp.db.sapdb.sources
Organization Antcom
Message-ID <[email protected]>
--=-T3hkcmknCTMMTdr0RhJp
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

I'm trying to build SAPDB completely from source, including the
development environment. Trying to build from the packaged sources from
sapdb.org ("Quick Download"), the development environment didn't build
because of missing PATH settings, ptoc etc. Well, this is documented in
the mailing list archives (to use CVS sources), but could be improved
anyhow.

So I tried with the CVS sources and the development environment actually
built. But with this, SAPDB itself didn't want to compile. I tried with
a CVS checkout and sapdb-source-7.4.03.27.tgz. Similar results.

Here's a sample build protocol of sapdb-source-7.4.03.27.tgz:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
ernie@atari:~/sapdb/build/V74_03_27/SAPDB_ORG$ imf all
Create gsp100.h first:
vmake 10.02.13 24-06-2003
VMAKE_PATH      =3D/home/ernie/sapdb/build/V74_03_27/SAPDB_ORG,
01-08-03 09:54:14 start  of    collection phase=20
01-08-03 09:54:14 end    of    collection phase   =20
01-08-03 09:54:14 start  of    gsp100.h   fast=20
VERSIONS        ascii
gsp100.h      =20
01-08-03 09:54:14 end    of    gsp100.h   fast=20
sh: line 1: /home/ernie/sapdb/build/TOOLSRC/pgm/GetBuildNr: No such file
or directory
caution: Can't get a buildnumber. Won't use buildnumber.
vmake 10.02.13 24-06-2003
VMAKE_PATH      =3D/home/ernie/sapdb/build/V74_03_27/SAPDB_ORG,
01-08-03 09:54:14 start  of    collection phase=20
01-08-03 09:54:17 end    of    collection phase   =20
01-08-03 09:54:17 start  of    all.mac   fast=20
PRECOMM.de
PRECOMM.en
SQLM.de =20
SQLM.en =20
DBM.en  =20
REPM.en =20
!sqlmess
RTE_CompilerFeatures.h     =20
SAPDB_Types.h     =20
geo00.h       =20
gsp00_0.h     =20
gsp00_2.h     =20
gsp00         =20
hsp100.h      =20
vpr100.h      =20
gsp01.h       =20
vsp004        =20
gsp05.h       =20
geo102.h      =20
geo572.h      =20
heo01.h       =20

...

because of errors in dependencies made of 'sqlpy.mac',=20
command 'PYTHONPATH=3D$INSTMISC python -c "import sapdb.sql"...' not
executed
because of errors in dependencies made of 'sqlpy.mac',=20
dbapi.py  fast  ascii
sapdbapitop.py fast  ascii
ireport.py fast  ascii
'scriptpython.mac' not made because of dependency errors=20
vcn16-c.c fast=20
dbmcperl.dld fast=20
dbm.pm    fast  ascii
!PERL5LIB=3D$INSTMISC perl -e "use SAP::DBTech::dbm;"
vin76-c.c fast=20
sapdbcperl.dld fast=20
sapdb.pm  fast  ascii
SAP_DB.pm fast  ascii
!PERL5LIB=3D$INSTMISC perl -e "use SAP::DBTech::sapdb;"
'scriptall.mac' not made because of dependency errors=20
sapdbc.jar fast  binary
!dbmcli -s -R $INSTROOT inst_reg -k $INSTROOT
ERR
-24994,ERR_RTE: runtime environment error
1,Mkdir(Registry):No such file or directo
COMMAND error 1=20
'reginst-FULL.mac' not made because of dependency errors=20
dbanalyzer.hpp     =20
types.hpp     =20
arguments.hpp     =20
snapshot.hpp     =20
database.hpp     =20
protocol.hpp     =20
configuration.hpp     =20
error.hpp     =20
dbanalyzer.cpp fast=20
arguments.cpp fast=20
configuration.cpp fast=20
error.cpp fast=20
database.cpp fast=20
snapshot.cpp fast=20
protocol.cpp fast=20
libsqlrte.rel fast=20
libsqlod.rel fast=20
libsqlthread.rel fast=20
dbanalyzer.lnk fast=20
../obj//libsqlrte.rel.o(.text+0x16493): In function `sqlerrs':
: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
../obj//libsqlrte.rel.o(.text+0x1647c): In function `sqlerrs':
: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
dbanalyzer.cfg fast  ascii
dbanalyzer74.cfg fast  ascii
sphsapdbIspc.h     =20
sphsapdbIspc.cpp fast=20
sphsapdb.h     =20
sphsapdbObj.h     =20
sphsapdbObj.cpp fast=20
sphsapdb_i.c fast  ascii
sphsapdb.cpp fast=20
sphsapdb.lst fast  ascii
sphsapdb.dld fast=20
'all.mac' not made because of dependency errors=20
01-08-03 10:44:18 end    of    all.mac   fast=20
ernie@atari:~/sapdb/build/V74_03_27/SAPDB_ORG$
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Inbetween, there are some compile errors like the following, but the
build process doesn't stop, so one waits for hours (on a P4 2.8GHz) to
get the notice that there were some problems at the beginning. I propose
a regular make behaviour aborting on errors.

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
...
vls14_scan.cpp:68: syntax error before `[' token
vls14_scan.cpp:153: syntax error before `[' token
vls14_scan.cpp:185: syntax error before `[' token
vls14_scan.cpp:194: syntax error before `[' token
vls14_scan.cpp:280: syntax error before `[' token
vls14_scan.cpp:366: syntax error before `[' token
vls14_scan.cpp:748: syntax error before `[' token
...
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Tell me if you need more debugging information.

Some info about my environment:

Debian GNU/Linux sarge
Kernel 2.4.20
Perl v5.8.0 built for i386-linux-thread-multi
Python 2.2.3+
GCC 3.2.3

Thanks in advance.

Roland Stigge

--=-T3hkcmknCTMMTdr0RhJp
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQA/KipWcaH/YBv43g8RAi2iAJ42VqE4EWJ8znPq9Us+wkg3NLeRzACgyVDl
s/iyiw8cU8w35JKBapDXa4k=
=Ucuu
-----END PGP SIGNATURE-----

--=-T3hkcmknCTMMTdr0RhJp--