Great (but strange): after rebuilding all the sources with a lower optimization level (thanks Karsten Jensen), at least the dbms seems
to start now:


toberste@stalker$ ./create_demo_db.sh
ERR 11641 XSERVER XSERVER is already running!
create database TST...
set parameters for TST...
start TST...
initialize TST...
load system tables...
load system tables failed: ERR
-24964,ERR_EXECUTE: error in program execution
256,/home/toberste/sandbox/sapdb74/sapdb-74/usr/bin/x_python /home/toberste/sandbox/sapdb74/sapdb-74/usr/env/lsystab.py -d TST -u dba,* -dompwd domain en ENG
Traceback (innermost last):
File "/home/toberste/sandbox/sapdb74/sapdb-74/usr/env/lsystab.py", line 40, in ?
from installib import *
File "/home/toberste/sandbox/sapdb74/sapdb-74/usr/env/installib.py", line 30, in ?
import loader
File "/home/toberste/sandbox/sapdb74/sapdb-74/usr/misc/loader.py", line 20, in ?
from sapdb.loader import *
File "/home/toberste/sandbox/sapdb74/sapdb-74/usr/misc/sapdb/loader.py", line 44, in ?
from python15.loader import *
ImportError: No module named python15.loader
toberste@stalker$




What is left is some conflict issue with the default python of
debian (python 2.1). Puh, I'm there .. nearly;) Any hints?


Regarding the problem with higher / architecture specific (i686) optimization .. how is the official Linux RPM built? With what
versions of cc/as? Here are mine:

toberste@stalker$ as --version
GNU assembler 2.12.90.0.1 20020307 Debian/GNU Linux
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
This assembler was configured for a target of `i386-linux'.
toberste@stalker$ cc --version
2.95.4


Greets,
Tobias


P.S. this time I've taken time to exactly track all actions performed
during build/install => attachment

How to create SAP DB from scratch on Debian 3.0 (woody) / i386

Login to CVS:

   1. Type in a single line:
      cvs -d :pserver:[EMAIL PROTECTED]:/cvsroots/sapdb login

   2. Press ENTER when you are asked for a password.


Build the Tools:

   3. Getting the sources of the Tools
      cvs -z5 -d :pserver:[EMAIL PROTECTED]:/cvsroots/sapdb co TOOLSRC

      Note: The cvs client may hang after it has finished checking
            out the source tree. Simply cancel the cvs client.

   4. Edit TOOLSRC/sys/src/tt/toolvars-tml.pl.tt and replace

      if ($MACH eq "I386") {
          @OPTIMIZE = ("-O3", "-march=pentium", "-mcpu=pentiumpro");
      } elsif ($MACH eq "IA64") {

      with

      if ($MACH eq "I386") {
          @OPTIMIZE = ("-O2");
      } elsif ($MACH eq "IA64") {

   5. Edit TOOLSRC/sys/desc/bison.mac and replace

      rm $TOOL/gnu/bin/bison;

      with

      rm -f $TOOL/gnu/bin/bison;

   6. Edit TOOLSRC/sys/desc/alltools.mac and move line 419:

      ::tt/cpan/SAPDB/Install/xs.mac

      right before line 26:

      # make first
      ::tt/cpan/SAPDB/Install/xs.mac
      ToolLib.pm.tt

   7. Now do ..

      cd TOOLSRC
      ./configure
      make base basescripts
      cp sys/src/APODev/lcmake.pm lib/perl5
      mkdir lib/perl5/Mail
      cp sys/src/Perl/Mail/Sendmail.pm lib/perl5/Mail
      make alltools
      su
      bin/prepare_inst.pl
      exit
      make checkRegistryDir
      cd ..


Build the SAP DB:

   9. Getting the sources of the database software
      cvs -z5 -d :pserver:[EMAIL PROTECTED]:/cvsroots/sapdb co sapdb-74

      Note: The cvs client may hang after it has finished checking
            out the source tree. Simply cancel the cvs client.

  10. Edit sabdb-74/sys/src/en/gen04.h and append the following 2 lines

      #undef          true
      #undef          false

      right after the lines

      /* defined in curses.h */
      #undef          OK
      #undef          TRUE
      #undef          FALSE

  11. Creating the configuration script (one line)
      python TOOLSRC/bin/newSapdbSrc.py
         -pyinclude /usr/include/python2.1 sapdb-74


  12. Executing the configuration script
      . devsapdb

  13. Building the database software
      imf all

Reply via email to