* [ptxdist] GLIB not building (ptxdist:2017-07, ArchLinux)
@ 2017-08-30 8:32 Artur Wiebe
2017-08-31 13:30 ` Artur Wiebe
2017-08-31 18:17 ` Ian Abbott
0 siblings, 2 replies; 4+ messages in thread
From: Artur Wiebe @ 2017-08-30 8:32 UTC (permalink / raw)
To: ptxdist
Hi,
On my ArchLinux GLIB from current PtxDist is not building.
I get the error:
./.libs/libgio-2.0.so: undefined reference to `__dn_expand'
./.libs/libgio-2.0.so: undefined reference to `__res_query'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:2285: glib-compile-resources] Error 1
Does anyone have any idea?
Best Regards,
Artur
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] GLIB not building (ptxdist:2017-07, ArchLinux)
2017-08-30 8:32 [ptxdist] GLIB not building (ptxdist:2017-07, ArchLinux) Artur Wiebe
@ 2017-08-31 13:30 ` Artur Wiebe
2017-08-31 18:17 ` Ian Abbott
1 sibling, 0 replies; 4+ messages in thread
From: Artur Wiebe @ 2017-08-31 13:30 UTC (permalink / raw)
To: ptxdist
Hi,
I managed to compile GLIB with the following workarounds. I didn't find the roots of the problems so I don't send a patch...
diff /usr/local/lib/ptxdist-2017.07.0/rules/glib.make root/rules/glib.make -c3
*** /usr/local/lib/ptxdist-2017.07.0/rules/glib.make 2017-07-20 17:17:59.000000000 +0200
--- root/rules/glib.make 2017-08-31 15:17:18.809045253 +0200
***************
*** 17,24 ****
#
# Paths and names
#
! GLIB_VERSION := 2.52.1
! GLIB_MD5 := 36b4c7bf4f2b398ac8ad90578d05c950
GLIB := glib-$(GLIB_VERSION)
GLIB_SUFFIX := tar.xz
GLIB_SOURCE := $(SRCDIR)/$(GLIB).$(GLIB_SUFFIX)
--- 17,24 ----
#
# Paths and names
#
! GLIB_VERSION := 2.52.3
! GLIB_MD5 := 89265d0289a436e99cad54491eb21ef4
GLIB := glib-$(GLIB_VERSION)
GLIB_SUFFIX := tar.xz
GLIB_SOURCE := $(SRCDIR)/$(GLIB).$(GLIB_SUFFIX)
***************
*** 39,45 ****
glib_cv_have_qsort_r=yes \
ac_cv_func_statfs=yes \
ac_cv_path_MSGFMT=: \
! ac_cv_path_XGETTEXT=no
#
# autoconf
--- 39,48 ----
glib_cv_have_qsort_r=yes \
ac_cv_func_statfs=yes \
ac_cv_path_MSGFMT=: \
! ac_cv_path_XGETTEXT=no \
! LIBS="-lresolv" \
! PKG_CONFIG_PATH=$(GLIB_DIR)/ \
! GTKDOC_REBASE="/bin/true"
#
# autoconf
Artur
---
On Wednesday, August 30, 2017 10:32 CEST, "Artur Wiebe" <artur@4wiebe.de> wrote:
> Hi,
>
> On my ArchLinux GLIB from current PtxDist is not building.
>
> I get the error:
> ./.libs/libgio-2.0.so: undefined reference to `__dn_expand'
> ./.libs/libgio-2.0.so: undefined reference to `__res_query'
> collect2: error: ld returned 1 exit status
> make[5]: *** [Makefile:2285: glib-compile-resources] Error 1
>
> Does anyone have any idea?
>
> Best Regards,
> Artur
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] GLIB not building (ptxdist:2017-07, ArchLinux)
2017-08-30 8:32 [ptxdist] GLIB not building (ptxdist:2017-07, ArchLinux) Artur Wiebe
2017-08-31 13:30 ` Artur Wiebe
@ 2017-08-31 18:17 ` Ian Abbott
2017-08-31 18:28 ` Ian Abbott
1 sibling, 1 reply; 4+ messages in thread
From: Ian Abbott @ 2017-08-31 18:17 UTC (permalink / raw)
To: ptxdist, Artur Wiebe
On 30/08/17 09:32, Artur Wiebe wrote:
> Hi,
>
> On my ArchLinux GLIB from current PtxDist is not building.
>
> I get the error:
> ./.libs/libgio-2.0.so: undefined reference to `__dn_expand'
> ./.libs/libgio-2.0.so: undefined reference to `__res_query'
> collect2: error: ld returned 1 exit status
> make[5]: *** [Makefile:2285: glib-compile-resources] Error 1
>
> Does anyone have any idea?
>
> Best Regards,
> Artur
I attempted (and failed) to reproduce the problem by building
"DistroKit" for the "platform-v7a" BSP (see
<http://www.pengutronix.de/en/2017-08-28-distrokit-a-playground-bsp-for-ptxdist.html>)
in an up-to-date ArchLinux "Docker" container on my Debian "testing"
amd64 host. The build used the "OSELAS.Toolchain-2016.06.1" toolchain
for the "arm-v7a-linux-gnueabihf" target architecture and Arch Linux's
current native toolchain for the amd64 host.
I ran into a couple of known problems in ptxdist-2017.07.0 (due to the
host-ncurses and host-intltool packages needing fixes) but after fixing
those the build went smoothly.
If I run objdump -T on the built libgio-2.0.so.0.5200.1 file, it
contains both the '__dn_expand' and '__res_query' symbols in its .text
section as expected.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ptxdist] GLIB not building (ptxdist:2017-07, ArchLinux)
2017-08-31 18:17 ` Ian Abbott
@ 2017-08-31 18:28 ` Ian Abbott
0 siblings, 0 replies; 4+ messages in thread
From: Ian Abbott @ 2017-08-31 18:28 UTC (permalink / raw)
To: ptxdist, Artur Wiebe
On 31/08/17 19:17, Ian Abbott wrote:
> On 30/08/17 09:32, Artur Wiebe wrote:
>> Hi,
>>
>> On my ArchLinux GLIB from current PtxDist is not building.
>>
>> I get the error:
>> ./.libs/libgio-2.0.so: undefined reference to `__dn_expand'
>> ./.libs/libgio-2.0.so: undefined reference to `__res_query'
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [Makefile:2285: glib-compile-resources] Error 1
>>
>> Does anyone have any idea?
>>
>> Best Regards,
>> Artur
>
> I attempted (and failed) to reproduce the problem by building
> "DistroKit" for the "platform-v7a" BSP (see
> <http://www.pengutronix.de/en/2017-08-28-distrokit-a-playground-bsp-for-ptxdist.html>)
> in an up-to-date ArchLinux "Docker" container on my Debian "testing"
> amd64 host. The build used the "OSELAS.Toolchain-2016.06.1" toolchain
> for the "arm-v7a-linux-gnueabihf" target architecture and Arch Linux's
> current native toolchain for the amd64 host.
>
> I ran into a couple of known problems in ptxdist-2017.07.0 (due to the
> host-ncurses and host-intltool packages needing fixes) but after fixing
> those the build went smoothly.
>
> If I run objdump -T on the built libgio-2.0.so.0.5200.1 file, it
> contains both the '__dn_expand' and '__res_query' symbols in its .text
> section as expected.
Actually, to clarify, the above objdump -T was for the target (arm-v7a)
version of the libgio-2.0.so.0.5200.1 file. If I objdump -T on the host
(amd64) version of the file, the '__dn_expand' and '__res_query' symbols
are undefined and imported from GLIBC_2.2.5.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-08-31 18:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-30 8:32 [ptxdist] GLIB not building (ptxdist:2017-07, ArchLinux) Artur Wiebe
2017-08-31 13:30 ` Artur Wiebe
2017-08-31 18:17 ` Ian Abbott
2017-08-31 18:28 ` Ian Abbott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox