RE: Building from source

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

On Fri, 2003-08-01 at 17:46, Dittmar, Daniel wrote:
> You need the Include files for Python. If you install your Linux from rpm=
, you
> need something like Python-develop. Otherwise, you need a Python source p=
ackage,
> ./configure it and copy the file Python-2.2/pyconfig.h to Python-2.2/Incl=
ude. Then=20
> export PYTHON_INCLUDE=3D...Python-2.2/Include

The Debian package python-dev includes /usr/include/python2.2/Python.h
but SAPDB doesn't seem to find it automatically.

> You could also set export PYTHON_INCLUDE=3DNONE

Thanks for the suggestions. I just made a symlink from
/usr/include/python2.2 to /usr/include/python.

Now the protocol is much shorter. See below.

> Then the Python extensions won't be built. By there are required for the
> installation of a database.

Well, this would be nice. :)

> See also http://sapdb.2scale.net/moin.cgi/CompilingHints

OK, I made the

$ cp `which python` $SRC/redist/bin/I386_Linux_32

copy but the suggestions to replace the *.py.ipy files don't work
because I don't have all these in my distribution:

APPS.py.ipy      installib.py.ipy    ORADDSYN.py.ipy    SYSDBACOM.py.ipy
AS.py.ipy        lapps.py.ipy        ORADDV.py.ipy       SYSDBA.py.ipy
CNR3DATA.py.ipy  load2repman.py.ipy  PRECOM.py.ipy       WA.py.ipy
CNR3TAB.py.ipy   lsystab.py.ipy      QP.py.ipy           WEBDAV.py.ipy
DBMVIEWS.py.ipy  ODBC.py.ipy         repmanEx.py.ipy     XDDCOM.py.ipy
GARBAGE.py.ipy   ORADDCOM.py.ipy     SAPDBLOADER.py.ipy  XDD.py.ipy
INFO.py.ipy      ORADD.py.ipy        SHOWCMD.py.ipy      XMLIMAPI.py.ipy

> > TARGET: command 'dbmcli ' in reginst.mac     STATUS: ERROR
> >=20
> > ERR
> > -24994,ERR_RTE: runtime environment error
> > 1,Mkdir(Registry):No such file or directo
>=20
> After building the tools, did you run the script $(TOOL)/bin/prepare_inst=
.pl
> to create the directory /usr/spool/sql/config?

Not at first. I decided to do the alternative "export NOREG=3D1" because I
didn't want these scripts to create the non-standards-conformant
hierarchy /usr/spool/. Now that it seems I really need it (?), I did it
and ran "imf all" again. The result:

=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=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 18:31:00 start  of    collection phase=20
01-08-03 18:31:00 end    of    collection phase   =20
01-08-03 18:31:00 start  of    gsp100.h   fast=20
01-08-03 18:31:00 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 18:31:00 start  of    collection phase=20
01-08-03 18:31:03 end    of    collection phase   =20
01-08-03 18:31:03 start  of    all.mac   fast=20
!dbmcli -s -R $INSTROOT inst_reg -k $INSTROOT -c
OK
!irconf -r -p $INSTROOT > /dev/null
!$TOOLSHELL -S ifaconf.pl $INSTRUNTIME
Error : Cannot find any installed version of CPC Driver..
/home/ernie/sapdb/build/V74_03_27/SAPDB_ORG/usr/runtime/7403 -> 7.4.3.0\
,/home/ernie/sapdb/build/V74_03_27/SAPDB_ORG/usr registered.
!deletePattern.pl $WRK/incl/vpa00wic.h      $OWN/usr/incl/WINDOWS.H=20
"^#.*line.*"
!deletePattern.pl $WRK/incl/vpa00sql.h      $OWN/usr/incl/sql.h    =20
vpa00
!deletePattern.pl $WRK/incl/vpa00sqlext.h   $OWN/usr/incl/sqlext.h =20
vpa00
!deletePattern.pl $WRK/incl/vpa00sqltypes.h $OWN/usr/incl/sqltypes.h
vpa00
!deletePattern.pl $WRK/incl/vpa00sqlucode.h $OWN/usr/incl/sqlucode.h
vpa00
!cp $TOOL/pgm/idl2xml $INSTROOT/pgm/idl2xml
!cp $TOOL/pgm/xml2ispc $INSTROOT/pgm/xml2ispc
!rm -f  $DBROOT/env/LOADER.py
!rm -f  $DBROOT/env/LOADER.pyc
vls14_scan.l fast=20
vls14_scan.cpp:65: 'flex_int32_t' is used as a type, but is not defined
\
as a=20
   type.
