pkgsrc-Users archive

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

Re: graphics/cairo compilation error



On 09.09.2012 18:45, Mayuresh wrote:
> I am running NetBSD 6.0 BETA2 on i386 and recently updated pkgsrc.
> 
> 
> Face the following compilation error:
> 
> /usr/pkgsrc/graphics/cairo/work/.buildlink/lib/libGL.so: warning: warning:
> reference to compatibility __shmctl13(); include <sys/shm.h> to generate
> correct reference
> /usr/pkgsrc/graphics/cairo/work/.buildlink/lib/libxcb.so: warning:
> warning: reference to compatibility time(); include <time.h> for correct
> reference
> /usr/pkgsrc/graphics/cairo/work/.buildlink/lib/libXau.so: warning:
> warning: reference to compatibility __stat30(); include <sys/stat.h> to
> generate correct reference
> ../src/.libs/libcairo.so: undefined reference to `glXGetProcAddress'
> *** [cairo-test-suite] Error code 1
> 
> 
> Would appreciate help in resolving this.

I encountered the same issue and need to dig into it.

Thanks to Joerg Sonnenberger I finally figured out where the problem
was: MesaLib don't export that symbol:
trevor@bert:/data/pkgsrc/graphics/cairo$ readelf --syms
/tmp/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/lib/libGL.so|grep
glXGetProcAddress
   951: 000000000002e6e0    25 FUNC    GLOBAL DEFAULT   12
glXGetProcAddressARB
  5567: 000000000002e700     5 FUNC    LOCAL  HIDDEN   12 glXGetProcAddress
  5959: 000000000002e6e0    25 FUNC    GLOBAL DEFAULT   12
glXGetProcAddressARB
trevor@bert:/data/pkgsrc/graphics/cairo$ readelf --syms
/tmp/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/lib/libGL.so|grep
glXGetProcAddress
   135: 000000000002e730     5 FUNC    GLOBAL DEFAULT   12 glXGetProcAddress
   952: 000000000002e710    25 FUNC    GLOBAL DEFAULT   12
glXGetProcAddressARB
  5958: 000000000002e710    25 FUNC    GLOBAL DEFAULT   12
glXGetProcAddressARB
  6806: 000000000002e730     5 FUNC    GLOBAL DEFAULT   12 glXGetProcAddress

for the moment I edited work/Mesa-7.4.4/src/mesa/drivers/x11/glxapi.c
and put a "PUBLIC" in front of glXGetProcAddress definition at line 1412
as well as
/tmp/pkgsrc/graphics/MesaLib/work/Mesa-7.4.4/src/glx/x11/glxcmds.c and
remove the alias stuff (I was unsure whether it works or not) around
line 2940.

With that change graphics/cairo compiles fine as well as dependent
libraries.

Thanks Joerg,
Jens


Home | Main Index | Thread Index | Old Index