Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52535 - [2.4] Compile of sys-kernel/gentoo-sources-2.4.25-r2 fails on aicasm
Summary: [2.4] Compile of sys-kernel/gentoo-sources-2.4.25-r2 fails on aicasm
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-31 02:53 UTC by Antonio Mari
Modified: 2004-10-19 02:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Mari 2004-05-31 02:53:59 UTC
After doing make menuconfig ; make dep ; make bzImage the compile process stops with this error.

make[5]: Entering directory `/usr/src/linux-2.4.25-gentoo-r2/drivers/scsi/aic7xxx/aicasm'
yacc -d -b aicasm_gram aicasm_gram.y
mv aicasm_gram.tab.c aicasm_gram.c
mv aicasm_gram.tab.h aicasm_gram.h
yacc -d -b aicasm_macro_gram -p mm aicasm_macro_gram.y
mv aicasm_macro_gram.tab.c aicasm_macro_gram.c
mv aicasm_macro_gram.tab.h aicasm_macro_gram.h
lex  -oaicasm_scan.c aicasm_scan.l
lex  -Pmm -oaicasm_macro_scan.c aicasm_macro_scan.l
gcc -I/usr/include -I. aicasm.c aicasm_symbol.c aicasm_gram.c aicasm_macro_gram.c aicasm_scan.c aicasm_macro_scan.c -o aicasm -ldb
/tmp/cc2qi7Lz.o(.text+0x1d0): En la funci
Comment 1 Antonio Mari 2004-05-31 02:53:59 UTC
After doing make menuconfig ; make dep ; make bzImage the compile process stops with this error.

make[5]: Entering directory `/usr/src/linux-2.4.25-gentoo-r2/drivers/scsi/aic7xxx/aicasm'
yacc -d -b aicasm_gram aicasm_gram.y
mv aicasm_gram.tab.c aicasm_gram.c
mv aicasm_gram.tab.h aicasm_gram.h
yacc -d -b aicasm_macro_gram -p mm aicasm_macro_gram.y
mv aicasm_macro_gram.tab.c aicasm_macro_gram.c
mv aicasm_macro_gram.tab.h aicasm_macro_gram.h
lex  -oaicasm_scan.c aicasm_scan.l
lex  -Pmm -oaicasm_macro_scan.c aicasm_macro_scan.l
gcc -I/usr/include -I. aicasm.c aicasm_symbol.c aicasm_gram.c aicasm_macro_gram.c aicasm_scan.c aicasm_macro_scan.c -o aicasm -ldb
/tmp/cc2qi7Lz.o(.text+0x1d0): En la función `symtable_open':
: undefined reference to `__db185_open_4000'
collect2: ld devolvió el estado de salida 1
make[5]: *** [aicasm] Error 1
make[5]: Leaving directory `/usr/src/linux-2.4.25-gentoo-r2/drivers/scsi/aic7xxx/aicasm'

I've got installed on my system db-4.0.14-r3 and db-4.1.25_p1-r3 and if I change manually the Makefile of aicasm to link with db-4.0 the compile process ends ok.

This is the patch that I applied.

--- drivers/scsi/aic7xxx/aicasm/Makefile.orig   2004-04-19 11:06:22.000000000 +0200
+++ drivers/scsi/aic7xxx/aicasm/Makefile        2004-05-31 11:40:14.000000000 +0200
@@ -10,10 +10,10 @@
 GENSRCS=       $(YSRCS:.y=.c) $(LSRCS:.l=.c)
 
 SRCS=  ${CSRCS} ${GENSRCS}
-LIBS=  -ldb
+LIBS=  -ldb-4.0
 clean-files:= ${GENSRCS} ${GENHDRS} $(YSRCS:.y=.output) $(PROG)
 # Override default kernel CFLAGS.  This is a userland app.
-AICASM_CFLAGS:= -I/usr/include -I.
+AICASM_CFLAGS:= -I /usr/include/db4 -I/usr/include -I.
 YFLAGS= -d
 
 NOMAN= noman



Reproducible: Always
Steps to Reproduce:
1.
2.
3.




root@dexter::linux-2.4.25-gentoo-r2# emerge info
Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r9)
=================================================================
System uname: 2.4.20-gentoo-r9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/chroot/dns/etc /chroot/dns/var/bind /etc
/usr/kde/2/share/config /usr/kde/3/share/config /usr/local/Zend/etc
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://marvin.svr.at4.net http://ftp.caliu.info/pub/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://dexter.svr.at4.net/gentoo-portage"
USE="acl acpi apm crypt curl fbcon gd gdbm gif gpm gtk2 imlib jpeg lcms ldap
libg++ libwww mbox memlimit mmx ncurses nls pam pdflib perl png postgres python
quicktime readline sasl slang spell ssl svga tcpd tiff truetype unicode x86 xml
xml2 zlib"

root@dexter::linux-2.4.25-gentoo-r2# qpkg db- -I -v
sys-libs/db-1.85-r1 *
sys-libs/db-4.1.25_p1-r3 *
sys-libs/db-4.0.14-r3 *
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2004-10-19 02:30:15 UTC
Please reopen if this is still an issue with newer gentoo-sources versions, we don't work on the 2.4.25 patchset any longer.