vls14_scan.cpp:66: 'flex_int32_t' is used as a type, but is not defined\
 as a=20
   type.
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
vls14_scan.cpp: In member function `int=20
   ReplicationScanner::yylex(ScanReturn&)':
vls14_scan.cpp:1299: `YY_G' undeclared (first use this function)
vls14_scan.cpp:1299: (Each undeclared identifier is reported only once \
for each=20
   function it appears in.)
vls14_scan.cpp:1303: `yy_ec' undeclared (first use this function)
vls14_scan.cpp:1304: `yy_accept' undeclared (first use this function)
vls14_scan.cpp:1309: `yy_chk' undeclared (first use this function)
vls14_scan.cpp:1309: `yy_base' undeclared (first use this function)
vls14_scan.cpp:1311: `yy_def' undeclared (first use this function)
vls14_scan.cpp:1313: `yy_meta' undeclared (first use this function)
vls14_scan.cpp:1315: `yy_nxt' undeclared (first use this function)
vls14_scan.cpp:2938: `INITIAL' undeclared (first use this function)
cannot utime 'vls14_scan.o': No such file or directory=20
'lsxlib.lib' not made because of dependency errors=20
'lserver.lnk' not made because of dependency errors=20
'pyinst.mac' not made because of dependency errors=20
'repmcli.lnk' not made because of dependency errors=20
'loadercli.lnk' not made because of dependency errors=20
'ls.mac' not made because of dependency errors=20
'allknl.mac' not made because of dependency errors=20
!(cd $DBROOT/misc;cc bgrep.c -o bgrep;cc patchb.c -o patchb;rm
bgrep.c;rm patchb.c)
/home/ernie/sapdb/build/V74_03_27/SAPDB_ORG/tmp/ccjzvCBl.o(.text+0x219):\
 In function `main':
: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
WebAgent74.ini.0w fast  ascii
!sed s#\$OWN32#`echo $OWN`/usr#g $OWN/usr/config/WebAgent74.ini >
$OWN/usr/config/WebAgent74.ini.ready_tmp
!sed s#\$OWN64#`echo $OWN`/usr#g
$OWN/usr/config/WebAgent74.ini.ready_tmp >
$OWN/usr/config/WebAgent74.ini.ready_tmp2
!sed s#\$LOG#`echo $OWN`/usr/log#g
$OWN/usr/config/WebAgent74.ini.ready_tmp2 >
$OWN/usr/config/WebAgent74.ini.ready
!rm $OWN/usr/config/WebAgent74.ini.ready_tmp
!rm $OWN/usr/config/WebAgent74.ini.ready_tmp2
libwapi.dld fast=20
waecho.dld fast=20
libodcompr.dld fast=20
libdbfsapi.dld fast=20
websql.dld fast=20
webdbm.dld fast=20
!rm $INSTROOT/Log/WDVCAPI_Log.log
libwdvcapi.dld fast=20
libwdvhandler.dld fast=20
wahttp.lnk fast=20
../obj//wahttp.rel.o(.text+0x3517): In function
`Log_WriteSyscallError':\

