Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239823 - dev-scheme/gauche-cdb-0.3.1 fails to build
Summary: dev-scheme/gauche-cdb-0.3.1 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Akinori Hattori
URL:
Whiteboard:
Keywords:
: 247171 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-05 01:32 UTC by Evil Compile Person
Modified: 2009-01-17 15:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed patch and a new Gauche 0.8.14 ebuild. (0001-Gentoo-Bug-239823.patch,4.32 KB, patch)
2009-01-12 15:12 UTC, Vadim Kuznetsov (RETIRED)
Details | Diff
diff -uB gauche-cdb-0.3.1.ebuild gauche-cdb-0.3.1-r1.ebuild (0.3.1-r1.diff,1.18 KB, text/plain)
2009-01-12 16:10 UTC, Vadim Kuznetsov (RETIRED)
Details
proposed patch for position-independent code (PIC) (0.3.1-r1.diff,1.50 KB, patch)
2009-01-16 22:35 UTC, Vadim Kuznetsov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evil Compile Person 2008-10-05 01:32:23 UTC
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
Comment 1 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-01-12 15:12:44 UTC
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.
Comment 2 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-01-12 16:10:16 UTC
Created attachment 178192 [details]
 diff -uB gauche-cdb-0.3.1.ebuild gauche-cdb-0.3.1-r1.ebuild
Comment 3 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-01-12 16:12:50 UTC
I'm going to file new bug for Gauche 0.8.14.

Thanks,
Vadim
Comment 4 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-01-12 16:31:09 UTC
Guache 0.8.14 ebuild Bug#: 254651
Comment 5 Akinori Hattori gentoo-dev 2009-01-13 13:20:32 UTC
*** Bug 247171 has been marked as a duplicate of this bug. ***
Comment 6 Akinori Hattori gentoo-dev 2009-01-13 13:49:16 UTC
Fixed in CVS.
Comment 7 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-01-16 22:32:48 UTC
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.
Comment 8 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-01-16 22:35:38 UTC
Created attachment 178734 [details, diff]
proposed patch for position-independent code (PIC)
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-17 01:24:55 UTC
Not really a good idea to just append -fPIC.
Comment 10 Vadim Kuznetsov (RETIRED) gentoo-dev 2009-01-17 15:13:33 UTC
(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.