From: "Puvvada, Vijay B." <VIJAY.B.PUVVADA@saic.com>
To: linux-kernel@vger.kernel.org
Subject: Kernel Make system and linking static libraries on kernel version s2.6.14+
Date: Mon, 2 Jan 2006 09:51:29 -0500 [thread overview]
Message-ID: <1136213489.3483.18.camel@hadji> (raw)
Hello,
This is a "I'm stumped kind of problem" and desperately need some
guidance with regards to the kernel make system..
I had also started a thread at
http://forums.fedoraforum.org/showthread.php?p=428551#post428551 with
regards to this, where I describe the context of the problem.
In a nutshell, I am trying to compile the Nortel VPN client (which is
written as part driver and part app) against the 2.6.14 kernel and I am
getting the following warning.
Warning: could not
find /usr/local/cvc_linux-rh-gcc3-3.3/src/k2.6/../.libmishim-2.6.a.cmd
for /usr/local/cvc_linux-rh-gcc3-3.3/src/k2.6/../libmishim-2.6.a
For some reason, the kernel make system does not seem to know what to do
with static libraries. It doesn't seem to create a .cmd for these
files.
1. Is this a normal warning when trying to link in static libraries
with the kernel make system? ie, the kernel make system does not create
a .cmd file for static libraries/archives.
2. Do they all still get linked in or is this a real problem? It seems
to warn on the first static library so I am assuming the rest of the
line is just abandoned. Is this a correct interpretation?
3. How can I clean up the warning? Is there a proper way to specify
static libraries to the kernel make system?
So far as I can tell, this is an interaction between the kernel make
system and the application I have and not distro-specific.
If you require any information, please do not hesitate to ask.
Vij
The full makefile for the kernel driver portion is below:
Makefile:
obj-m += mishim.o nlvcard.o
mishim-libs += ../libmishim-2.6.a ../libnlcmp.a ../libz.a ../liblzs.a
mishim-c-objs += linux_wrapper.o
mishim-objs += $(mishim-c-objs) $(mishim-libs)
EXTRA_CFLAGS += -fno-common -w
ifeq ($(KERNELRELEASE),)
KVER = $(shell uname -r)
ifeq (1,1)
KDIR = /lib/modules/$(KVER)/build
else
KDIR = /usr/src/linux-$(KVER)
endif
PWD = $(shell pwd)
mishim-cfiles = ${mishim-c-objs:.o=.c}
kmod_build:: $(mishim-libs) $(mishim-cfiles)
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
@cp mishim.ko ../mishim.o
@cp nlvcard.ko ../nlvcard.o
%.c:
@ln -s ../linux_wrapper.c
clean:
-rm -rf *.o *.ko *.mod.* .??*
install: all
@echo "Installing VPN agent."
cd .. && ./install.sh
uninstall:
@echo "Uninstalling VPN agent."
cd .. && ./uninstall.sh
endif
next reply other threads:[~2006-01-02 14:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-02 14:51 Puvvada, Vijay B. [this message]
2006-01-02 14:58 ` Kernel Make system and linking static libraries on kernel version s2.6.14+ Arjan van de Ven
2006-01-02 19:56 ` John Stoffel
2006-01-03 13:23 ` Kernel Make system and linking static libraries on kernelvers ion s2.6.14+ Puvvada, Vijay B.
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=1136213489.3483.18.camel@hadji \
--to=vijay.b.puvvada@saic.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.