configure: creating ./config.status config.status: creating Makefile /usr/bin/gauche-config --fixup-extension cdb /usr/bin/gosh genstub cdb.stub /usr/bin/gauche-config --fixup-extension cdb i686-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib/gauche/0.8.12/include -O2 -march=i686 -pipe -I/usr/lib/gauche/0.8.12/include -c cdb_head.c -o cdb_head.o i686-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib/gauche/0.8.12/include -O2 -march=i686 -pipe -I/usr/lib/gauche/0.8.12/include -c cdb_tail.c -o cdb_tail.o i686-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib/gauche/0.8.12/include -O2 -march=i686 -pipe -I/usr/lib/gauche/0.8.12/include -c cdb.c -o cdb.o cdb.c:11:22: error: tinycdb.h: No such file or directory cdb.c:17: error: field 'cdb' has incomplete type cdb.c:18: error: field 'cdbf' has incomplete type cdb.c:19: error: field 'cdbm' has incomplete type cdb.c: In function 'cdb_finalize': cdb.c:47: warning: implicit declaration of function 'cdb_free' cdb.c:47: warning: implicit declaration of function 'cdb_fileno' cdb.c:50: warning: implicit declaration of function 'cdb_make_finish' cdb.c: In function 'cdb_cdb_unpack': cdb.c:108: warning: implicit declaration of function 'cdb_unpack' cdb.c: In function 'cdb_cdb_open': cdb.c:130: warning: implicit declaration of function 'cdb_init' cdb.c: In function 'cdb_cdb_find': cdb.c:208: warning: implicit declaration of function 'cdb_find' cdb.c: In function 'cdb_cdb_datapos': cdb.c:225: warning: implicit declaration of function 'cdb_datapos' cdb.c: In function 'cdb_cdb_datalen': cdb.c:241: warning: implicit declaration of function 'cdb_datalen' cdb.c: In function 'cdb_cdb_read': cdb.c:270: warning: implicit declaration of function 'cdb_read' cdb.c: In function 'cdb_cdb_findinit': cdb.c:294: warning: implicit declaration of function 'cdb_findinit' cdb.c: In function 'cdb_cdb_findnext': cdb.c:313: warning: implicit declaration of function 'cdb_findnext' cdb.c: In function 'cdb_cdb_make_open': cdb.c:347: warning: implicit declaration of function 'cdb_make_start' cdb.c: In function 'cdb_cdb_make_add': cdb.c:378: warning: implicit declaration of function 'cdb_make_add' cdb.c: In function 'cdb_cdb_make_exists': cdb.c:404: warning: implicit declaration of function 'cdb_make_exists' cdb.c: In function 'cdb_cdb_make_put': cdb.c:445: warning: implicit declaration of function 'cdb_make_put' cdb.c: In function 'internal_init': cdb.c:474: error: 'CDB_PUT_ADD' undeclared (first use in this function) cdb.c:474: error: (Each undeclared identifier is reported only once cdb.c:474: error: for each function it appears in.) cdb.c:477: error: 'CDB_PUT_REPLACE' undeclared (first use in this function) cdb.c:480: error: 'CDB_PUT_INSERT' undeclared (first use in this function) cdb.c:483: error: 'CDB_PUT_WARN' undeclared (first use in this function) make: *** [cdb.o] Error 1 rm cdb.c * * ERROR: dev-scheme/gauche-cdb-0.3.1 failed. Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-hardened-r4 x86_64) ================================================================= System uname: 2.6.25-hardened-r4 x86_64 Intel(R) Xeon(R) CPU E5420 @ 2.50GHz Timestamp of tree: Fri, 03 Oct 2008 15:15:02 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.5.2-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r2 sys-devel/automake: 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.sunet.se/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl berkdb bzip2 cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glkhd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 178177 [details, diff] proposed patch and a new Gauche 0.8.14 ebuild. The problem was the incorrect gauche-cdb-0.3.1-tinycdb.diff patch. Current patch includes Gauche 0.8.14 ebuild - version bump. Because I've raised DEPEND for gauche-cdb to >=dev-scheme/gauche-0.8.14 gauche-cdb-0.3.1-r1 compiles fine with gauche 0.8.13, but it failed the test. It passes the test with 0.8.14. Thanks, Vadim Kuznetsov.
Created attachment 178192 [details] diff -uB gauche-cdb-0.3.1.ebuild gauche-cdb-0.3.1-r1.ebuild
I'm going to file new bug for Gauche 0.8.14. Thanks, Vadim
Guache 0.8.14 ebuild Bug#: 254651
*** Bug 247171 has been marked as a duplicate of this bug. ***
Fixed in CVS.
It compiles with a warning on x86: i686-pc-linux-gnu-gcc -std=gnu99 -Wl,-rpath -Wl,`gauche-config --sysarchdir` -Wl,-O1 -shared -o cdb.so cdb_head.o cdb.o cdb_tail.o -L/usr/lib/gauche/0.8.14/i686-pc-linux-gnu -lgauche -ldl -lcrypt -lutil -lm -lpthread -lcdb /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. rm cdb.c Ant failed to compile on amd64: x86_64-pc-linux-gnu-gcc -std=gnu99 -Wl,-rpath -Wl,`gauche-config --sysarchdir` -Wl,-O1 -shared -o cdb.so cdb_head.o cdb.o cdb_tail.o -L/usr/lib64/gauche/0.8.14/x86_64-pc-linux-gnu -lgauche -ldl -lcrypt -lutil -lm -lpthread -lcdb /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cdb.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC cdb.o: could not read symbols: Bad value -fPIC flag is needed. Thanks, Vadim.
Created attachment 178734 [details, diff] proposed patch for position-independent code (PIC)
Not really a good idea to just append -fPIC.
(In reply to comment #9) > Not really a good idea to just append -fPIC. > What do you think is wrong with it? i686-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib/gauche/0.8.14/include -O2 -march=pentium-m -pipe -fPIC -I/usr/lib/gauche/0.8.14/include -c cdb_tail.c -o cdb_tail.o i686-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib/gauche/0.8.14/include -O2 -march=pentium-m -pipe -fPIC -I/usr/lib/gauche/0.8.14/include -c cdb_head.c -o cdb_head.o i686-pc-linux-gnu-gcc -std=gnu99 -I/usr/lib/gauche/0.8.14/include -O2 -march=pentium-m -pipe -fPIC -I/usr/lib/gauche/0.8.14/include -c cdb.c -o cdb.o i686-pc-linux-gnu-gcc -std=gnu99 -Wl,-rpath -Wl,`gauche-config --sysarchdir` -Wl,-O1 -shared -o cdb.so cdb_head.o cdb.o cdb_tail.o -L/usr/lib/gauche/0.8.14/i686-pc-linux-gnu -lgauche -ldl -lcrypt -lutil -lm -lpthread -lcdb rm cdb.c >>> Source compiled. Thanks, Vadim.