tech-pkg archive

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

Re: graphics/gle fails to build after Mesa update



David Brownlee a écrit :
    It fails with:

configure:9478: checking for glutSwapBuffers in -lglut
configure:9509: cc -o conftest -O2 -pipe -I/usr/pkg/include -I/usr/include -Wall -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c -lglut -lSM -lICE -lXmu -lXi -lXext -lXmu -lGLU -lGL -lX11 -lXext -lm >&5 /var/obj/pkg/graphics/gle/work/.buildlink/lib/libglut.so: undefined reference to `glXGetProcAddressARB'
configure:9512: $? = 1

    Interestingly glut appears to be linked with libGL which contains
    glXGetProcAddressARB.  Anyone seeing similar?

ldd /var/obj/pkg/graphics/gle/work/.buildlink/lib/libglut.so /var/obj/pkg/graphics/gle/work/.buildlink/lib/libglut.so:
        -lXau.6 => /usr/pkg/lib/libXau.so.6
        -lXdmcp.6 => /usr/pkg/lib/libXdmcp.so.6
        -lX11.6 => /usr/pkg/lib/libX11.so.6
        -lXext.6 => /usr/pkg/lib/libXext.so.6
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lGL.1 => /usr/pkg/lib/libGL.so.1
        -lstdc++.6 => /usr/lib/libstdc++.so.6
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lGLU.1 => /usr/pkg/lib/libGLU.so.1
        -lICE.6 => /usr/pkg/lib/libICE.so.6
        -lSM.6 => /usr/pkg/lib/libSM.so.6
        -lXt.6 => /usr/pkg/lib/libXt.so.6
        -lXmu.6 => /usr/pkg/lib/libXmu.so.6
        -lXi.6 => /usr/pkg/lib/libXi.so.6



I compile gle with no error other than having to add -lpthreads because my glu seems to be compiled against it. My glut also refers to libGL:

nm /usr/pkg/lib/libGL.so | grep glXGetProcAddressARB
000122b2 T glXGetProcAddressARB

nm /usr/pkg/lib/libglut.so | grep glXGetProcAddressARB
         U glXGetProcAddressARB

Vincent


Home | Main Index | Thread Index | Old Index