Problems with satch.c under Linux 2.4
Hello,
I tried to test the POSIX example program satch.c under Linux 2.4.25 for PPC. I was able to fix a few issues but the module does still not load. I have attached a patch for Xenomai 2.4.2 fixing:
- User-space satch: It was necessary to move time.h and signal.h to the end of the include block to get it compiled (otherwise clockid_t is defined, etc.)
- User-space satch: It was necessary to move "#define xnprintf printf" behind the include block, otherwise the linker complains about missing symbols. I wonder how this can work with 2.6. And what is the status of xnprintf?
- Makefile: to avoid a mixup of CFLAG definitions for compiling the user-space and kernel-space part, I renamed CFLAGS to UCFLAGS etc. (see patch). Note sure if this is an issue for 2.6 as well.
- Makefile: I added -DPRODUCER to the module build with Linux 2.4.
- I got the module build, but insmod fails with:
bash-2.05b# insmod satch.o
satch.o: unresolved symbol shm_unlink
satch.o: unresolved symbol ftruncate
satch.o: unresolved symbol shm_open
satch.o: unresolved symbol munmap
satch.o: unresolved symbol mmap
satch.o: unresolved symbol pse51_shm_close
Any idea why?
Thanks,
Wolfgang.
+ diff -u xenomai-2.4.2/examples/posix/Makefile.ORIG xenomai-2.4.2/examples/posix/Makefile
examples/posix/Makefile renamed from examples/posix/Makefile.ORIG +9 -4
@@ -35,16 +35,19 @@ CC=$(shell $(XENOCONFIG) --cc) -CFLAGS=-DCONSUMER $(shell $(XENOCONFIG) --posix-cflags) +UCFLAGS=-DCONSUMER $(shell $(XENOCONFIG) --posix-cflags) -LDFLAGS=$(shell $(XENOCONFIG) --posix-ldflags) +ULDFLAGS=$(shell $(XENOCONFIG) --posix-ldflags) # This includes the library path of given Xenomai into the binary to make live # easier for beginners if Xenomai's libs are not in any default search path. -LDFLAGS+=-Xlinker -rpath -Xlinker $(shell $(XENOCONFIG) --libdir) +ULDFLAGS+=-Xlinker -rpath -Xlinker $(shell $(XENOCONFIG) --libdir) all:: $(APPLICATIONS) +$(APPLICATIONS): % : %.c + $(CC) $(UCFLAGS) -o $@ $< $(ULDFLAGS) + clean:: $(RM) $(APPLICATIONS) *.o
@@ -56,6 +59,8 @@ ###### KERNEL MODULE BUILD (no change required normally) ###### ifneq ($(MODULES),) +CC=$(CROSS_COMPILE)gcc + ### Default to sources of currently running kernel KSRC ?= /lib/modules/$(shell uname -r)/build
@@ -77,7 +82,7 @@ else ARCH ?= $(shell uname -i) -INCLUDE := -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/compat -I$(KSRC)/include/xenomai/posix +INCLUDE := -DPRODUCER -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/compat -I$(KSRC)/include/xenomai/posix CFLAGS += $(shell $(MAKE) -s -C $(KSRC) CC=$(CC) ARCH=$(ARCH) SUBDIRS=$(PWD) modules) $(INCLUDE) all:: $(OBJS)
+ diff -u xenomai-2.4.2/examples/posix/satch.c.ORIG xenomai-2.4.2/examples/posix/satch.c
examples/posix/satch.c renamed from examples/posix/satch.c.ORIG +6 -4
@@ -1,16 +1,18 @@#ifndef __XENO_SIM__#ifndef __KERNEL__#include <stdio.h> -#define xnprintf printf#endif - -#include <time.h> #include <errno.h> #include <unistd.h> -#include <signal.h> #include <sys/mman.h> #include <pthread.h> #include <mqueue.h> +#include <signal.h> +#include <time.h> +#ifndef __KERNEL__ +#undef xnprintf +#define xnprintf printf +#endif #else /* __XENO_SIM */ #include <posix/posix.h> #endif /* __XENO_SIM */
Quoted 9 lines · Wolfgang Grandegger
Hello,
I tried to test the POSIX example program
satch.cunder Linux 2.4.25 for PPC. I was able to fix a few issues but the module does still not load. I have attached a patch for Xenomai 2.4.2 fixing:- User-space satch: It was necessary to move
time.handsignal.hto the end of the include block to get it compiled (otherwiseclockid_tis defined, etc.)
This should not happen, header file should not depend on the inclusion order.
Quoted 11 lines
- User-space satch: It was necessary to move "#define xnprintf printf" behind the include block, otherwise the linker complains about missing symbols. I wonder how this can work with 2.6. And what is the status of xnprintf?
-
Makefile: to avoid a mixup of CFLAG definitions for compiling the user-space and kernel-space part, I renamed CFLAGS to UCFLAGS etc. (see patch). Note sure if this is an issue for 2.6 as well.-
Makefile: I added -DPRODUCER to the module build with Linux 2.4.
I tested satch recently on trunk. I had to make the printf change (xnprintf is now defined in xenomai include files to xnarch_printf, but xnarch_printf is not defined when compiling in user space, so I replaced #define xnprintf printf with #define xnarch_printf printf) to make it work again, but I saw no problem with include file order.
Quoted 11 lines
- I got the module build, but insmod fails with:
bash-2.05b# insmod satch.o
satch.o: unresolved symbolshm_unlink
satch.o: unresolved symbol ftruncate
satch.o: unresolved symbolshm_open
satch.o: unresolved symbol munmap
satch.o: unresolved symbol mmap
satch.o: unresolved symbolpse51_shm_close
Quoted 1 line
Any idea why?
Because satch uses xenomai posix shared memories, so you have to enable support for shared memories in the posix module configuration.
Quoted 13 lines
Thanks,
Wolfgang.
_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core
Signature · 1 line
Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Wolfgang Grandegger
Hello,
I tried to test the POSIX example program
satch.cunder Linux 2.4.25 for PPC. I was able to fix a few issues but the module does still not load. I have attached a patch for Xenomai 2.4.2 fixing:
Quoted 5 lines
Quoted 3 lines
- User-space satch: It was necessary to move
time.handsignal.hto the end of the include block to get it compiled (otherwiseclockid_tis defined, etc.)This should not happen, header file should not depend on the inclusion order.
True, but it happens quite often :-(.
Quoted 10 lines
Quoted 10 lines
- User-space satch: It was necessary to move "#define xnprintf printf" behind the include block, otherwise the linker complains about missing symbols. I wonder how this can work with 2.6. And what is the status of xnprintf?
-
Makefile: to avoid a mixup of CFLAG definitions for compiling the user-space and kernel-space part, I renamed CFLAGS to UCFLAGS etc. (see patch). Note sure if this is an issue for 2.6 as well.
Quoted 7 lines
Quoted 1 line
-
Makefile: I added -DPRODUCER to the module build with Linux 2.4.I tested satch recently on trunk. I had to make the printf change (xnprintf is now defined in xenomai include files to
xnarch_printf, butxnarch_printfis not defined when compiling in user space, so I replaced #define xnprintf printf with #definexnarch_printfprintf) to make it work again, but I saw no problem with include file order.
The problem with xnprintf goes away with "#define xnarch_printf printf". I have attached the make log showing the errors with the original include file order.
Quoted 10 lines
Quoted 10 lines
- I got the module build, but insmod fails with:
bash-2.05b# insmod satch.o
satch.o: unresolved symbolshm_unlink
satch.o: unresolved symbol ftruncate
satch.o: unresolved symbolshm_open
satch.o: unresolved symbol munmap
satch.o: unresolved symbol mmap
satch.o: unresolved symbolpse51_shm_close
Quoted 4 lines
Quoted 1 line
Any idea why?
Because satch uses xenomai posix shared memories, so you have to enable support for shared memories in the posix module configuration.
OK, that fixed the problem. A hint in the README would be useful, though.
Thanks.
Wolfgang.
ppc_6xx-gcc -D__KERNEL__ -I/temp/test/linuxppc_2_4_devel/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/temp/test/linuxppc_2_4_devel/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -g -ggdb -DMODULE -DPRODUCER -I/temp/test/linuxppc_2_4_devel/include/xenomai -I/temp/test/linuxppc_2_4_devel/include/xenomai/compat -I/temp/test/linuxppc_2_4_devel/include/xenomai/posix -c -o satch.o satch.c
In file included from satch.c:7:
/temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:61: error: parse error before "clock_id" /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:62: warning: function declaration isn't a prototype /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:64: error: parse error before "clock_id" /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:65: warning: function declaration isn't a prototype /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:67: error: parse error before "clock_id" /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:68: warning: function declaration isn't a prototype /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:70: error: parse error before "clock_id" /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:73: warning: function declaration isn't a prototype /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:78: error: parse error before "clockid" /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:80: warning: function declaration isn't a prototype /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:82: error: parse error before "timerid" /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:82: warning: function declaration isn't a prototype /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:84: error: parse error before "timerid" /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:87: warning: function declaration isn't a prototype /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:89: error: parse error before "timerid" /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:89: warning: function declaration isn't a prototype /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:91: error: parse error before "timerid" /temp/test/linuxppc_2_4_devel/include/xenomai/posix/time.h:91: warning: function declaration isn't a prototype In file included from /temp/test/linuxppc_2_4_devel/include/asm/xenomai/wrappers.h:27,
from /temp/test/linuxppc_2_4_devel/include/asm-generic/xenomai/hal.h:40,
from /temp/test/linuxppc_2_4_devel/include/asm/xenomai/hal.h:32,
from /temp/test/linuxppc_2_4_devel/include/asm-generic/xenomai/system.h:39,
from /temp/test/linuxppc_2_4_devel/include/asm/xenomai/system.h:29,
from /temp/test/linuxppc_2_4_devel/include/xenomai/nucleus/types.h:39,
from /temp/test/linuxppc_2_4_devel/include/xenomai/nucleus/queue.h:24,
from /temp/test/linuxppc_2_4_devel/include/xenomai/nucleus/timebase.h:29,
from /temp/test/linuxppc_2_4_devel/include/xenomai/nucleus/timer.h:26,
from /temp/test/linuxppc_2_4_devel/include/xenomai/nucleus/thread.h:25,
from /temp/test/linuxppc_2_4_devel/include/xenomai/nucleus/pod.h:34,
from /temp/test/linuxppc_2_4_devel/include/xenomai/nucleus/xenomai.h:23,
from /temp/test/linuxppc_2_4_devel/include/xenomai/posix/pthread.h:24,
from satch.c:12:/temp/test/linuxppc_2_4_devel/include/asm-generic/xenomai/wrappers.h:169: error: parse error before numeric constant
make: *** [satch.o] Error 1
Quoted 36 lines · Wolfgang Grandegger
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Wolfgang Grandegger
Hello,
I tried to test the POSIX example program
satch.cunder Linux 2.4.25 for PPC. I was able to fix a few issues but the module does still not load. I have attached a patch for Xenomai 2.4.2 fixing:Quoted 5 lines
Quoted 3 lines
- User-space satch: It was necessary to move
time.handsignal.hto the end of the include block to get it compiled (otherwiseclockid_tis defined, etc.)This should not happen, header file should not depend on the inclusion order.
True, but it happens quite often :-(.
Quoted 10 lines
Quoted 10 lines
- User-space satch: It was necessary to move "#define xnprintf printf" behind the include block, otherwise the linker complains about missing symbols. I wonder how this can work with 2.6. And what is the status of xnprintf?
-
Makefile: to avoid a mixup of CFLAG definitions for compiling the user-space and kernel-space part, I renamed CFLAGS to UCFLAGS etc. (see patch). Note sure if this is an issue for 2.6 as well.Quoted 7 lines
Quoted 1 line
-
Makefile: I added -DPRODUCER to the module build with Linux 2.4.I tested satch recently on trunk. I had to make the printf change (xnprintf is now defined in xenomai include files to
xnarch_printf, butxnarch_printfis not defined when compiling in user space, so I replaced #define xnprintf printf with #definexnarch_printfprintf) to make it work again, but I saw no problem with include file order.
Quoted 4 lines
The problem with xnprintf goes away with "#define
xnarch_printfprintf". I have attached the make log showing the errors with the originalinclude file order.
Ok. I will check this tonight.
Signature · 1 line
Gilles Chanteperdrix
Quoted 31 lines · Wolfgang Grandegger
Hello,
I tried to test the POSIX example program
satch.cunder Linux 2.4.25 for PPC. I was able to fix a few issues but the module does still not load. I have attached a patch for Xenomai 2.4.2 fixing:- User-space satch: It was necessary to move
time.handsignal.hto the end of the include block to get it compiled (otherwiseclockid_tis defined, etc.)- User-space satch: It was necessary to move "#define xnprintf printf" behind the include block, otherwise the linker complains about missing symbols. I wonder how this can work with 2.6. And what is the status of xnprintf?
-
Makefile: to avoid a mixup of CFLAG definitions for compiling the user-space and kernel-space part, I renamed CFLAGS to UCFLAGS etc. (see patch). Note sure if this is an issue for 2.6 as well.-
Makefile: I added -DPRODUCER to the module build with Linux 2.4.- I got the module build, but insmod fails with:
bash-2.05b# insmod satch.o
satch.o: unresolved symbolshm_unlink
satch.o: unresolved symbol ftruncate
satch.o: unresolved symbolshm_open
satch.o: unresolved symbol munmap
satch.o: unresolved symbol mmap
satch.o: unresolved symbolpse51_shm_close
Quoted 3 lines
Any idea why?
Thanks,
Does the following patch improve anything ?
Signature · 1 line
Gilles Chanteperdrix.
posix/sys/mman.h +2 -0
@@ -21,6 +21,8 @@#if defined(__KERNEL__) || defined(__XENO_SIM__) +#include <nucleus/xenomai.h> +#ifdef __KERNEL__#include <asm/mman.h> #endif /* __KERNEL__ */
posix/signal.h +2 -0
@@ -21,6 +21,8 @@#if defined(__KERNEL__) || defined(__XENO_SIM__) +#include <nucleus/xenomai.h> +#ifdef __KERNEL__#include <linux/signal.h>
posix/time.h +2 -0
@@ -21,6 +21,8 @@#if defined(__KERNEL__) || defined(__XENO_SIM__) +#include <nucleus/xenomai.h> +#ifdef __KERNEL__#include <linux/time.h> #define DELAYTIMER_MAX UINT_MAX
posix/mqueue.h +2 -0
@@ -21,6 +21,8 @@#if defined(__KERNEL__) || defined(__XENO_SIM__) +#include <nucleus/xenomai.h> +#ifdef __KERNEL__#include <linux/types.h> #include <linux/signal.h>
posix/semaphore.h +2 -0
@@ -21,6 +21,8 @@#if defined(__KERNEL__) || defined(__XENO_SIM__) +#include <nucleus/xenomai.h> +#ifdef __KERNEL__#include <linux/kernel.h> #include <linux/fcntl.h>
posix/errno.h +2 -0
@@ -21,6 +21,8 @@#if defined(__KERNEL__) || defined(__XENO_SIM__) +#include <nucleus/xenomai.h> +#ifdef __KERNEL__#include <linux/errno.h> #include <linux/unistd.h> /* conflicting declaration of errno. */
posix/fcntl.h +2 -0
@@ -21,6 +21,8 @@#if defined(__KERNEL__) || defined(__XENO_SIM__) +#include <nucleus/xenomai.h> +#ifdef __KERNEL__#include <linux/fcntl.h> #endif /* __KERNEL__ */
posix/sched.h +2 -0
@@ -21,6 +21,8 @@#if defined(__KERNEL__) || defined(__XENO_SIM__) +#include <nucleus/xenomai.h> +#ifdef __KERNEL__#include <linux/sched.h> #endif /* __KERNEL__ */
posix/unistd.h +2 -0
@@ -21,6 +21,8 @@#if defined(__KERNEL__) || defined(__XENO_SIM__) +#include <nucleus/xenomai.h> +#ifdef __KERNEL__#include <linux/types.h> #endif /* __KERNEL__ */
posix/Makefile +1 -1
@@ -79,7 +79,7 @@ else ARCH ?= $(shell uname -i) INCLUDE := -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/compat -I$(KSRC)/include/xenomai/posix -CFLAGS += $(shell $(MAKE) -s -C $(KSRC) CC=$(CC) ARCH=$(ARCH) SUBDIRS=$(PWD) modules) $(INCLUDE) +CFLAGS := $(shell $(MAKE) -s -C $(KSRC) CC=$(CC) ARCH=$(ARCH) SUBDIRS=$(PWD) modules) $(INCLUDE) all:: $(OBJS)
Quoted 32 lines · Gilles Chanteperdrix
Quoted 31 lines · Wolfgang Grandegger
Hello,
I tried to test the POSIX example program
satch.cunder Linux 2.4.25 for PPC. I was able to fix a few issues but the module does still not load. I have attached a patch for Xenomai 2.4.2 fixing:- User-space satch: It was necessary to move
time.handsignal.hto the end of the include block to get it compiled (otherwiseclockid_tis defined, etc.)- User-space satch: It was necessary to move "#define xnprintf printf" behind the include block, otherwise the linker complains about missing symbols. I wonder how this can work with 2.6. And what is the status of xnprintf?
-
Makefile: to avoid a mixup of CFLAG definitions for compiling the user-space and kernel-space part, I renamed CFLAGS to UCFLAGS etc. (see patch). Note sure if this is an issue for 2.6 as well.-
Makefile: I added -DPRODUCER to the module build with Linux 2.4.- I got the module build, but insmod fails with:
bash-2.05b# insmod satch.o
satch.o: unresolved symbolshm_unlink
satch.o: unresolved symbol ftruncate
satch.o: unresolved symbolshm_open
satch.o: unresolved symbol munmap
satch.o: unresolved symbol mmap
satch.o: unresolved symbolpse51_shm_close
Quoted 5 lines
Quoted 3 lines
Any idea why?
Thanks,
Does the following patch improve anything ?
Yes, the order of the include files does not make trouble any more. Nevertheless, I need the attached patch to fix the remaining problems with CFLAGS mangling and missing -DPRODUCER.
Thanks,
Wolfgang.
examples/posix/Makefile +7 -4
@@ -35,16 +35,19 @@ endif CC=$(shell $(XENOCONFIG) --cc) -CFLAGS=-DCONSUMER $(shell $(XENOCONFIG) --posix-cflags) +UCFLAGS=-DCONSUMER $(shell $(XENOCONFIG) --posix-cflags) -LDFLAGS=$(shell $(XENOCONFIG) --posix-ldflags) +ULDFLAGS=$(shell $(XENOCONFIG) --posix-ldflags) # This includes the library path of given Xenomai into the binary to make live # easier for beginners if Xenomai's libs are not in any default search path. -LDFLAGS+=-Xlinker -rpath -Xlinker $(shell $(XENOCONFIG) --libdir) +ULDFLAGS+=-Xlinker -rpath -Xlinker $(shell $(XENOCONFIG) --libdir) all:: $(APPLICATIONS) +$(APPLICATIONS): % : %.c + $(CC) $(UCFLAGS) -o $@ $< $(ULDFLAGS) + clean:: $(RM) $(APPLICATIONS) *.o
@@ -78,7 +81,7 @@ else ARCH ?= $(shell uname -i) INCLUDE := -I$(KSRC)/include/xenomai -I$(KSRC)/include/xenomai/compat -I$(KSRC)/include/xenomai/posix -CFLAGS := $(shell $(MAKE) -s -C $(KSRC) CC=$(CC) ARCH=$(ARCH) SUBDIRS=$(PWD) modules) $(INCLUDE) +CFLAGS := $(shell $(MAKE) -s -C $(KSRC) CC=$(CC) ARCH=$(ARCH) SUBDIRS=$(PWD) modules) $(INCLUDE) -DPRODUCER all:: $(OBJS)
Quoted 36 lines · Wolfgang Grandegger
Quoted 34 lines · Gilles Chanteperdrix
Quoted 33 lines · Wolfgang Grandegger
Hello,
I tried to test the POSIX example program
satch.cunder Linux 2.4.25 for PPC. I was able to fix a few issues but the module does still not load. I have attached a patch for Xenomai 2.4.2 fixing:- User-space satch: It was necessary to move
time.handsignal.hto the end of the include block to get it compiled (otherwiseclockid_tis defined, etc.)- User-space satch: It was necessary to move "#define xnprintf printf" behind the include block, otherwise the linker complains about missing symbols. I wonder how this can work with 2.6. And what is the status of xnprintf?
-
Makefile: to avoid a mixup of CFLAG definitions for compiling the user-space and kernel-space part, I renamed CFLAGS to UCFLAGS etc. (see patch). Note sure if this is an issue for 2.6 as well.-
Makefile: I added -DPRODUCER to the module build with Linux 2.4.- I got the module build, but insmod fails with:
bash-2.05b# insmod satch.o
satch.o: unresolved symbolshm_unlink
satch.o: unresolved symbol ftruncate
satch.o: unresolved symbolshm_open
satch.o: unresolved symbol munmap
satch.o: unresolved symbol mmap
satch.o: unresolved symbolpse51_shm_closeAny idea why?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Thanks,
Does the following patch improve anything ?
Yes, the order of the include files does not make trouble any more. Nevertheless, I need the attached patch to fix the remaining problems with CFLAGS mangling and missing -DPRODUCER.
Do we really need the UCFLAGS stuff ? CFLAGS is a standard thing, how do the other examples cope with the same problem ? Perhaps we could put modules compilation in a separated makefile name Kbuild ?
Signature · 1 line
Gilles Chanteperdrix
Quoted 40 lines · Gilles Chanteperdrix
Quoted 39 lines · Wolfgang Grandegger
Quoted 37 lines · Gilles Chanteperdrix
Quoted 31 lines · Wolfgang Grandegger
Hello,
I tried to test the POSIX example program
satch.cunder Linux 2.4.25 for PPC. I was able to fix a few issues but the module does still not load. I have attached a patch for Xenomai 2.4.2 fixing:- User-space satch: It was necessary to move
time.handsignal.hto the end of the include block to get it compiled (otherwiseclockid_tis defined, etc.)- User-space satch: It was necessary to move "#define xnprintf printf" behind the include block, otherwise the linker complains about missing symbols. I wonder how this can work with 2.6. And what is the status of xnprintf?
-
Makefile: to avoid a mixup of CFLAG definitions for compiling the user-space and kernel-space part, I renamed CFLAGS to UCFLAGS etc. (see patch). Note sure if this is an issue for 2.6 as well.-
Makefile: I added -DPRODUCER to the module build with Linux 2.4.- I got the module build, but insmod fails with:
bash-2.05b# insmod satch.o
satch.o: unresolved symbolshm_unlink
satch.o: unresolved symbol ftruncate
satch.o: unresolved symbolshm_open
satch.o: unresolved symbol munmap
satch.o: unresolved symbol mmap
satch.o: unresolved symbolpse51_shm_closeQuoted 3 lines
Any idea why?
Thanks,
Does the following patch improve anything ?
Quoted 7 lines
Quoted 3 lines
Yes, the order of the include files does not make trouble any more. Nevertheless, I need the attached patch to fix the remaining problems with CFLAGS mangling and missing -DPRODUCER.
Do we really need the UCFLAGS stuff ? CFLAGS is a standard thing, how do the other examples cope with the same problem ? Perhaps we could put modules compilation in a separated makefile name
Kbuild?
For Linux 2.4 we use this module capturing trick to get the CFLAGS of the kernel. That's what makes trouble. So, the problem only shows up when modules need to be built for Linux 2.4 together with at least on application. Yes, it might be better to use KCFLAGS for module compilation for 2.4. Going to find a better solution a.s.a.p.
Wolfgang.