Bug 251609 - graphics/sane-epkowa: fails to load because of missing symbol isfdtype
Summary: graphics/sane-epkowa: fails to load because of missing symbol isfdtype
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-05 16:55 UTC by andy
Modified: 2025-03-10 03:02 UTC (History)
1 user (show)

See Also:


Attachments
a patch to remove the Linuxism (408 bytes, patch)
2020-12-05 16:55 UTC, andy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2020-12-05 16:55:07 UTC
Created attachment 220283 [details]
a patch to remove the Linuxism

The port compiles fine due to C's implicit declaration of missing functions, but the backend fails to load with a dynamic linker error.

The problem is the Linux-specific function isfdtype. The isfdtype manpage says, "Portable applications should use fstat(3) instead," so here is a patch that does that.

This patch is ready to go into the files directory in the port, but I'm not quite sure how to modify the Makefile to use this patch but not the patches that are already there but only for version 1.15.
Comment 1 Zsolt Udvari freebsd_committer freebsd_triage 2024-08-15 18:37:22 UTC
^Triage: assign to maintainer (committer).
Comment 2 Cy Schubert freebsd_committer freebsd_triage 2024-10-27 04:26:12 UTC
I cannot reproduce the problem here. What is the error you see?

BTW, fstat() != isfdtype().

I need more information. Post the output of the following, please.

uname -a

file /usr/local/lib/sane/libsane-epkowa.so.1

ldd /usr/local/lib/sane/libsane-epkowa.so.1