Skip to contentSkip to conversation

xeno_posix.ko cannot be built

Xenomai-core Sebastian Smolorz 3 participants 9 messages Jun 22, 2009 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It gives:

ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!

Obviously an

EXPORT_SYMBOL(xnarch_divrem_billion);

is missing.

Signature · 1 line
Sebastian
#1 lore raw
Quoted 5 lines · Sebastian Smolorz

Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It gives:

Quoted 8 lines

ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!

Obviously an

EXPORT_SYMBOL(xnarch_divrem_billion);

is missing.

Well, no. The definition of xnarh_divrem_billion is in the timeconv.h header, which should be included in places where this function is needed. So, what is missing is probably a #include. But Ok, thanks for taking care of testing 2.5-rc2.

Signature · 1 line
                                          Gilles
#2 lore raw
Quoted 11 lines · Gilles Chanteperdrix
Quoted 10 lines · Sebastian Smolorz

Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It gives:

ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!

Obviously an

Quoted 7 lines
Quoted 3 lines

EXPORT_SYMBOL(xnarch_divrem_billion);

is missing.

Well, no. The definition of xnarh_divrem_billion is in the timeconv.h header, which should be included in places where this function is needed. So, what is missing is probably a #include.

Hm, I don't think so. The error only appears when building the POSIX skin as module. The attached patch fixes the problem.

Signature · 1 line
Sebastian
include/asm-generic/bits/timeconv.h +1 -0
index 7d823f7..79060b3 100644
@@ -93,6 +93,7 @@ static inline void xnarch_init_timeconv(unsigned long long freq)
 #ifdef __KERNEL__
 EXPORT_SYMBOL(xnarch_tsc_to_ns);
 EXPORT_SYMBOL(xnarch_ns_to_tsc);
+EXPORT_SYMBOL(xnarch_divrem_billion);
 #endif /* __KERNEL__ */
 
 #endif /* !_XENO_ASM_GENERIC_BITS_TIMECONV_H */
#3 lore raw
In reply to Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 10 lines · Sebastian Smolorz

Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It gives:

ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!

Obviously an

Quoted 7 lines
Quoted 3 lines

EXPORT_SYMBOL(xnarch_divrem_billion);

is missing.

Well, no. The definition of xnarh_divrem_billion is in the timeconv.h header, which should be included in places where this function is needed.

Actually, this is no inline stuff anymore, so we do need an export just like tsc_to_ns and converse op.

Quoted 3 lines

So, what is missing is probably a #include. But Ok, thanks for
taking care of testing 2.5-rc2.

Signature · 1 line
Philippe.
#4 lore raw
Quoted 14 lines · Philippe Gerum
Quoted 13 lines · Gilles Chanteperdrix
Quoted 12 lines · Sebastian Smolorz

Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It gives:

ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!

Obviously an

EXPORT_SYMBOL(xnarch_divrem_billion);

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

is missing.

Well, no. The definition of xnarh_divrem_billion is in the timeconv.h header, which should be included in places where this function is needed.

Actually, this is no inline stuff anymore, so we do need an export just like tsc_to_ns and converse op.

Well, I still see its definition in timeconv.h, the only way I see to get an undefined symbol would be to use the function without including timeconv.h.

And indeed, ksrc/skins/posix/internal.h, which uses xnarch_divrem_billion does not include timeconv.h

Signature · 1 line
                                          Gilles
#5 lore raw
Quoted 23 lines · Gilles Chanteperdrix
Quoted 14 lines · Philippe Gerum
Quoted 13 lines · Gilles Chanteperdrix
Quoted 12 lines · Sebastian Smolorz

Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It gives:

ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!

Obviously an

EXPORT_SYMBOL(xnarch_divrem_billion);

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

is missing.

Well, no. The definition of xnarh_divrem_billion is in the timeconv.h header, which should be included in places where this function is needed.

Actually, this is no inline stuff anymore, so we do need an export just like tsc_to_ns and converse op.

Quoted 7 lines

Well, I still see its definition in timeconv.h, the only way I see to get an undefined symbol would be to use the function without including timeconv.h.

And indeed, ksrc/skins/posix/internal.h, which uses xnarch_divrem_billion does not include timeconv.h

timeconv.h is not for direct inclusion, this is merely an instantiation file that works both for kernel space and userland. Callers should include asm/xenomai/system.h instead.

Signature · 1 line
Philippe.
#6 lore raw
Quoted 26 lines · Philippe Gerum
Quoted 25 lines · Gilles Chanteperdrix
Quoted 12 lines · Philippe Gerum
Quoted 11 lines · Gilles Chanteperdrix
Quoted 10 lines · Sebastian Smolorz

Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It gives:

ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!

Obviously an

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

EXPORT_SYMBOL(xnarch_divrem_billion);

is missing.

Well, no. The definition of xnarh_divrem_billion is in the timeconv.h header, which should be included in places where this function is needed.

Actually, this is no inline stuff anymore, so we do need an export just like tsc_to_ns and converse op.

Well, I still see its definition in timeconv.h, the only way I see to get an undefined symbol would be to use the function without including timeconv.h.

Quoted 7 lines
Quoted 3 lines

And indeed, ksrc/skins/posix/internal.h, which uses xnarch_divrem_billion does not include timeconv.h

timeconv.h is not for direct inclusion, this is merely an instantiation file that works both for kernel space and userland. Callers should include asm/xenomai/system.h instead.

posix skin is also borken in user-space then, since it includes timeconv.h.

Signature · 1 line
                                          Gilles
#7 lore raw
Quoted 31 lines · Gilles Chanteperdrix
Quoted 30 lines · Philippe Gerum
Quoted 28 lines · Gilles Chanteperdrix
Quoted 12 lines · Philippe Gerum
Quoted 11 lines · Gilles Chanteperdrix
Quoted 10 lines · Sebastian Smolorz

Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It gives:

ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!

Obviously an

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

EXPORT_SYMBOL(xnarch_divrem_billion);

is missing.

Well, no. The definition of xnarh_divrem_billion is in the timeconv.h header, which should be included in places where this function is needed.

Actually, this is no inline stuff anymore, so we do need an export just like tsc_to_ns and converse op.

Well, I still see its definition in timeconv.h, the only way I see to get an undefined symbol would be to use the function without including timeconv.h.

And indeed, ksrc/skins/posix/internal.h, which uses xnarch_divrem_billion does not include timeconv.h

Quoted 6 lines
Quoted 3 lines

timeconv.h is not for direct inclusion, this is merely an instantiation file that works both for kernel space and userland. Callers should include asm/xenomai/system.h instead.

posix skin is also borken in user-space then, since it includes timeconv.h.

No, since userland only includes timeconv.h once in the implementation file of time-related routines, which is mutually exclusive with asm-generic/system.h which is only for kernel-based code.

Signature · 1 line
Philippe.
#8 lore raw
In reply to Sebastian Smolorz
Quoted 5 lines · Sebastian Smolorz

Hi Philippe,

with latest head it is not possible to build the POSIX skin as module. It gives:

Quoted 9 lines

ERROR: "xnarch_divrem_billion" [kernel/xenomai/skins/posix/xeno_posix.ko] undefined!

Obviously an

EXPORT_SYMBOL(xnarch_divrem_billion);

is missing.

Indeed. Thanks,
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=7847120b2d84900941d2a40251e28636d9cbc682

Signature · 1 line
Philippe.