By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2787 - Build issue: Trinity 14.0.4 FTBFS on upcoming Mageia 6
Summary: Build issue: Trinity 14.0.4 FTBFS on upcoming Mageia 6
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: other (any) (show other bugs)
Version: R14.0.x [Trinity]
Hardware: All Linux
: P5 blocker
Assignee: Francois Andriot
URL:
Depends on:
Blocks: R14.0.5
  Show dependency treegraph
 
Reported: 2017-06-25 07:46 CDT by Francois Andriot
Modified: 2017-07-23 05:23 CDT (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
tdeaccessibility: fix FTBFS on Mageia 6 (3.07 KB, patch)
2017-06-25 07:47 CDT, Francois Andriot
Details | Diff
tdeadmin: fix FTBFS on Mageia 6 (2.17 KB, patch)
2017-06-25 07:48 CDT, Francois Andriot
Details | Diff
kaffeine: fix FTBFS on Mageia 6 (727 bytes, patch)
2017-06-25 08:24 CDT, Francois Andriot
Details | Diff
kcmautostart: fix FTBFS on Mageia 6 (452 bytes, patch)
2017-06-25 08:36 CDT, Francois Andriot
Details | Diff
kcmldapcontroller: fix FTBFS on Mageia 6 (646 bytes, patch)
2017-06-25 11:52 CDT, Francois Andriot
Details | Diff
keep: fix FTBFS on Mageia 6 (667 bytes, patch)
2017-06-25 12:04 CDT, Francois Andriot
Details | Diff
klcddimmer: fix FTBFS on Mageia 6 (607 bytes, patch)
2017-06-25 12:45 CDT, Francois Andriot
Details | Diff
knemo: fix FTBFS on Mageia 6 (1.21 KB, patch)
2017-06-25 13:06 CDT, Francois Andriot
Details | Diff
tdebindings: fix FTBFS on Mageia 6 (2.39 KB, patch)
2017-06-25 17:05 CDT, Francois Andriot
Details | Diff
kshowmail: fix FTBFS on Mageia 6 (2.69 KB, patch)
2017-06-25 17:31 CDT, Francois Andriot
Details | Diff
kxmleditor: fix FTBFS on Mageia 6 (1.49 KB, patch)
2017-06-26 12:58 CDT, Francois Andriot
Details | Diff
piklab: fix FTBFS on Mageia 6 (425.95 KB, patch)
2017-06-26 14:42 CDT, Francois Andriot
Details | Diff
tde-style-baghira: fix FTBFS on Mageia 6 (1.21 KB, patch)
2017-06-26 15:57 CDT, Francois Andriot
Details | Diff
tdmtheme: fix FTBFS on Mageia 6 (492 bytes, patch)
2017-06-26 15:59 CDT, Francois Andriot
Details | Diff
kcmldapcontroller: fix FTBFS on Mageia 6 (a) (975 bytes, patch)
2017-07-07 09:16 CDT, Slávek Banko
Details | Diff
kcmldapcontroller: fix FTBFS on Mageia 6 (b) (1.46 KB, patch)
2017-07-16 11:58 CDT, Slávek Banko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Andriot 2017-06-25 07:46:21 CDT
The new Mageia 6 distribution will be out soon.
But several autotools based packages fail to build, mostly due to missing linker flags.
Comment 1 Francois Andriot 2017-06-25 07:47:46 CDT
Created attachment 2782 [details]
tdeaccessibility: fix FTBFS on Mageia  6
Comment 2 Francois Andriot 2017-06-25 07:48:32 CDT
Created attachment 2783 [details]
tdeadmin: fix FTBFS on Mageia  6
Comment 3 Francois Andriot 2017-06-25 08:24:51 CDT
Created attachment 2784 [details]
kaffeine: fix FTBFS on Mageia 6
Comment 4 Francois Andriot 2017-06-25 08:36:11 CDT
Created attachment 2785 [details]
kcmautostart: fix FTBFS on Mageia 6
Comment 5 Francois Andriot 2017-06-25 11:52:53 CDT
Created attachment 2786 [details]
kcmldapcontroller: fix FTBFS on Mageia 6
Comment 6 Francois Andriot 2017-06-25 12:04:56 CDT
Created attachment 2787 [details]
keep: fix FTBFS on Mageia 6
Comment 7 Francois Andriot 2017-06-25 12:45:14 CDT
Created attachment 2788 [details]
klcddimmer: fix FTBFS on Mageia 6
Comment 8 Francois Andriot 2017-06-25 13:06:05 CDT
Created attachment 2789 [details]
knemo: fix FTBFS on Mageia 6
Comment 9 Francois Andriot 2017-06-25 17:05:11 CDT
Created attachment 2790 [details]
tdebindings: fix FTBFS on Mageia 6
Comment 10 Francois Andriot 2017-06-25 17:31:10 CDT
Created attachment 2791 [details]
kshowmail: fix FTBFS on Mageia 6
Comment 11 Francois Andriot 2017-06-26 12:58:47 CDT
Created attachment 2793 [details]
kxmleditor: fix FTBFS on Mageia 6
Comment 12 Francois Andriot 2017-06-26 14:42:34 CDT
Created attachment 2794 [details]
piklab: fix FTBFS on Mageia 6
Comment 13 Francois Andriot 2017-06-26 15:57:21 CDT
Created attachment 2795 [details]
tde-style-baghira: fix FTBFS on Mageia 6
Comment 14 Francois Andriot 2017-06-26 15:59:56 CDT
Created attachment 2796 [details]
tdmtheme: fix FTBFS on Mageia 6
Comment 15 Slávek Banko 2017-07-01 10:17:35 CDT
All patches are now pushed into the GIT, except the patch for kcmldapcontroller. On Debian/Ubuntu is not libslapi.so (only libslapi-2.4.so.2), so the patch is causing FTBFS.
Comment 16 Slávek Banko 2017-07-01 12:10:00 CDT
Now I have explored with which libraries kcmldapcontroller is linked on Debian / Ubuntu and I see the library ldap_r. François, please, can you test if linking ldap_r library instead of slapi library solves the problem on Mageia 6?
Comment 17 Francois Andriot 2017-07-01 13:52:28 CDT
Hello, the exact FTBFS is the following:

/bin/sh ../../libtool  --tag=CXX   --mode=link x86_64-mageia-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt  -module -avoid-version -L/opt/trinity/lib64 -L/usr/lib64 -Wl,--as-needed -Wl,--enable-new-dtags  -L/usr/lib64 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o slapi-acl-manager.la -rpath /opt/trinity/lib64 plugin.lo interface.lo  -ltqt-mt -ltdeldap
libtool: link: x86_64-mageia-linux-gnu-g++  -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/crtbeginS.o  .libs/plugin.o .libs/interface.o   -O2 -O2 -g -fstack-protector -Wl,--as-needed -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -pthread   -pthread  -Wl,-rpath -Wl,/opt/trinity/lib64 -Wl,-rpath -Wl,/opt/trinity/lib64 -L/opt/trinity/lib64 -L/usr/lib64 -L/usr/lib64/mysql -L/usr/X11R6/lib64 /opt/trinity/lib64/libtdeldap.so /opt/trinity/lib64/libtdeio.so /opt/trinity/lib64/libtdeui.so -lldap /usr/lib64/libtqt-mt.so -luuid -laudio -lXt -ljpeg -lgthread-2.0 -lglib-2.0 -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -ldl -lpng -lz -lXext -lX11 -lSM -lICE /usr/lib64/libtqt.so -lpthread /opt/trinity/lib64/libtdecore.so /opt/trinity/lib64/libtdesu.so -llber -L/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0 -L/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/crtendS.o /usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/crtn.o -Wl,-soname -Wl,slapi-acl-manager.so -o .libs/slapi-acl-manager.so
.libs/plugin.o: In function `plugin_destroy(slapi_pblock*)':
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:128: undefined reference to `slapi_ch_array_free'
.libs/plugin.o: In function `internal_plugin_init':
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:144: undefined reference to `slapi_pblock_get'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:146: undefined reference to `slapi_pblock_get'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:154: undefined reference to `slapi_ch_calloc'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:156: undefined reference to `slapi_ch_strdup'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:175: undefined reference to `slapi_pblock_set'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:176: undefined reference to `slapi_pblock_set'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:177: undefined reference to `slapi_pblock_set'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:185: undefined reference to `slapi_pblock_set'
.libs/plugin.o: In function `post_modify(slapi_pblock*) [clone .part.3]':
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:73: undefined reference to `slapi_pblock_get'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:75: undefined reference to `slapi_ch_strdup'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:76: undefined reference to `slapi_dn_normalize_case'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:109: undefined reference to `slapi_pblock_get'
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:112: undefined reference to `slapi_ch_free_string'
.libs/plugin.o: In function `post_modify(slapi_pblock*)':
/tmp/BUILD.mga6.x86_64/trinity-kcmldapcontroller-14.0.4/acl-updater/plugin/plugin.cpp:66: undefined reference to `slapi_pblock_get'
collect2: error: ld returned 1 exit status

I've already tried with '-lldap_r' but I get the same error. Only '-lslapi' solves this on Mageia 6.

/usr/lib64/libslapi-2.4.so.2.10.8 is provided by 'openldap-servers-2.4.45-2.mga6' package.
/usr/lib64/libslapi.so is provided by 'openldap-servers-devel-2.4.45-2.mga6' package, and is a symbolic link to the previous file.

Strangely, there is no 'libslapi.so' file at all on opensuse, and I do not get the FTBFS. Maybe there are several ways to package the openldap libraries, with or without libslapi, or maybe it depends on openldap version.

I think I will use a distribution-conditional patch in the packaging spec file for this particular FTBFS.
Comment 18 Slávek Banko 2017-07-07 09:16:46 CDT
Created attachment 2797 [details]
kcmldapcontroller: fix FTBFS on Mageia 6 (a)

I have edited the patch for the kcmldapcontroller so that the presence of libslapi.so is verified and only linked if is available.

Please try this patch with Maegia 6.
Comment 19 Slávek Banko 2017-07-13 12:52:30 CDT
François, please, do you have any results with an updated patch for kcmldapcontroller?
Comment 20 Francois Andriot 2017-07-13 13:24:23 CDT
Sorry, your patch does not help, the library fails detection during './configure', then the initial FTBFS occurs during build.

Extract from config.log:

configure:27199: checking for slapi_pblock_get in -lslapi
configure:27224: x86_64-mageia-linux-gnu-gcc -o conftest -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2  -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat-security -Wmissing-format-attribute -I/usr/include/tqt  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags conftest.c -lslapi   >&5
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `lt_dlclose'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `rdnNormalize'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `is_ad_subtype'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `slap_send_ldap_extended'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `slap_mods_free'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `rdn_validate'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `ber_bvarray_free'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `ch_malloc'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `ldap_pvt_thread_mutex_destroy'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `be_isroot'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `ldap_str2rdn'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `filter_free'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `dnExtractRdn'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `ldap_pvt_thread_cond_wait'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `mods_structural_class'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `lt_dlerror'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `ldap_pvt_thread_cond_broadcast'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `acl_check_modlist'
/usr/lib/gcc/x86_64-mageia-linux-gnu/5.4.0/../../../../lib64/libslapi.so: undefined reference to `sockbuf_max_incoming'
[...]

I've tried adding more linker flags in 'configure.in.in', e.g:
+AC_CHECK_LIB(slapi, slapi_pblock_get, AC_SUBST(SLAPI_LIBRARIES, "-lslapi"), [], ["-lldap_r -llber -lstdc++"])
...

But nothing works, the ./configure always fails with undefined references.
What I don't understand, is that many of the undefined references are actually in libslapi.so itself, so how can libslapi.so fail to link with undefined references to itself ?
Comment 21 Slávek Banko 2017-07-16 11:58:52 CDT
Created attachment 2798 [details]
kcmldapcontroller: fix FTBFS on Mageia 6 (b)

I've prepared on my builder with a 'mock' base image for mageia 6 so I can better test it... I made a small modification to the previous patch and it seems that it could work now.

Please verify a new patch on your builder.
Comment 22 Francois Andriot 2017-07-21 15:02:41 CDT
I conform, the new patch fixes the issue in kcmldapcontroller.
Comment 23 Slávek Banko 2017-07-22 17:34:07 CDT
Are there any further problems with Mageia 6? Or can we close this bug report?
Comment 24 Francois Andriot 2017-07-23 05:23:36 CDT
Hello, no more problem building on Mageia 6. I'm closing the bug report.