Bug 275950 - devel/libayatana-indicator: Fails to build after recent update of x11-toolkits/gtk30
Summary: devel/libayatana-indicator: Fails to build after recent update of x11-toolkit...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dima Panov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-26 14:35 UTC by Tomoaki AOKI
Modified: 2024-08-12 13:13 UTC (History)
5 users (show)

See Also:


Attachments
AdHoc patch to fix build (259 bytes, patch)
2023-12-26 14:41 UTC, Tomoaki AOKI
junchoon: maintainer-approval? (jgh)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoaki AOKI 2023-12-26 14:35:18 UTC
After bump for x11-toolkits/gtk30 consumers at commit 3572ca3e01dedf1fe5b3776bd164e123252f5ef5, devel/libayatana-indicator started failing build.

I know there is already Bug275669 [1], but the failure mode is different.

     ===== Quote =====

[100% 17/17] : && /usr/local/libexec/ccache/cc -O2 -pipe -march=haswell  -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe -march=haswell  -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DNDEBUG -fstack-protector-strong -L/usr/local/lib tools/CMakeFiles/ayatana-indicator-loader3.dir/indicator-loader.c.o -o tools/ayatana-indicator-loader3  -lgmodule-2.0  -lgdk-3  -lz  -lharfbuzz  -lpangocairo-1.0  -lpango-1.0  -latk-1.0  -lgobject-2.0  -lcairo  -lcairo-gobject  -lgdk_pixbuf-2.0  -lgio-2.0  -layatana-ido3-0.4  -lgtk-3  -lglib-2.0  -lintl  -L/wrkdirs/usr/ports/devel/libayatana-indicator/work/.build/src  -layatana-indicator3 && :
FAILED: tools/ayatana-indicator-loader3 
: && /usr/local/libexec/ccache/cc -O2 -pipe -march=haswell  -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -O2 -pipe -march=haswell  -Wno-error=incompatible-function-pointer-types -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DNDEBUG -fstack-protector-strong -L/usr/local/lib tools/CMakeFiles/ayatana-indicator-loader3.dir/indicator-loader.c.o -o tools/ayatana-indicator-loader3  -lgmodule-2.0  -lgdk-3  -lz  -lharfbuzz  -lpangocairo-1.0  -lpango-1.0  -latk-1.0  -lgobject-2.0  -lcairo  -lcairo-gobject  -lgdk_pixbuf-2.0  -lgio-2.0  -layatana-ido3-0.4  -lgtk-3  -lglib-2.0  -lintl  -L/wrkdirs/usr/ports/devel/libayatana-indicator/work/.build/src  -layatana-indicator3 && :
ld: error: undefined reference due to --no-allow-shlib-undefined: pthread_create
>>> referenced by /usr/local/lib/libgio-2.0.so
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/libayatana-indicator
=>> Cleaning up wrkdir
===>  Cleaning for libayatana-indicator-0.9.4_1
build of devel/libayatana-indicator | libayatana-indicator-0.9.4_1 ended at Tue Dec 26 16:38:53 JST 2023
build time: 00:00:24
!!! build failure encountered !!!

     ===== End quote =====


[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275669
Comment 1 Tomoaki AOKI 2023-12-26 14:41:36 UTC
Created attachment 247269 [details]
AdHoc patch to fix build

Not sure this is the correct fix, but this patch fixed the build for me.
The only consumer (for me) deskutils/xpad seems to running OK with this.

The web page I found for this fix is at stackoverflow [2].

[2] https://stackoverflow.com/questions/1662909/undefined-reference-to-pthread-create-in-linux
Comment 2 Nuno Teixeira freebsd_committer freebsd_triage 2024-01-29 14:15:02 UTC
Just adding a pr about same issue that mught be of value (See also)
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-08-12 09:12:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ffe676bab6d497380d7f5d996b167ab70276af5c

commit ffe676bab6d497380d7f5d996b167ab70276af5c
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2024-08-12 09:09:58 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2024-08-12 09:09:58 +0000

    devel/libayatana-indicator: Fails to build after update of x11-toolkits/gtk30

    Approved by:    maintainer timeout (> 6 months)
    PR:     275950

 devel/libayatana-indicator/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 4 Dima Panov freebsd_committer freebsd_triage 2024-08-12 09:12:44 UTC
Fixed, thanks!
Comment 5 Tomoaki AOKI 2024-08-12 13:13:52 UTC
(In reply to Dima Panov from comment #4)
Confirmed. Thanks!