Bug 249328

Summary: editors/libreoffice: link failure on canvasdemo
Product: Ports & Packages Reporter: Bertrand Petit <bsdpr>
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Open ---    
Severity: Affects Only Me CC: bsdpr, lwhsu, tommi.pernila
Priority: --- Flags: bugzilla: maintainer-feedback? (office)
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
Ports configuration tree of the affected host (A)
Ports configuration tree of the unaffected host (B) none

Description Bertrand Petit 2020-09-15 08:48:31 UTC
The libreoffice port revision fails to link canvasdemo

[build LNK] Executable/canvasdemo
S=/usr/obj/ports/usr/ports/editors/libreoffice/work/libreoffice- && I=$S/instdir && W=$S/workdir &&  c++ -pthread    -Wl,-z,origin '-Wl,-rpath,$ORIGIN/../Library' -Wl,-rpath-link,$I/program -fstack-protector-strong -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc  -Wl,--hash-style=gnu  -Wl,-Bsymbolic-functions -L$W/LinkTarget/StaticLibrary -L$I/sdk/lib  -L$I/program  -L$I/program  -L$W/LinkTarget/Library -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong    -L/usr/local/lib  $W/CxxObject/canvas/workben/canvasdemo.o      -Wl,--start-group $W/LinkTarget/StaticLibrary/libvclmain.a $W/LinkTarget/StaticLibrary/libglxtest.a -lm  -lX11   -Wl,--end-group -Wl,--no-as-needed -lbasegfxlo -lcomphelper -luno_cppu -luno_cppuhelpergcc3 -ltllo -luno_sal -luno_salhelpergcc3 -lvcllo  -o $W/LinkTarget/Executable/canvasdemo 
/usr/obj/ports/usr/ports/editors/libreoffice/work/libreoffice- undefined reference to `XGetXCBConnection'
c++: error: linker command failed with exit code 1 (use -v to see invocation)

Shouldn't -lX11-xcb be used instead of -lX11?
Comment 1 Li-Wen Hsu freebsd_committer 2020-09-15 15:08:44 UTC
Just wanted to make sure, do you use the default options or there are some customized settings?
Comment 2 Bertrand Petit 2020-09-15 20:21:03 UTC
Created attachment 217980 [details]
Ports configuration tree of the affected host (A)
Comment 3 Bertrand Petit 2020-09-15 20:21:37 UTC
Created attachment 217981 [details]
Ports configuration tree of the unaffected host (B)
Comment 4 Bertrand Petit 2020-09-15 20:27:48 UTC
I attempted two installations of lo on two different hosts with two different outcomes: one for which the failure is reported above (host A); one on which the port was successfully installed (host B). For both hosts I attached the full ports configuration tree.

Host A runs 11-STABLE (rev 365447), host B runs 12-STABLE (rev 360207).