Regarding the second problem I feel that there is an environment variable
that must be defined somewhere for VMWare to work properly, check that
point.

Regarding the first issue, I think there is more info that is missing that
could help, maybe a log or something.

On 11/11/06, Mohammad Halawah <[EMAIL PROTECTED]> wrote:
>
>
> Salam guys,
>
> I have a strange problem, tried to solve it for two weeks. Actually I
> don't know what to call it.
>
> The problem is that, when I execute
> #make
> inside any package or driver's folder, all the files gets deleted !!!!
> and I get on my shell:
>
> #make
> make -C /lib/modules/2.6.17-2-686/build
> SUBDIRS=/home/guess/siemens/fsam7400-0.4.0
> MODVERDIR=/home/guess/siemens/fsam7400-0.4.0 modules
> make[1]: Entering directory `/usr/src/linux-headers-2.6.17-2-686'
> scripts/Makefile.build:17: /home/guess/siemens/fsam7400-0.4.0/Makefile:
> No such file or directory
> make[2]: *** No rule to make target
> `/home/guess/siemens/fsam7400-0.4.0/Makefile'.  Stop.
> make[1]: *** [_module_/home/guess/siemens/fsam7400-0.4.0] Error 2
> make[1]: Leaving directory `/usr/src/linux-headers-2.6.17-2-686'
> make: *** [modules] Error 2
> #################
>
> The strange thing is that with kernel
> 2.6.18
> 2.6.17
> 2.6.16
> I get this problem, while there is no problem when I try to compile
> under kernel 2.6.12.
>
> Note: 2.6.18 is from linux.org, while 2.6.16, 2.6.17, and 2.6.12 are
> debian kernels.
>
> When compiling normal applications (e.g. skype), I have no problem.
> This problem only occurs when I try to compile a driver e.g. fsam7400.
> I am sending one of the Makefiles that I used.
>
> I have another problem and I am not sure if both are related. My second
> problem occurs when I try to configure VMware. The configuration
> script ask me to point to the headers directory and the error message
> says:
>
> The path "/usr/src/linux-headers-2.6.17-2/include" is a kernel header
> file directory, but it is not configured yet.
>
>
> Summery: I've tried different GCC versions, three HW drivers, four
> kernel versions. but no success.
>
>
>
>
> Any hint is appreciated,
> medo
>
>
> fsam7400's Makefile
> #######################################################
> #
> # Makefile for the Linux Wireless network device drivers.
> #
> # Original makefile by Peter Johanson
> #
> # NOTE: This make file can serve as both an external Makefile (launched
> #       directly by the user), or as the sub-dir Makefile used by the
> kernel
> #       build system.
>
> CONFIG_IPW2100_FS_AMILO_M7400=m
>
> # NOTE: If you don't need debug output from the fsam7400 module comment
> out
> # the following line
> CONFIG_IPW2100_DEBUG=y
>
> list-m :=
> list-$(CONFIG_IPW2100_FS_AMILO_M7400) += fsam7400
>
> obj-$(CONFIG_IPW2100_FS_AMILO_M7400) += fsam7400.o
>
> ifdef CONFIG_IPW2100_DEBUG
> EXTRA_CFLAGS += -DCONFIG_IPW2100_DEBUG=$(CONFIG_IPW2100_DEBUG)
> endif
>
> #
> # Begin dual Makefile mode here.  First we provide support for when we
> # are being invoked by the kernel build system
> #
> ifneq ($(KERNELRELEASE),)
>
> ifneq ($(PATCHLEVEL),6) # If we are not on a 2.6, then do 2.4 specific
> things
>
> include $(TOPDIR)/Rules.make
>
> endif # End if 2.4 specific settings
>
> else
> # Here we begin the portion that is executed if the user invoked this
> Makefile
> # directly.
>
> # KSRC should be set to the path to your sources
> # modules are installed into KMISC
> KVER  := $(shell uname -r)
> KSRC := /lib/modules/$(KVER)/build
> KMISC := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ipw2100/
>
> # KSRC_OUTPUT should be overridden if you are using a 2.6 kernel that
> # has it's output sent elsewhere via KBUILD_OUTPUT= or O=
> KSRC_OUTPUT := $(KSRC)
>
> # If we find Rules.make, we can assume we're using the old 2.4 style
> building
> OLDMAKE=$(wildcard $(KSRC)/Rules.make)
> PWD=$(shell pwd)
>
> VERFILE := $(KSRC_OUTPUT)/include/linux/version.h
> KERNELRELEASE := $(shell \
>         if [ -r $(VERFILE) ]; then \
>                 (cat $(VERFILE); echo UTS_RELEASE) | \
>                 $(CC) -I$(KSRC_OUTPUT) $(CFLAGS) -E - | \
>                 tail -n 1 | \
>                 xargs echo; \
>         else \
>                 uname -r; \
>         fi)
>
> MODPATH := $(DESTDIR)/lib/modules/$(KERNELRELEASE)
>
> all: modules
>
> clean:
>         rm -f *.mod.c *.mod *.o *.ko .*.cmd .*.flags *~
>         rm -rf $(PWD)/tmp
>
> ifeq ($(OLDMAKE),)
>
> TMP=$(PWD)/tmp
> MODVERDIR=$(TMP)/.tmp_versions
>
> modules:
> ifdef ($(KSRC_OUTPUT)/.tmp_versions)
>         mkdir -p $(MODVERDIR)
>         -cp $(KSRC_OUTPUT)/.tmp_versions/*.mod $(MODVERDIR)
> endif
> ifeq ($(KSRC),$(KSRC_OUTPUT)) # We're not outputting elsewhere
> ifdef ($(KSRC)/.tmp_versions)
>         -cp $(KSRC)/.tmp_versions/*.mod $(MODVERDIR)
> endif
>         make -C $(KSRC) SUBDIRS=$(PWD) MODVERDIR=$(PWD) modules
> else # We've got a kernel with seperate output, copy the config, and
> use O=
>         mkdir -p $(TMP)
>         cp $(KSRC_OUTPUT)/.config $(TMP)
>         make -C $(KSRC) SUBDIRS=$(PWD) MODVERDIR=$(PWD) O=$(PWD)/tmp
> modules
> endif
>
> install: modules
>         install -d $(KMISC)
>         install -m 644 -c $(addsuffix .ko,$(list-m)) $(KMISC)
>         /sbin/depmod -a
>         @echo "See INSTALL for more information."
>
> uninstall:
>         rm -rf $(KMISC)$(addsuffix .ko,$(list-m))
>         /sbin/depmod -a
>
> else # We're on 2.4, and things are slightly different
>
> modules:
>         make -C $(KSRC) SUBDIRS=$(PWD) BUILD_DIR=$(PWD) modules
>
> install: modules
>         install -d $(KMISC)
>         install -m 644 -c $(addsuffix .o,$(list-m)) $(KMISC)
>         /sbin/depmod -a
>         @echo "See INSTALL for more information."
>
> uninstall:
>         rm -rf $(KMISC)$(addsuffix .o,$(list-m))
>         /sbin/depmod -a
>
> endif
>
> endif
> #####################################################
>
> >
>


-- 

Khamis Siksek
http://saksoook.blogspot.com


--~--~---------~--~----~------------~-------~--~----~
  You received this message because you are subscribed to the Google Groups 
"Jolug" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups-beta.google.com/group/Jolug?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

رد على