ede2 compilation errors on minix 3.2.1

EDE
skyby
2013-02-04
2013-04-05
  • skyby

    skyby - 2013-02-04

    Hi.

    I've Minix "minix3_2_1_ide_20130118_4c6c911"

    Steps:

    fltk: ./configure -libdir=/usr/lib -enable-shared -enable-localjpeg -enable-localzlib -enable-localpng -with-x

    EDElib: ./configure -with-x -disable-dbus -with-fltk-path=/usr/local
    jam
    jam install

    EDE: ./configure -with-fltk-path=/usr/local -with-edelib-path=/usr/local -with-x
    jam

    I'm compiling ede2 but i get errors like '/usr/pkg/lib/libpng15.a'.

    The error:

    ===================
    /usr/pkg/lib/libpng15.a(libpng15_la-png.o): In function `png_reset_crc':
    png.c:(.text+0x180): undefined reference to `crc32'
    /usr/pkg/lib/libpng15.a(libpng15_la-png.o): In function `png_calculate_crc':
    png.c:(.text+0x221): undefined reference to `crc32'
    /usr/pkg/lib/libpng15.a(libpng15_la-png.o): In function `png_reset_zstream':
    png.c:(.text+0x10b3): undefined reference to `inflateReset'
    /usr/pkg/lib/libpng15.a(libpng15_la-png.o): In function `png_ascii_from_fp':
    png.c:(.text+0x1ee4): undefined reference to `frexp'


    "gcc  -o pekwm/pekwm  pekwm/ActionHandler.o pekwm/ActionMenu.o pekwm/Atoms.o pekwm/AutoProperties.o pekwm/CfgParser.o pekwm/CfgParserKey.o pekwm/CfgParserSource.o pekwm/Client.o pekwm/CmdDialog.o pekwm/ColorHandler.o pekwm/Compat.o pekwm/Completer.o pekwm/Config.o pekwm/DecorMenu.o pekwm/DockApp.o pekwm/FontHandler.o pekwm/Frame.o pekwm/FrameListMenu.o pekwm/Harbour.o pekwm/HarbourMenu.o pekwm/ImageHandler.o pekwm/InputDialog.o pekwm/KeyGrabber.o pekwm/main.o pekwm/ManagerWindows.o pekwm/MenuHandler.o pekwm/Observable.o pekwm/PDecor.o pekwm/PFont.o pekwm/PImage.o pekwm/PImageIcon.o pekwm/PImageLoaderJpeg.o pekwm/PImageLoaderPng.o pekwm/PImageLoaderXpm.o pekwm/PixmapHandler.o pekwm/PMenu.o pekwm/PScreen.o pekwm/PTexturePlain.o pekwm/PWinObj.o pekwm/PWinObjReference.o pekwm/RegexString.o pekwm/ScreenResources.o pekwm/SearchDialog.o pekwm/StatusWindow.o pekwm/TextureHandler.o pekwm/Theme.o pekwm/Util.o pekwm/WindowManager.o pekwm/WORefMenu.o pekwm/WorkspaceIndicator.o pekwm/Workspaces.o    -lX11 -lXext  -L/usr/pkg/X11R6/lib -R/usr/pkg/X11R6/lib  -L/usr/pkg/lib -lpng15 -lstdc++

    …failed Link pekwm/pekwm … "

    I've fixed the error by adding '-lz -lm' to ./ede2/Jamconfig file.

    Error: PEKWM_LIBS            ?= "  -lX11 -lXext  -L/usr/pkg/X11R6/lib -R/usr/pkg/X11R6/lib  -L/usr/pkg/lib -lpng15" ;
    Fix: PEKWM_LIBS            ?= "  -lX11 -lXext  -L/usr/pkg/X11R6/lib -R/usr/pkg/X11R6/lib  -L/usr/pkg/lib -lpng15 -lz -lm" ;

    Once solved, ede not start. I tried booting step by step:

    '/usr/local/bin/startede &' is OK

    ===========================
    '/usr/local/bin/ede-panel &' Error:
    #  src/Window.cpp:57: loading 'edeneu' theme
    ede-panel/AppletManager.cpp:123: Loading class StartMenu
    ede-panel/AppletManager.cpp:123: Loading class QuickLaunch
    ede-panel/AppletManager.cpp:123: Loading class Pager
    ede-panel/AppletManager.cpp:123: Loading class Clock
    ede-panel/AppletManager.cpp:123: Loading class Taskbar
    ede-panel/AppletManager.cpp:123: Loading class KeyLayout
    ede-panel/AppletManager.cpp:123: Loading class CPUMonitor
    ede-panel/AppletManager.cpp:123: Loading class Tray
    ede-panel/applets/start-menu/XdgMenuReader.cpp:1048: Condition 'sz > 0' failed
    src/Netwm.cpp:384: Condition 'names' failed
    ede-panel/applets/system-tray/Tray.cpp:103: Notification area service is already provided by different program

    =======================
    /usr/local/bin/ede-desktop &
    #  src/Window.cpp:57: loading 'edeneu' theme
    src/IconTheme.cpp:307: Condition 'priv->dirlist.size() > 0' failed
    src/IconTheme.cpp:307: Condition 'priv->dirlist.size() > 0' failed
    ede-desktop/ede-desktop.cpp:328: Can't load ede-desktop, using default values

    Could you please?

     
  • Sanel Zukan

    Sanel Zukan - 2013-02-06

    Hi,

    Did you installed zlib (or libz) library? It is required by libpng and these functions, linker is reporting, looks they belongs to zlib library.

    Regards,
    Sanel

     
  • skyby

    skyby - 2013-02-10

    HI,

    Yes, I have libz. In fact, if I add -lz and-lm to Jamconfig no problem and compiles fine.

    Regards

     
  • Sanel Zukan

    Sanel Zukan - 2013-02-12

    Glad you figure it out :)

    Did you have any more issues with running it?

    Regards,
    Sanel

     

Log in to post a comment.