* help compiling db 1.73 on dec osf/1 version 2
@ 1994-04-29 12:20 Pierre Laplante
0 siblings, 0 replies; only message in thread
From: Pierre Laplante @ 1994-04-29 12:20 UTC (permalink / raw)
Please reply directly to laplante@crim.ca.
I try to compile db 1.73 on dec osf/1 version 2.
The machine is a dec 3000 with the alpha processor.
I compiled db-1.73 with gcc using port osf.1.0.2.
Here is the result:
[morse:336] make
gcc -c -O -I. -Iinclude -I../../hash ../../hash/hash.c
gcc -c -O -I. -Iinclude -I../../hash ../../hash/hash_bigkey.c
gcc -c -O -I. -Iinclude -I../../hash ../../hash/hash_buf.c
../../hash/hash_buf.c: In function `__get_buf':
../../hash/hash_buf.c:131: warning: cast from pointer to integer of
different size
../../hash/hash_buf.c:131: warning: cast to pointer from integer of
different size
../../hash/hash_buf.c:132: warning: cast from pointer to integer of
different size
../../hash/hash_buf.c:143: warning: cast from pointer to integer of
different size
../../hash/hash_buf.c:143: warning: cast to pointer from integer of
different size
../../hash/hash_buf.c: In function `newbuf':
../../hash/hash_buf.c:218: warning: cast from pointer to integer of
different size
gcc -c -O -I. -Iinclude -I../../hash ../../hash/hash_func.c
gcc -c -O -I. -Iinclude -I../../hash ../../hash/hash_log2.c
gcc -c -O -I. -Iinclude -I../../hash ../../hash/hash_page.c
gcc -c -O -I. -Iinclude -I../../hash ../../hash/hsearch.c
../../hash/hsearch.c: In function `hcreate':
../../hash/hsearch.c:66: warning: cast from pointer to integer of
different size
gcc -c -O -I. -Iinclude -I../../hash ../../hash/ndbm.c
In file included from ../../hash/ndbm.c:52:
/usr/local/lib/gcc-lib/alpha-dec-osf/2.5.7/include/string.h:225:
conflicting types for `index'
/usr/local/lib/gcc-lib/alpha-dec-osf/2.5.7/include/string.h:149:
previous declaration of `index'
/usr/local/lib/gcc-lib/alpha-dec-osf/2.5.7/include/string.h:226:
conflicting types for `rindex'
/usr/local/lib/gcc-lib/alpha-dec-osf/2.5.7/include/string.h:151:
previous declaration of `rindex'
../../hash/ndbm.c: In function `dbm_open':
../../hash/ndbm.c:75: warning: cast to pointer from integer of
different size
*** Exit 1
Stop.
If I modified ndbm.c to include string first, it compiled correctly
But when I run the test program:
[morse:344] gdb dbtest
GDB is free software and you are welcome to 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.
GDB 4.11 (alpha-dec-osf1.2), Copyright 1993 Free Software Foundation,
Inc...
(gdb) r -o t3 hash t2
Starting program:
/tmp_mnt/misc/local2_macgyver/soft/db-1.73/src/crim_osf1/db.1.73/test/dbtest
-o t3 hash t2
Program received signal SIGSEGV (11), Segmentation fault
0x12000dcc0 in __get_buf ()
(gdb) bt
#0 0x12000dcc0 in __get_buf ()
#1 0x120006990 in hash_access ()
#2 0x1200067c8 in hash_get ()
#3 0x120003cb8 in get () at dbtest.c:332
#4 0x12000399c in main () at dbtest.c:259
(gdb)
Any Idea?
--
Pierre Laplante Analyste senior
C.R.I.M. 1801, avenue Mcgill College, bureau 800
Montreal (Qc) H3A 2N4, (514) 398-8620, Pierre.Laplante@crim.ca
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1994-04-29 12:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-04-29 12:20 help compiling db 1.73 on dec osf/1 version 2 Pierre Laplante
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox