tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: graphics/gle fails in configure stage (table_noop_array undef'd)

On Tue 17 Apr 2018 at 21:50:01 +0200, Rhialto wrote:
> graphics/gle fails in the configure stage with this error message:

> The real problem is, as shown in the config.log file:
> configure:9222: checking for glGetError in -lGL
> configure:9253: gcc -o conftest -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/pkg/include/libdrm -Wall -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/pkg/include/libdrm -L/usr/pkg/gcc49/lib/gcc/x86_64--netbsd/4.9.4 -Wl,-R/usr/pkg/gcc49/lib/gcc/x86_64--netbsd/4.9.4 -L/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c -lGL  -lSM -lICE  -L/usr/X11R7/lib -lX11  -lXext -lm >&5
> /pkg_comp/obj/pkgsrc/graphics/gle/default/.buildlink/lib/ undefined reference to `table_noop_array'
> collect2: error: ld returned 1 exit status
> configure:9256: $? = 1

This is with pkgsrc-2018Q1, a pkg_comp1 chroot with NetBSD/amd64 7.0.1
inside, and using GCC 4.9.

So far I never built MesaLib-11 since it always failed on some
dependency, but with the current pkgsrc it seems I can't use MesaLib-7
any more.

It would seem that the reference to table_noop_array was added to these

patch-src_mapi_entry__x86-64__tls.h:+   "cmoveq table_noop_array@GOTPCREL(%rip), %r11\n\t"    \
patch-src_mapi_entry__x86__tls.h:+extern const mapi_func table_noop_array[];
patch-src_mapi_entry__x86__tls.h:+   "movl table_noop_array@GOT(%eax), %eax\n\t" \
patch-src_mapi_u__current.c:     = (struct mapi_table *) table_noop_array;
patch-src_mapi_u__current.c:+   return (likely(u_current_table) ? u_current_table : (struct mapi_table *) table_noop_array);

by tnn on 26-Sep-15.

There is this PR from davshao: which
refers to this symbol somehow.

Can somebody have a look at this how to un-break it?

wip/MesaLib is a higher major version and the distfile can't be fetched
so it isn't immediately useable as a replacement.

___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/      -- are condemned to reinvent it. Poorly.

Attachment: signature.asc
Description: PGP signature

Home | Main Index | Thread Index | Old Index