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

undefined reference to `psiginfo' #13

Open
gardar opened this issue Mar 24, 2022 · 1 comment
Open

undefined reference to `psiginfo' #13

gardar opened this issue Mar 24, 2022 · 1 comment

Comments

@gardar
Copy link

gardar commented Mar 24, 2022

I'm trying build ioctl on a ancient buildroot (BR2_GCC_VERSION="4.4.1" / BR2_UCLIBC_VERSION_STRING="0.9.32.1") but it fails with the following error:

arm-buildroot-linux-uclibcgnueabi-gcc -Wall   -c -MMD -c -o ioctl.o ioctl.c
ioctl.c: In function ‘sighandler’:
ioctl.c:48: warning: implicit declaration of function ‘psiginfo’
arm-buildroot-linux-uclibcgnueabi-gcc   ioctl.o ioctls_list_empty.o   -o ioctl
ioctl.o: In function `sighandler':
ioctl.c:(.text+0x60): undefined reference to `psiginfo'
collect2: ld returned 1 exit status
make[1]: *** [ioctl] Error 1

To work around the issue I commented out:
psiginfo(pinfo, "ioctl returned with signal");
and added:
fprintf(stderr, "ioctl returned with signal %d", signum);
which is not ideal...

Any ideas on how I can make psiginfo work?

@jerome-pouiller
Copy link
Owner

If you find the correct macro to know if uclibc has been compiled with psiginfo, I could include it.

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

2 participants