Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#183 wings 0.98.23 and .22* fail to compile

open
None
5
2012-10-25
2004-05-27
Eric Sandall
No

The file: plugins_src/accel/Makefile needs to have:
GL_LIBS = -lGLU -lGL
Changed to:
GL_LIBS = -L/usr/X11R6/lib -lGLU -lGL

Otherwise the linker cannot find -lGLU for gluTessCallback
as follows:
make[4]: Entering directory
/usr/src/wings-0.98.23/plugins_src/accel' install -d ../../plugins/accel gcc -o ../../plugins/accel/wings_ogla_drv.so -I/usr/lib/erlang/usr/include \ wings_ogla_drv.c -shared -fpic -lGLU -lGL wings_ogla_drv.c: In functionwings_file_start':
wings_ogla_drv.c:140: warning: passing arg 3 of
gluTessCallback' from incompatible pointer type wings_ogla_drv.c:141: warning: passing arg 3 ofgluTessCallback' from incompatible pointer type
wings_ogla_drv.c:142: warning: passing arg 3 of
gluTessCallback' from incompatible pointer type wings_ogla_drv.c:143: warning: passing arg 3 ofgluTessCallback' from incompatible pointer type
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lGLU
collect2: ld returned 1 exit status

Discussion

  • Logged In: YES
    user_id=286649

    I am not sure whether it is a good idea to include a library path, because
    it might cause problems on some Unix system.

    The current Makefile works when building on both Redhat 9 Linux and on
    Solaris 8/Sparc. In both cases, the X server is started and I run make
    inside an xterm.

    Did you build in an xterm (with X started)? What kind of Linux
    distribution do you use?

     
  • Eric Sandall
    Eric Sandall
    2004-06-11

    Logged In: YES
    user_id=95198

    I haven't tried it while not running in an xterm (though
    some were through a non-X-forwarding SSH connection, so
    that'd be about the same), but I'm not sure why that would
    break anything.

    It /could/ be something wrong with our setup, but these
    problems started with the .21c release.

    xorg v6.7.0
    Source Mage GNU/Linux

     
  • Logged In: YES
    user_id=20273

    According opengl linux interworking descr, GL libraries should
    be placed in /usr/lib/libGL*.

    Including -L/usr/X11/ would maybe break the systems that
    follows the spec. I.e. if you have old mesa libs in X11 dir and
    newer libs in /usr/lib/

     
  • Eric Sandall
    Eric Sandall
    2004-11-18

    Logged In: YES
    user_id=95198

    I've tried building in an xterm with X access. The default X (xorg
    6.8.0) install (via ./configure --prefix=/usr && make install && make install.man && make install_drm from X.Org's sources)
    installs the following libs:

    $ gaze install xorg|grep \/usr\/lib\/lib.*.so
    /usr/lib/X11
    /usr/lib/libGL.so
    /usr/lib/libGL.so.1

    $ gaze install xorg|grep ^\/lib\/lib.*.so

    $ gaze install xorg|grep ^\/usr\/X11R6\/lib/lib.*.so
    /usr/X11R6/lib/libFS.so
    /usr/X11R6/lib/libFS.so.6
    /usr/X11R6/lib/libFS.so.6.0
    /usr/X11R6/lib/libGL.so
    /usr/X11R6/lib/libGL.so.1
    /usr/X11R6/lib/libGL.so.1.2
    /usr/X11R6/lib/libGLU.so
    /usr/X11R6/lib/libGLU.so.1
    /usr/X11R6/lib/libGLU.so.1.3
    /usr/X11R6/lib/libGLw.so
    /usr/X11R6/lib/libGLw.so.1
    /usr/X11R6/lib/libGLw.so.1.0
    /usr/X11R6/lib/libI810XvMC.so
    /usr/X11R6/lib/libI810XvMC.so.1
    /usr/X11R6/lib/libI810XvMC.so.1.0
    /usr/X11R6/lib/libICE.so
    /usr/X11R6/lib/libICE.so.6
    /usr/X11R6/lib/libICE.so.6.3
    /usr/X11R6/lib/libOSMesa.so
    /usr/X11R6/lib/libOSMesa.so.4
    /usr/X11R6/lib/libOSMesa.so.4.0
    /usr/X11R6/lib/libSM.so
    /usr/X11R6/lib/libSM.so.6
    /usr/X11R6/lib/libSM.so.6.0
    /usr/X11R6/lib/libX11.so
    /usr/X11R6/lib/libX11.so.6
    /usr/X11R6/lib/libX11.so.6.2
    /usr/X11R6/lib/libXRes.so
    /usr/X11R6/lib/libXRes.so.1
    /usr/X11R6/lib/libXRes.so.1.0
    /usr/X11R6/lib/libXTrap.so
    /usr/X11R6/lib/libXTrap.so.6
    /usr/X11R6/lib/libXTrap.so.6.4
    /usr/X11R6/lib/libXaw.so
    /usr/X11R6/lib/libXaw.so.6
    /usr/X11R6/lib/libXaw.so.6.1
    /usr/X11R6/lib/libXaw.so.7
    /usr/X11R6/lib/libXaw.so.7.0
    /usr/X11R6/lib/libXaw.so.8
    /usr/X11R6/lib/libXaw.so.8.0
    /usr/X11R6/lib/libXcomposite.so
    /usr/X11R6/lib/libXcomposite.so.1
    /usr/X11R6/lib/libXcomposite.so.1.0
    /usr/X11R6/lib/libXcursor.so
    /usr/X11R6/lib/libXcursor.so.1
    /usr/X11R6/lib/libXcursor.so.1.0.2
    /usr/X11R6/lib/libXdamage.so
    /usr/X11R6/lib/libXdamage.so.1
    /usr/X11R6/lib/libXdamage.so.1.0
    /usr/X11R6/lib/libXevie.so
    /usr/X11R6/lib/libXevie.so.1
    /usr/X11R6/lib/libXevie.so.1.0
    /usr/X11R6/lib/libXext.so
    /usr/X11R6/lib/libXext.so.6
    /usr/X11R6/lib/libXext.so.6.4
    /usr/X11R6/lib/libXfixes.so
    /usr/X11R6/lib/libXfixes.so.3
    /usr/X11R6/lib/libXfixes.so.3.0
    /usr/X11R6/lib/libXfont.so
    /usr/X11R6/lib/libXfont.so.1
    /usr/X11R6/lib/libXfont.so.1.5
    /usr/X11R6/lib/libXft.so
    /usr/X11R6/lib/libXft.so.1
    /usr/X11R6/lib/libXft.so.1.1
    /usr/X11R6/lib/libXft.so.2
    /usr/X11R6/lib/libXft.so.2.1.2
    /usr/X11R6/lib/libXi.so
    /usr/X11R6/lib/libXi.so.6
    /usr/X11R6/lib/libXi.so.6.0
    /usr/X11R6/lib/libXinerama.so
    /usr/X11R6/lib/libXinerama.so.1
    /usr/X11R6/lib/libXinerama.so.1.0
    /usr/X11R6/lib/libXmu.so
    /usr/X11R6/lib/libXmu.so.6
    /usr/X11R6/lib/libXmu.so.6.2
    /usr/X11R6/lib/libXmuu.so
    /usr/X11R6/lib/libXmuu.so.1
    /usr/X11R6/lib/libXmuu.so.1.0
    /usr/X11R6/lib/libXp.so
    /usr/X11R6/lib/libXp.so.6
    /usr/X11R6/lib/libXp.so.6.2
    /usr/X11R6/lib/libXpm.so
    /usr/X11R6/lib/libXpm.so.4
    /usr/X11R6/lib/libXpm.so.4.11
    /usr/X11R6/lib/libXrandr.so
    /usr/X11R6/lib/libXrandr.so.2
    /usr/X11R6/lib/libXrandr.so.2.0
    /usr/X11R6/lib/libXrender.so
    /usr/X11R6/lib/libXrender.so.1
    /usr/X11R6/lib/libXrender.so.1.2.2
    /usr/X11R6/lib/libXss.so
    /usr/X11R6/lib/libXss.so.1
    /usr/X11R6/lib/libXss.so.1.0
    /usr/X11R6/lib/libXt.so
    /usr/X11R6/lib/libXt.so.6
    /usr/X11R6/lib/libXt.so.6.0
    /usr/X11R6/lib/libXtst.so
    /usr/X11R6/lib/libXtst.so.6
    /usr/X11R6/lib/libXtst.so.6.1
    /usr/X11R6/lib/libXv.so
    /usr/X11R6/lib/libXv.so.1
    /usr/X11R6/lib/libXv.so.1.0
    /usr/X11R6/lib/libXvMC.so
    /usr/X11R6/lib/libXvMC.so.1
    /usr/X11R6/lib/libXvMC.so.1.0
    /usr/X11R6/lib/libXxf86dga.so
    /usr/X11R6/lib/libXxf86dga.so.1
    /usr/X11R6/lib/libXxf86dga.so.1.0
    /usr/X11R6/lib/libXxf86misc.so
    /usr/X11R6/lib/libXxf86misc.so.1
    /usr/X11R6/lib/libXxf86misc.so.1.1
    /usr/X11R6/lib/libXxf86rush.so
    /usr/X11R6/lib/libXxf86rush.so.1
    /usr/X11R6/lib/libXxf86rush.so.1.0
    /usr/X11R6/lib/libXxf86vm.so
    /usr/X11R6/lib/libXxf86vm.so.1
    /usr/X11R6/lib/libXxf86vm.so.1.0
    /usr/X11R6/lib/libdps.so
    /usr/X11R6/lib/libdps.so.1
    /usr/X11R6/lib/libdps.so.1.0
    /usr/X11R6/lib/libdpstk.so
    /usr/X11R6/lib/libdpstk.so.1
    /usr/X11R6/lib/libdpstk.so.1.0
    /usr/X11R6/lib/libfontenc.so
    /usr/X11R6/lib/libfontenc.so.1
    /usr/X11R6/lib/libfontenc.so.1.0
    /usr/X11R6/lib/libpsres.so
    /usr/X11R6/lib/libpsres.so.1
    /usr/X11R6/lib/libpsres.so.1.0
    /usr/X11R6/lib/libxkbfile.so
    /usr/X11R6/lib/libxkbfile.so.1
    /usr/X11R6/lib/libxkbfile.so.1.0
    /usr/X11R6/lib/libxkbui.so
    /usr/X11R6/lib/libxkbui.so.1
    /usr/X11R6/lib/libxkbui.so.1.0

    We can continue to modify our package to add the needed
    LDCONFIG path for us if needed. Perhaps add a test for -lGLU, and
    if it's not found, add the -L/usr/X11R6/lib?

    I am using xorg 6.8.0 (now, the bug was opened under 6.7.0) on a
    Source Mage GNU/Linux system.