Re: A little help making cdb-0.75 please
Paul Gillis <[email protected]> Wed, 04 Jan 2006 18:08:14 +1100
| Newsgroups | gmane.comp.djb.cdb |
|---|---|
| Message-ID | <[email protected]> |
Randy Gordey wrote:
> Greetings All!
>
>
>
> I am having a bit of trouble making cdb. I included everything I thought
> would be helpful. If I missed something please feel free to let me know.
>
>
>
> [root@centos cdb-0.75]# make
>
> ( cat warn-auto.sh; \
>
> echo 'main="$1"; shift'; \
>
> echo exec "`head -1 conf-ld`" \
>
> '-o "$main" "$main".o ${1+"$@"}' \
>
> ) > load
>
> chmod 755 load
>
> ( cat warn-auto.sh; \
>
> echo exec "`head -1 conf-cc`" '-c ${1+"$@"}' \
>
> ) > compile
>
> chmod 755 compile
>
> ( ( ./compile tryulong32.c && ./load tryulong32 && \
>
> ./tryulong32 ) >/dev/null 2>&1 \
>
> && cat uint32.h2 || cat uint32.h1 ) > uint32.h
>
> rm -f tryulong32.o tryulong32
>
> ./compile cdbget.c
>
>
>
> …<SNIP>…
>
>
>
> ./compile byte_copy.c
>
> ./compile byte_cr.c
>
> ./compile str_len.c
>
> ./compile fmt_ulong.c
>
> ./compile uint32_unpack.c
>
> ./compile byte_diff.c
>
> ./compile uint32_pack.c
>
> ./compile scan_ulong.c
>
> ./makelib byte.a byte_copy.o byte_cr.o str_len.o \
>
> fmt_ulong.o uint32_unpack.o byte_diff.o uint32_pack.o \
>
> scan_ulong.o
>
> ./load cdbget cdb.a buffer.a unix.a byte.a
>
> cdb.a(cdb.o)(.text+0xda): In function `cdb_read':
>
> : undefined reference to `errno'
>
> cdb.a(cdb.o)(.text+0x12c): In function `cdb_read':
>
> : undefined reference to `errno'
>
> buffer.a(strerr_sys.o)(.text+0x8): In function `strerr_sysinit':
>
> : undefined reference to `errno'
>
> buffer.a(buffer_put.o)(.text+0x43): In function `allwrite':
>
> : undefined reference to `errno'
>
> collect2: ld returned 1 exit status
>
> make: *** [cdbget] Error 1
>
> [root@ebrelay cdb-0.75]# make setup check
>
> ./load cdbget cdb.a buffer.a unix.a byte.a
>
> cdb.a(cdb.o)(.text+0xda): In function `cdb_read':
>
> : undefined reference to `errno'
>
> cdb.a(cdb.o)(.text+0x12c): In function `cdb_read':
>
> : undefined reference to `errno'
>
> buffer.a(strerr_sys.o)(.text+0x8): In function `strerr_sysinit':
>
> : undefined reference to `errno'
>
> buffer.a(buffer_put.o)(.text+0x43): In function `allwrite':
>
> : undefined reference to `errno'
>
> collect2: ld returned 1 exit status
>
> make: *** [cdbget] Error 1
>
> [root@centos cdb-0.75]#
>
>
>
>
>
>
>
> Hmm environment details now I guess…
>
>
>
> CentOS release 4.2 (Final)
>
>
>
> Linux centos.xxx.com 2.6.9-22.0.1.EL #1 Thu Oct 27 12:26:11 CDT 2005
> i686 i686 i386 GNU/Linux
>
>
>
> gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
>
> Copyright (C) 2004 Free Software Foundation, Inc.
>
> This is free software; see the source for copying conditions. There is NO
>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
>
> glibc-2.3.4-2.13
>
>
>
> GNU Make 3.80
>
> Copyright (C) 2002 Free Software Foundation, Inc.
>
> This is free software; see the source for copying conditions.
>
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
>
> PARTICULAR PURPOSE.
>
>
>
>
>
> Thank you in advance for your time and effort. Any help or suggestions
> are greatly appreciated.
>
>
>
>
>
>
>
> ~R.Gordey
>
>
>
Randy,
Try this patch, it worked for me on CentOS 4.1
http://distro.ibiblio.org/pub/linux/distributions/sourcemage/codex/stable/utils/cdb/gcc-3.3.patch
Paul Gillis