[X2Go-Dev] nx-libs 3.6 compile error

Orion Poplawski orion at cora.nwra.com
Wed Apr 29 23:27:21 CEST 2015


I figured I would try to compile the 3.6 branch of nx-libs.  I get this:

gcc -o nxagent -g -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic
-fno-strict-aliasing -ansi -Wall -Wpointer-arith -Wundef
-L../../exports/lib   hw/nxagent/miinitext.o
hw/nxagent/NXwindow.o                    hw/nxagent/NXevents.o
    hw/nxagent/NXproperty.o                  hw/nxagent/NXdixfonts.o
        hw/nxagent/NXglyphcurs.o                 hw/nxagent/NXdispatch.o
            hw/nxagent/NXrender.o                    hw/nxagent/NXglyph.o
                hw/nxagent/NXpicture.o
hw/nxagent/NXextension.o                 hw/nxagent/NXglxext.o
    hw/nxagent/NXxvdisp.o                    hw/nxagent/NXmiglyph.o
        hw/nxagent/NXmiexpose.o                  hw/nxagent/NXresource.o
            hw/nxagent/NXmiwindow.o                  hw/nxagent/NXdamage.o
       dix/libdix.a os/libos.a   hw/nxagent/libnxagent.a fb/libfb.a
composite/libcomposite.a damageext/libdamage.a miext/damage/libdamage.a
xfixes/libxfixes.a miext/cw/libcw.a                Xext/libext.a xkb/libxkb.a
os/libos.a  Xi/libxinput.a                    dbe/libdbe.a record/librecord.a
 XTrap/libxtrap.a GL/glx/libglx.a                GL/mesa/GLcore/libGLcore.a
              randr/librandr.a render/librender.a  mi/libmi.a
composite/libcomposite.a damageext/libdamage.a miext/damage/libdamage.a
xfixes/libxfixes.a miext/cw/libcw.a                Xext/libext.a xkb/libxkb.a
os/libos.a  Xi/libxinput.a                    dbe/libdbe.a record/librecord.a
 XTrap/libxtrap.a GL/glx/libglx.a                GL/mesa/GLcore/libGLcore.a
              randr/librandr.a render/librender.a hw/nxagent/libnxagent.a
mi/libmi.a      -L../../exports/lib   -lNX_Xext -lNX_X11  -lm
    -lXpm -L ../../../nxcomp -L ../../../nxcompext -L ../../../nxcompshad
            -lXcomp -lXcompext -lXcompshad -lNX_Xrender -lNX_X11 -lNX_Xext
-lNX_Xfixes -lXfont                 -L../../../nx-X11/exports/lib -lNX_Xtst
-lNX_Xdamage -lNX_Xrandr -lNX_Xcomposite -lNX_Xinerama -lXdmcp `pkg-config
--libs libxml-2.0` -Wl,-rpath-link,../../exports/lib
/bin/ld: ../../exports/lib/libNX_X11.so: undefined reference to symbol 'deflate'
/lib64/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:1064: recipe for target 'nxagent' failed
make[6]: *** [nxagent] Error 1


looks like you need to add -lz when linking libNX_X11.so.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com


More information about the x2go-dev mailing list