: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
../obj//wahttp.rel.o(.text+0x350e): In function `Log_WriteSyscallError'\
:
: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
!rm $INSTROOT/log/XMLIdx_Dummy.c
!sed s#\$INSTROOT#`echo $INSTROOT`#g $INSTROOT/config/sapdbxie.ini.org >
$INSTROOT/config/sapdbxie.1
!sed s#\$VERSION#`echo $DEV_STUDIO`#g $INSTROOT/config/sapdbxie.1 >
$INSTROOT/config/sapdbxie.2
!sed s#\$NODE#`echo $HOSTNAME`#g $INSTROOT/config/sapdbxie.2 >
$INSTROOT/config/sapdbxie.3
!sed s#\$LOG#`echo $INSTROOT`/log#g $INSTROOT/config/sapdbxie.3 >
$INSTROOT/config/sapdbxie.4
!sed s#\$LIB#`echo $INSTROOT`/lib#g $INSTROOT/config/sapdbxie.4 >
$INSTROOT/config/sapdbxie.ini
!rm $INSTROOT/config/sapdbxie.1
!rm $INSTROOT/config/sapdbxie.2
!rm $INSTROOT/config/sapdbxie.3
!rm $INSTROOT/config/sapdbxie.4
XMLIdx.lnk fast=20
WDVXIS.dld fast=20
!dbmcli -s -R $INSTROOT inst_reg -k $INSTROOT
OK
'all.mac' not made because of dependency errors=20
01-08-03 18:31:14 end    of    all.mac   fast=20
=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=3D=3D=3D

The file all.mac.e0 is quite short now:

=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=3D=3D=3D
<html><head><meta http-equiv=3D"Content-Type"
content=3D"text/html"></head><body ><P
RE><PLAINTEXT>
------------------------------------------------------------
PHASE: COLLECTING (01-08-03 18:31:00 started)
------------------------------------------------------------

------------------------------------------------------------
PHASE: MAKE    TARGET: all.mac   VERSION:fast
------------------------------------------------------------

TARGET: 'lsxlib.lib'     STATUS: ERROR

not made because of dependency errors of:=20
        vls14_scan.l

=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

TARGET: 'lserver.lnk'     STATUS: ERROR

not made because of dependency errors of:=20
        lsxlib.lib

=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

TARGET: 'pyinst.mac'     STATUS: ERROR

not made because of dependency errors of:=20
        lserver.lnk

=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

TARGET: 'ls.mac'     STATUS: ERROR

not made because of dependency errors of:=20
        lserver.lnk
        repmcli.lnk
        loadercli.lnk

=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

TARGET: 'allknl.mac'     STATUS: ERROR

not made because of dependency errors of:=20
        pyinst.mac
        ls.mac

=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

TARGET: 'all.mac'     STATUS: ERROR

not made because of dependency errors of:=20
        allknl.mac

=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

------------------------------------------------------------
END: MAKE      TARGET: all.mac   RESULT: ERROR
------------------------------------------------------------
=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=3D=3D=3D

So some questions remain:

* How do I resolve these remaining dependency errors?
* What about the missing "CPC Driver"?
* Is it possible to build the registry somewhere else than under
/usr/spool/?

> >> vls14_scan.cpp:68: syntax error before `[' token
> > I guess you mean sys/wrk/fast/tmp/vls14_scan.save? This would be:
> >=20
> > |   struct yy_trans_info
> > |           {
> > |           flex_int32_t yy_verify;
> > |           flex_int32_t yy_nxt;
> > |           };
> > 68: static yyconst flex_int16_t yy_accept[738] =3D
> > |       {   0,
>=20
> I have no idea. Maybe you could try=20
> $ imf vls14_scan.l/-E > vls14.i
>=20
> Hopefully, this passes -E to the actual C++ compiler and gives us the
> preprocessor output for this line.

It generates the file http://www.antcom.de/download/vls14.i (1.3MB) but
there's no "yyconst" in it. But maybe it is of some help for you.

Thanks for your help.

Roland Stigge

--=-XpxOiLyZIBsjZ8nqFkcY
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/KpuMcaH/YBv43g8RAjb0AKDIwk6lm6uc2lZJrrgm//9durybBwCgu98m
el5Lon01CCNAyUUmwgec56E=
=1j2J
-----END PGP SIGNATURE-----

--=-XpxOiLyZIBsjZ8nqFkcY--