mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: rct@gherkin.frus.com (Bob_Tracy(0000))
To: linux-kernel@vger.kernel.org
Subject: [PATCH] aic7xxx/aicasm ld failure
Date: Sun, 1 Dec 2002 09:14:17 -0600 (CST)	[thread overview]
Message-ID: <20021201151418.16BB94ED3@gherkin.frus.com> (raw)

Dunno what the officially blessed compiler is these days, or whether
that even makes a difference.  The problem is that the order in which
object modules and libraries are specified on the linker command line
is significant.  The following patchlet (against 2.5.48-2.5.50) moves
"-ldb" out of AICASM_CFLAGS and into a separate LIBS variable to avoid
an undefined __db185_open symbol.


--- linux/drivers/scsi/aic7xxx/aicasm/Makefile.orig	2002-11-12 15:30:39.000000000 -0600
+++ linux/drivers/scsi/aic7xxx/aicasm/Makefile	2002-11-18 14:57:47.000000000 -0600
@@ -7,11 +7,12 @@
 GENHDRS= y.tab.h aicdb.h
 
 SRCS=	${GENSRCS} ${CSRCS}
+LIBS=	-ldb
 
 # Cleaned up by make clean
 clean-files := $(GENSRCS) $(GENHDRS) y.output $(PROG)
 # Override default kernel CFLAGS.  This is a userland app.
-AICASM_CFLAGS:= -I/usr/include -I. -ldb
+AICASM_CFLAGS:= -I/usr/include -I.
 YFLAGS= -d
 
 NOMAN=	noman
@@ -29,7 +30,7 @@
 endif
 
 $(PROG):  $(SRCS) $(GENHDRS)
-	$(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG)
+	$(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG) $(LIBS)
 
 aicdb.h:
 	@if [ -e "/usr/include/db3/db_185.h" ]; then		\

-- 
-----------------------------------------------------------------------
Bob Tracy                   WTO + WIPO = DMCA? http://www.anti-dmca.org
rct@frus.com
-----------------------------------------------------------------------

                 reply	other threads:[~2002-12-01 15:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021201151418.16BB94ED3@gherkin.frus.com \
    --to=rct@gherkin.frus.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®