Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Critical warning from C compiler: implicit declaration of function ‘gbinder_servicemanager_new2’ (it will become error in future versions of Clang) #10

Open
RarogCmex opened this issue Dec 18, 2022 · 3 comments

Comments

@RarogCmex
Copy link

'''
gbinder.c:13497:25: warning: implicit declaration of function ‘gbinder_servicemanager_new2’; did you mean ‘gbinder_servicemanager_new’? [-Wimplicit-function-declaration]
'''
Complete build log:
build.zip

@RarogCmex
Copy link
Author

It seems that build will be broken with Clang-16 (-Werror=implicit-function-declaration):
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting#What_changed.3F

@RarogCmex RarogCmex changed the title Warning from C compiler: implicit declaration of function ‘gbinder_servicemanager_new2’ Critical warning from C compiler: implicit declaration of function ‘gbinder_servicemanager_new2’ (it will become error in future versions of Clang) Dec 22, 2022
@JamiKettunen
Copy link

Invalid issue, you were building against a libgbinder on your system from before mer-hybris/libgbinder@14399b1

@minecraft2048
Copy link

minecraft2048 commented Oct 4, 2024

gcc failed to compile while trying to install from AUR:

==> Starting build()...
Compiling gbinder.pyx because it changed.
[1/1] Cythonizing gbinder.pyx
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
gbinder.c: In function ‘__pyx_pf_7gbinder_14ServiceManager___cinit__’:
gbinder.c:21675:25: error: implicit declaration of function ‘gbinder_servicemanager_new2’; did you mean ‘gbinder_servicemanager_new’? [-Wimplicit-function-declaration]
21675 |     __pyx_v_self->_sm = gbinder_servicemanager_new2(__pyx_t_7, __pyx_t_9, __pyx_t_11);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         gbinder_servicemanager_new
gbinder.c:21675:23: error: assignment to ‘GBinderServiceManager *’ {aka ‘struct gbinder_servicemanager *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
21675 |     __pyx_v_self->_sm = gbinder_servicemanager_new2(__pyx_t_7, __pyx_t_9, __pyx_t_11);
      |                       ^
error: command '/usr/bin/gcc' failed with exit code 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-gbinder-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-gbinder - exit status 4

EDIT: Updating libgbinder fixes this compilation error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants