Closed apropp-molex closed 4 years ago
Hi,
__QNX__
going to work? I found it here. It also mentions __QNXNTO__
but not __QNX_NTO__
.Regards, Michal
Hi Michal,
Thanks so much for your support of QNX. It's really appreciated.
__QNX__
or __QNXNTO__
should be fine. __QNX_NTO__
was a typo on my part. As I can only test this on QNX Neutrino and not QNX 4, it might be safer to use the __QNXNTO__
macro.dlopen
(and presumably its friends) are in libc
for QNX. See here and here if you're interested. So I think you're right in that explicit linking is not necessary on QNX.Hi, so I have performed all the necessary changes, I hope. A few notes.
As for the dl
library, a cmake
variable is used to link it. Based on the platform, it should be set correctly meaning it should probably be empty on QNX. So no change should be required in libyang. Also, I have not added out getline
implementation and instead made yangre
utility (which is the only one using it) optional to build so that you can disable it. Let me know if there are any problems.
Regards, Michal
Hi Michal,
Thanks again for your efforts. You're correct about the dl
library. Once I used the toolchain file here that wasn't an issue. I did find two small issues. Edited comment to include issue 3.
tree_schema.h
still uses native endian header files. Is this still necessary given libyang now provides it's own endian functions?va_list
and its corresponding macros are defined in #include <stdarg.h>
. Including that in common.h
would fix the issue.strndup
and/or asprintf
appear. Namely, tools/lint/main.c
, tools/lint/commands.c
, src/user_types/user_inet_types.c
and src/user_types/user_yang_types.c
Hi,
yangre
. THat made the option build of this utility obsolete, so I removed it again.Regards, Michal
Hi Michal,
With the below two changes, I've confirmed that everything is all good! Thanks for your help along the way.
ssize_t
is defined in #include <sys/types.h>
. Including that in compat.h
prevents a compiler error about ssize_t
not being defined.common.c
and common.h
. This causes duplicate function definitions. Removing them should do the trick.Hi, please try it now.
stddef.h
instead, my mistake.Regards, Michal
Hi Michal,
It works now! Thanks so much for you help and patience.
Hi,
I'd like to port over libyang to QNX. I've run into a couple of hiccups which I've summarized below. Let me know if you want console output for any of the issues or anything else, including a pull request.