diff options
author | Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> | 2015-10-21 16:48:46 +0530 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-10-23 12:57:08 +0200 |
commit | 89e40e736dc6ab87d3b081c2fc01831d1d05ef72 (patch) | |
tree | 74a63f8f1a0b190a3ffe39cc5b80ee86bff848a3 /meta-python/recipes-devtools/python/python-cryptography/run-ptest | |
parent | 4272ccb80a36aab98b1cb994ae75f8d99a89edb6 (diff) | |
download | meta-openembedded-89e40e736dc6ab87d3b081c2fc01831d1d05ef72.tar.gz |
libuio: fix build issue with gcc-5
1. Remove PNBLACKLIST[libuio] line, since libuio compiles fine with gcc-5
with this patch.
2. By default, gcc-5 uses C99 inline semantics, this semantics doesn't
generate externally visible function for inline functions. This results in
below error, when an another translation unit (TU) tries to link with the
inline function,
-- snip --
| lsuio.o: In function `main':
| <...>/libuio/0.2.1-r0/git/tools/lsuio.c:85: undefined reference to `uio_mmap'
| collect2: error: ld returned 1 exit status
| make[2]: *** [lsuio] Error 1
-- CUT --
To solve this error and make libuio to compile with both 4.x and 5.x,
1. We can remove 'uio_mmap' inline function definition in uio_mmap.c, and move
that definition into uio_helper.h file (which is included by lsuio.c) and
replace inline with "static inline". Similarly it can be done to
uio_single_munmap and uio_munmap inline functions
2. Add 'extern' keyword in front of uio_mmap inline function declaration , to
make uio_mmap as a externally visible function, and so that it can be
linked with other TUs.
Going with option 1.
Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-cryptography/run-ptest')
0 files changed, 0 insertions, 0 deletions