Skip to content

undefined reference to `psiginfo' #13

Description

@gardar

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions