Compilation woes

[email protected] Thu, 22 May 2003 16:43:30 +0200
Newsgroups gmane.comp.db.sapdb.sources
Message-ID <OFB325E013.ED5E139A-ONC1256D2E.004BBC0D-C1256D2E.005201D0@power.com.pl>
Hello,

I've been trying to build SAPDB for three days now...


1. I had this setbuildinfo.pl problem
--------------------------------------------------------------------
But I think I managed to apply the changes to src/sp/gsp100.h by hand.


2. When I try to build dbmcli I get this error
--------------------------------------------------------------------
[sapdb@tandetny SAPDB_DEV]$ imf dbmcli

Can't load '/home/sapdb/DevTool/lib/perl5/PipeExec.so' for module SAPDB:\
:Install::PipeExec: /home/sapdb/DevTool/lib/perl5/PipeExec.so: undefined\
 symbol: PL_sv_undef at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Dyn\
aLoader.pm line 229.

Seems to be perl incompatibility.


3 .When I try to build kernel I get this error
--------------------------------------------------------------------
[sapdb@tandetny SAPDB_DEV]$ imf kernel

In file included from /home/sapdb/V74_04_02/SAPDB_DEV/sys/wrk/incl/SAPDB\
/liveCache/LVC_ProcServerExtender.hpp:36,
                 from LVC_ProcServerExtender.cpp:26:
/home/sapdb/V74_04_02/SAPDB_DEV/usr/incl/Oms/OMS_DbpGlobals.hpp:31:91: \
livecache.h: No such file or directory

Here I have no idea how to fix. Is this file a derived one or just missing?


4. When I try to build tools first I get this
--------------------------------------------------------------------
[sapdb@tandetny TOOLSRC]$ ./configure
(....)
rm: cannot remove `sys/src/base/Makedefs': Is a directory
(....)

[sapdb@tandetny TOOLSRC]$ make
(cd sys/src/base;  make && make install)
make[1]: Entering directory `/home/sapdb/TOOLSRC/sys/src/base'
make[1]: *** Makedefs: Is a directory.  Stop.
make[1]: Leaving directory `/home/sapdb/TOOLSRC/sys/src/base'
make: *** [base] Error 2

Removing the dir by hand and then again configure && make works.


But then again I get vmake segfault:
--------------------------------------------------------------------
[sapdb@tandetny TOOLSRC]$ gdb sys/src/base/vmake/vmake -c
./sys/wrk/fast/tmp/core.5087
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
Core was generated by `/home/sapdb/TOOLSRC/pgm/vmake -i alltools.mac'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x400a496e in free () from /lib/libc.so.6
(gdb) where
#0  0x400a496e in free () from /lib/libc.so.6
#1  0x0805131b in collect_target (target=0x80a7f40 "alltools.mac",
version=102 'f', versdef=102 'f', dep_type=0,
    trgtype=20, ov_mcip=0xbfffcfb0, ctip=0x0, tipp=0xbfffd098,
local_variant=0x0, global_variants=0x0)
    at vmakcoll.c:1250
#2  0x0804f723 in collect (trgline=0xbfffd2a0 "alltools.mac", defvers=102
'f', subdflt=0 '\0', dep_type=0,
    level=0, ctip=0x0, tipp=0xbfffd098) at vmakcoll.c:617
#3  0x08049d95 in main (argc=3, argv=0xbfffe364) at vmake.c:268
#4  0x40044907 in __libc_start_main () from /lib/libc.so.6

[sapdb@tandetny SAPDB_DEV]$ uname -a
Linux tandetny.power 2.4.18-27.8.0 #1 Fri Mar 14 06:45:49 EST 2003 i686
i686 i386 GNU/Linux
[sapdb@tandetny SAPDB_DEV]$ rpm -qa|grep glibc
glibc-kernheaders-2.4-7.20
glibc-2.3.2-4.80
glibc-common-2.3.2-4.80
glibc-devel-2.3.2-4.80

Probably glibc incompatibility.


Could you please tell me which versions of Linux, perl and python are you
using for builds?


Thank you,
Wojtek Narczynski