Built-in libxenomai dependency
Hi,
don't remember anymore: Is there any subtle reason that prevent a change like
src/skins/native/Makefile.am +3 -0
@@ -22,6 +22,9 @@ libnative_la_SOURCES = \ wrappers.c \ wrappers.h +libnative_la_LIBADD = \ + ../common/libxenomai.la + libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/include
src/skins/rtdm/Makefile.am +3 -0
@@ -8,6 +8,9 @@ librtdm_la_SOURCES = \ core.c \ init.c +librtdm_la_LIBADD = \ + ../common/libxenomai.la + librtdm_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/include
src/testsuite/latency/Makefile.am +0 -1
@@ -14,5 +14,4 @@ latency_LDFLAGS = @XENO_USER_LDFLAGS@ latency_LDADD = \ ../../skins/native/libnative.la \ ../../skins/rtdm/librtdm.la \ - ../../skins/common/libxenomai.la \ -lpthread -lm
i.e. that we let the skin libraries depend on libxenomai and then remove the explicit dependency from our binaries and the xeno-config output? Is there some ordering issue again (we have -l<skin> before -lxenomai in the ldflags).
If possible, this would allow for things like dlopen("libnative.so").
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 44 lines · Jan Kiszka
Hi,
don't remember anymore: Is there any subtle reason that prevent a change like
src/skins/native/Makefile.am +3
-0@@ -22,6 +22,9 @@ libnative_la_SOURCES = \ wrappers.c \ wrappers.h +libnative_la_LIBADD = \ + ../common/libxenomai.la + libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/skins/rtdm/Makefile.am +3
-0@@ -8,6 +8,9 @@ librtdm_la_SOURCES = \ core.c \ init.c +librtdm_la_LIBADD = \ + ../common/libxenomai.la + librtdm_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/testsuite/latency/Makefile.am +0
-1@@ -14,5 +14,4 @@ latency_LDFLAGS = @XENO_USER_LDFLAGS@ latency_LDADD = \ ../../skins/native/libnative.la \ ../../skins/rtdm/librtdm.la \ - ../../skins/common/libxenomai.la \ -lpthread -lm
Quoted 6 lines
i.e. that we let the skin libraries depend on libxenomai and then remove the explicit dependency from our binaries and the xeno-config output? Is there some ordering issue again (we have -l<skin> before -lxenomai in the ldflags).
If possible, this would allow for things like
dlopen("libnative.so").
It allows xeno-config result to work both with dynamic and static libraries. Static libraries have no dependency system, so, when linking a program whith libnative.a for instance, without libtool, you still have to link it with libxenomai.a.
How come you can not dlopen libnative.so, dlopening libxenomai.so before does not work?
Signature · 1 line
Gilles.
Quoted 50 lines · Gilles Chanteperdrix
Quoted 49 lines · Jan Kiszka
Hi,
don't remember anymore: Is there any subtle reason that prevent a change like
src/skins/native/Makefile.am +3
-0@@ -22,6 +22,9 @@ libnative_la_SOURCES = \ wrappers.c \ wrappers.h +libnative_la_LIBADD = \ + ../common/libxenomai.la + libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/skins/rtdm/Makefile.am +3
-0@@ -8,6 +8,9 @@ librtdm_la_SOURCES = \ core.c \ init.c +librtdm_la_LIBADD = \ + ../common/libxenomai.la + librtdm_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/testsuite/latency/Makefile.am +0
-1@@ -14,5 +14,4 @@ latency_LDFLAGS = @XENO_USER_LDFLAGS@ latency_LDADD = \ ../../skins/native/libnative.la \ ../../skins/rtdm/librtdm.la \ - ../../skins/common/libxenomai.la \ -lpthread -lmi.e. that we let the skin libraries depend on libxenomai and then remove the explicit dependency from our binaries and the xeno-config output? Is there some ordering issue again (we have -l<skin> before -lxenomai in the ldflags).
Quoted 6 lines
Quoted 1 line
If possible, this would allow for things like
dlopen("libnative.so").It allows xeno-config result to work both with dynamic and static libraries. Static libraries have no dependency system, so, when linking a program whith libnative.a for instance, without libtool, you still have to link it with libxenomai.a.
OK, part two could stay, but the dependencies should still be added to the skin libs - if possible.
Quoted 3 lines
How come you can not dlopen libnative.so, dlopening libxenomai.so before does not work?
Dependencies of libnative on libxenomai are not resolved when you open the former even if the latter is already loaded. Maybe you can do this by pulling in all required symbols one by one manually, haven't tried yet. But that would at least be unhandy.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 62 lines · Jan Kiszka
Quoted 50 lines · Gilles Chanteperdrix
Quoted 49 lines · Jan Kiszka
Hi,
don't remember anymore: Is there any subtle reason that prevent a change like
src/skins/native/Makefile.am +3
-0@@ -22,6 +22,9 @@ libnative_la_SOURCES = \ wrappers.c \ wrappers.h +libnative_la_LIBADD = \ + ../common/libxenomai.la + libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/skins/rtdm/Makefile.am +3
-0@@ -8,6 +8,9 @@ librtdm_la_SOURCES = \ core.c \ init.c +librtdm_la_LIBADD = \ + ../common/libxenomai.la + librtdm_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/testsuite/latency/Makefile.am +0
-1@@ -14,5 +14,4 @@ latency_LDFLAGS = @XENO_USER_LDFLAGS@ latency_LDADD = \ ../../skins/native/libnative.la \ ../../skins/rtdm/librtdm.la \ - ../../skins/common/libxenomai.la \ -lpthread -lmi.e. that we let the skin libraries depend on libxenomai and then remove the explicit dependency from our binaries and the xeno-config output? Is there some ordering issue again (we have -l<skin> before -lxenomai in the ldflags).
Quoted 6 lines
Quoted 1 line
If possible, this would allow for things like
dlopen("libnative.so").It allows xeno-config result to work both with dynamic and static libraries. Static libraries have no dependency system, so, when linking a program whith libnative.a for instance, without libtool, you still have to link it with libxenomai.a.
OK, part two could stay, but the dependencies should still be added to the skin libs - if possible.
Quoted 1 line
Quoted 7 lines
Quoted 2 lines
How come you can not dlopen libnative.so, dlopening libxenomai.so before does not work?
Dependencies of libnative on libxenomai are not resolved when you open the former even if the latter is already loaded. Maybe you can do this by pulling in all required symbols one by one manually, haven't tried yet. But that would at least be unhandy.
What about RTLD_GLOBAL ?
Signature · 1 line
Gilles.
Quoted 66 lines · Gilles Chanteperdrix
Quoted 65 lines · Jan Kiszka
Quoted 50 lines · Gilles Chanteperdrix
Quoted 49 lines · Jan Kiszka
Hi,
don't remember anymore: Is there any subtle reason that prevent a change like
src/skins/native/Makefile.am +3
-0@@ -22,6 +22,9 @@ libnative_la_SOURCES = \ wrappers.c \ wrappers.h +libnative_la_LIBADD = \ + ../common/libxenomai.la + libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/skins/rtdm/Makefile.am +3
-0@@ -8,6 +8,9 @@ librtdm_la_SOURCES = \ core.c \ init.c +librtdm_la_LIBADD = \ + ../common/libxenomai.la + librtdm_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/testsuite/latency/Makefile.am +0
-1@@ -14,5 +14,4 @@ latency_LDFLAGS = @XENO_USER_LDFLAGS@ latency_LDADD = \ ../../skins/native/libnative.la \ ../../skins/rtdm/librtdm.la \ - ../../skins/common/libxenomai.la \ -lpthread -lmi.e. that we let the skin libraries depend on libxenomai and then remove the explicit dependency from our binaries and the xeno-config output? Is there some ordering issue again (we have -l<skin> before -lxenomai in the ldflags).
Quoted 6 lines
Quoted 1 line
If possible, this would allow for things like
dlopen("libnative.so").It allows xeno-config result to work both with dynamic and static libraries. Static libraries have no dependency system, so, when linking a program whith libnative.a for instance, without libtool, you still have to link it with libxenomai.a.
OK, part two could stay, but the dependencies should still be added to the skin libs - if possible.
Quoted 3 lines
How come you can not dlopen libnative.so, dlopening libxenomai.so before does not work?
Quoted 7 lines
Quoted 4 lines
Dependencies of libnative on libxenomai are not resolved when you open the former even if the latter is already loaded. Maybe you can do this by pulling in all required symbols one by one manually, haven't tried yet. But that would at least be unhandy.
What about
RTLD_GLOBAL?
Was possibly the reason, need to check back.
Still, what prevents stating the existing dependency of lib<skin> on libxenomai? The dance above would than be obsolete.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 72 lines · Jan Kiszka
Quoted 71 lines · Gilles Chanteperdrix
Quoted 69 lines · Jan Kiszka
Quoted 50 lines · Gilles Chanteperdrix
Quoted 49 lines · Jan Kiszka
Hi,
don't remember anymore: Is there any subtle reason that prevent a change like
src/skins/native/Makefile.am +3
-0@@ -22,6 +22,9 @@ libnative_la_SOURCES = \ wrappers.c \ wrappers.h +libnative_la_LIBADD = \ + ../common/libxenomai.la + libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/skins/rtdm/Makefile.am +3
-0@@ -8,6 +8,9 @@ librtdm_la_SOURCES = \ core.c \ init.c +librtdm_la_LIBADD = \ + ../common/libxenomai.la + librtdm_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/testsuite/latency/Makefile.am +0
-1@@ -14,5 +14,4 @@ latency_LDFLAGS = @XENO_USER_LDFLAGS@ latency_LDADD = \ ../../skins/native/libnative.la \ ../../skins/rtdm/librtdm.la \ - ../../skins/common/libxenomai.la \ -lpthread -lmi.e. that we let the skin libraries depend on libxenomai and then remove the explicit dependency from our binaries and the xeno-config output? Is there some ordering issue again (we have -l<skin> before -lxenomai in the ldflags).
Quoted 6 lines
Quoted 1 line
If possible, this would allow for things like
dlopen("libnative.so").It allows xeno-config result to work both with dynamic and static libraries. Static libraries have no dependency system, so, when linking a program whith libnative.a for instance, without libtool, you still have to link it with libxenomai.a.
OK, part two could stay, but the dependencies should still be added to the skin libs - if possible.
Quoted 3 lines
How come you can not dlopen libnative.so, dlopening libxenomai.so before does not work?
Dependencies of libnative on libxenomai are not resolved when you open the former even if the latter is already loaded. Maybe you can do this by pulling in all required symbols one by one manually, haven't tried yet. But that would at least be unhandy.
Quoted 7 lines
Quoted 2 lines
What about
RTLD_GLOBAL?Was possibly the reason, need to check back.
Still, what prevents stating the existing dependency of lib<skin> on libxenomai? The dance above would than be obsolete.
The change is merged. I took the chance to check that static build still built.
Signature · 1 line
Gilles.
Quoted 76 lines · Gilles Chanteperdrix
Quoted 75 lines · Jan Kiszka
Quoted 73 lines · Gilles Chanteperdrix
Quoted 62 lines · Jan Kiszka
Quoted 50 lines · Gilles Chanteperdrix
Quoted 49 lines · Jan Kiszka
Hi,
don't remember anymore: Is there any subtle reason that prevent a change like
src/skins/native/Makefile.am +3
-0@@ -22,6 +22,9 @@ libnative_la_SOURCES = \ wrappers.c \ wrappers.h +libnative_la_LIBADD = \ + ../common/libxenomai.la + libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/skins/rtdm/Makefile.am +3
-0@@ -8,6 +8,9 @@ librtdm_la_SOURCES = \ core.c \ init.c +librtdm_la_LIBADD = \ + ../common/libxenomai.la + librtdm_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/testsuite/latency/Makefile.am +0
-1@@ -14,5 +14,4 @@ latency_LDFLAGS = @XENO_USER_LDFLAGS@ latency_LDADD = \ ../../skins/native/libnative.la \ ../../skins/rtdm/librtdm.la \ - ../../skins/common/libxenomai.la \ -lpthread -lmi.e. that we let the skin libraries depend on libxenomai and then remove the explicit dependency from our binaries and the xeno-config output? Is there some ordering issue again (we have -l<skin> before -lxenomai in the ldflags).
Quoted 6 lines
Quoted 1 line
If possible, this would allow for things like
dlopen("libnative.so").It allows xeno-config result to work both with dynamic and static libraries. Static libraries have no dependency system, so, when linking a program whith libnative.a for instance, without libtool, you still have to link it with libxenomai.a.
OK, part two could stay, but the dependencies should still be added to the skin libs - if possible.
Quoted 1 line
Quoted 7 lines
Quoted 2 lines
How come you can not dlopen libnative.so, dlopening libxenomai.so before does not work?
Dependencies of libnative on libxenomai are not resolved when you open the former even if the latter is already loaded. Maybe you can do this by pulling in all required symbols one by one manually, haven't tried yet. But that would at least be unhandy.
What about
RTLD_GLOBAL?
Quoted 8 lines
Quoted 4 lines
Was possibly the reason, need to check back.
Still, what prevents stating the existing dependency of lib<skin> on libxenomai? The dance above would than be obsolete.
The change is merged. I took the chance to check that static build still built.
Unfortunately this change also causes a build failure when cross-compiling for ARM, so, change reverted, too.
Signature · 1 line
Gilles.
Quoted 82 lines · Gilles Chanteperdrix
Quoted 81 lines · Gilles Chanteperdrix
Quoted 79 lines · Jan Kiszka
Quoted 66 lines · Gilles Chanteperdrix
Quoted 65 lines · Jan Kiszka
Quoted 50 lines · Gilles Chanteperdrix
Quoted 49 lines · Jan Kiszka
Hi,
don't remember anymore: Is there any subtle reason that prevent a change like
src/skins/native/Makefile.am +3
-0@@ -22,6 +22,9 @@ libnative_la_SOURCES = \ wrappers.c \ wrappers.h +libnative_la_LIBADD = \ + ../common/libxenomai.la + libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/skins/rtdm/Makefile.am +3
-0@@ -8,6 +8,9 @@ librtdm_la_SOURCES = \ core.c \ init.c +librtdm_la_LIBADD = \ + ../common/libxenomai.la + librtdm_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/testsuite/latency/Makefile.am +0
-1@@ -14,5 +14,4 @@ latency_LDFLAGS = @XENO_USER_LDFLAGS@ latency_LDADD = \ ../../skins/native/libnative.la \ ../../skins/rtdm/librtdm.la \ - ../../skins/common/libxenomai.la \ -lpthread -lmi.e. that we let the skin libraries depend on libxenomai and then remove the explicit dependency from our binaries and the xeno-config output? Is there some ordering issue again (we have -l<skin> before -lxenomai in the ldflags).
Quoted 6 lines
Quoted 1 line
If possible, this would allow for things like
dlopen("libnative.so").It allows xeno-config result to work both with dynamic and static libraries. Static libraries have no dependency system, so, when linking a program whith libnative.a for instance, without libtool, you still have to link it with libxenomai.a.
OK, part two could stay, but the dependencies should still be added to the skin libs - if possible.
Quoted 3 lines
How come you can not dlopen libnative.so, dlopening libxenomai.so before does not work?
Quoted 7 lines
Quoted 4 lines
Dependencies of libnative on libxenomai are not resolved when you open the former even if the latter is already loaded. Maybe you can do this by pulling in all required symbols one by one manually, haven't tried yet. But that would at least be unhandy.
What about
RTLD_GLOBAL?Was possibly the reason, need to check back.
Still, what prevents stating the existing dependency of lib<skin> on libxenomai? The dance above would than be obsolete.
Quoted 7 lines
Quoted 3 lines
The change is merged. I took the chance to check that static build still built.
Unfortunately this change also causes a build failure when cross-compiling for ARM, so, change reverted, too.
Indeed unfortunate. Any pointers to logs?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 87 lines · Jan Kiszka
Quoted 86 lines · Gilles Chanteperdrix
Quoted 84 lines · Gilles Chanteperdrix
Quoted 72 lines · Jan Kiszka
Quoted 71 lines · Gilles Chanteperdrix
Quoted 69 lines · Jan Kiszka
Quoted 50 lines · Gilles Chanteperdrix
Quoted 49 lines · Jan Kiszka
Hi,
don't remember anymore: Is there any subtle reason that prevent a change like
src/skins/native/Makefile.am +3
-0@@ -22,6 +22,9 @@ libnative_la_SOURCES = \ wrappers.c \ wrappers.h +libnative_la_LIBADD = \ + ../common/libxenomai.la + libnative_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/skins/rtdm/Makefile.am +3
-0@@ -8,6 +8,9 @@ librtdm_la_SOURCES = \ core.c \ init.c +librtdm_la_LIBADD = \ + ../common/libxenomai.la + librtdm_la_CPPFLAGS = \ @XENO_USER_CFLAGS@ \ -I$(top_srcdir)/includesrc/testsuite/latency/Makefile.am +0
-1@@ -14,5 +14,4 @@ latency_LDFLAGS = @XENO_USER_LDFLAGS@ latency_LDADD = \ ../../skins/native/libnative.la \ ../../skins/rtdm/librtdm.la \ - ../../skins/common/libxenomai.la \ -lpthread -lmi.e. that we let the skin libraries depend on libxenomai and then remove the explicit dependency from our binaries and the xeno-config output? Is there some ordering issue again (we have -l<skin> before -lxenomai in the ldflags).
Quoted 6 lines
Quoted 1 line
If possible, this would allow for things like
dlopen("libnative.so").It allows xeno-config result to work both with dynamic and static libraries. Static libraries have no dependency system, so, when linking a program whith libnative.a for instance, without libtool, you still have to link it with libxenomai.a.
OK, part two could stay, but the dependencies should still be added to the skin libs - if possible.
Quoted 3 lines
How come you can not dlopen libnative.so, dlopening libxenomai.so before does not work?
Dependencies of libnative on libxenomai are not resolved when you open the former even if the latter is already loaded. Maybe you can do this by pulling in all required symbols one by one manually, haven't tried yet. But that would at least be unhandy.
Quoted 7 lines
Quoted 2 lines
What about
RTLD_GLOBAL?Was possibly the reason, need to check back.
Still, what prevents stating the existing dependency of lib<skin> on libxenomai? The dance above would than be obsolete.
The change is merged. I took the chance to check that static build still built.
Quoted 5 lines
Quoted 3 lines
Unfortunately this change also causes a build failure when cross-compiling for ARM, so, change reverted, too.
Indeed unfortunate. Any pointers to logs?
This causes a -L/usr/lib to be added on the link-edit command line, which causes the link to fail by finding /usr/lib/libpthread.so instead of the cross-compiler one, and fail.
Signature · 1 line
Gilles.
Quoted 3 lines · Gilles Chanteperdrix
This causes a -L/usr/lib to be added on the link-edit command line, which causes the link to fail by finding
/usr/lib/libpthread.soinstead of the cross-compiler one, and fail.
How does libxenomai.la look like? Is it different from a native build?
Hmm, there must be some valid way to express library dependencies inside you package.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 9 lines · Jan Kiszka
Quoted 3 lines · Gilles Chanteperdrix
This causes a -L/usr/lib to be added on the link-edit command line, which causes the link to fail by finding
/usr/lib/libpthread.soinstead of the cross-compiler one, and fail.How does libxenomai.la look like? Is it different from a native build?
Hmm, there must be some valid way to express library dependencies inside you package.
I would say it looks like a famous libtool bug all buildroot, ptxdist and the like tools work around. So, I would tend to give up on this issue, given that it fixes an issue not all that critical.
Signature · 1 line
Gilles.