From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b447fe8b7dd99f01,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-05-02 19:23:05 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!nntp.gmd.de!xlink.net!howland.reston.ans.net!wupost!decwrl!decwrl!tribune.usask.ca!canopus.cc.umanitoba.ca!newsflash.concordia.ca!CC.UMontreal.CA!IRO.UMontreal.CA!clouso.crim.ca!ness!laplante From: laplante@crim.ca (Pierre Laplante) Subject: help compiling db 1.73 on dec osf/1 version 2 Message-ID: Summary: help compiling db 1.73 on dec osf/1 version 2 Keywords: dec, osf, db, sendmail Sender: news@crim.ca Nntp-Posting-Host: clouso.crim.ca Organization: CRIM (Centre de Recherche Informatique de Montreal) Date: Fri, 29 Apr 1994 12:20:14 GMT 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