fail compile doomsday

edited 2012 Jan 17 in Technical Support
hello have this fail when compilling doomsday acording with this:

http://dengine.net/dew/index.php?title= ... with_qmake
g++ -m64 -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -rdynamic -Wl,-O1 -o doomsday lzss.o abstractfile.o animator.o bitmapfont.o blockset.o b_command.o b_context.o b_device.o b_main.o b_util.o bsp_edge.o bsp_intersection.o bsp_main.o bsp_map.o bsp_node.o bsp_superblock.o cbuffer.o cl_frame.o cl_infine.o cl_main.o cl_mobj.o cl_player.o cl_sound.o cl_world.o colorpalette.o con_bar.o con_busy.o con_config.o con_data.o con_main.o dam_file.o dam_main.o dd_help.o dd_input.o dd_loop.o dd_main.o dd_pinit.o dd_plugin.o dd_wad.o dd_zone.o def_data.o def_main.o def_read.o dfile.o dgl_common.o dgl_draw.o edit_bias.o edit_map.o filedirectory.o filelist.o finaleinterpreter.o fi_main.o fonts.o fs_main.o fs_util.o game.o gl_defer.o gl_draw.o gl_drawvectorgraphic.o gl_hq2x.o gl_main.o gl_pcx.o gl_png.o gl_tex.o gl_texmanager.o gl_tga.o image.o library.o lumpdirectory.o lumpfile.o material.o materialarchive.o materials.o materialvariant.o m_args.o m_bams.o m_binarytree.o m_decomp64.o m_gridmap.o m_huffman.o m_linkedlist.o m_md5.o m_misc.o m_mus2midi.o m_nodepile.o m_stack.o m_string.o m_vector.o net_buf.o net_demo.o net_event.o net_main.o net_msg.o net_ping.o pathdirectory.o pathmap.o p_bmap.o p_cmd.o p_control.o p_data.o p_dmu.o p_intercept.o p_linedef.o p_maputil.o p_mobj.o p_objlink.o p_particle.o p_plane.o p_players.o p_polyob.o p_sector.o p_seg.o p_sidedef.o p_sight.o p_subsector.o p_surface.o p_think.o p_ticker.o p_vertex.o point.o r_data.o r_draw.o r_fakeradio.o r_lgrid.o r_lumobjs.o r_main.o r_model.o r_shadow.o r_sky.o r_things.o r_util.o r_world.o reader.o rect.o rend_bias.o rend_clip.o rend_console.o rend_decor.o rend_dynlight.o rend_fakeradio.o rend_font.o rend_halo.o rend_list.o rend_main.o rend_model.o rend_particle.o rend_shadow.o rend_sky.o rend_sprite.o resourcenamespace.o abstractresource.o smoother.o stringpool.o s_cache.o s_environ.o s_logic.o s_main.o s_mus.o s_sfx.o s_wav.o size.o sv_frame.o sv_infine.o sv_main.o sv_missile.o sv_pool.o sv_sound.o svg.o sys_audiod_dummy.o sys_direc.o sys_master.o sys_network.o sys_opengl.o sys_reslocator.o sys_sock.o sys_system.o sys_timer.o tab_tables.o texture.o textures.o texturevariant.o ui_main.o ui2_main.o ui_mpi.o ui_panel.o uri.o wadfile.o writer.o zipfile.o sys_sdl_window.o dd_uinit.o sys_audiod_loader.o sys_console.o sys_findfile.o sys_input.o sys_path.o sys_audiod_sdlmixer.o m_fixed.o    -L/usr/lib -lm -lSDL -lSDL_net -lSDL_mixer -lGL -lGLU -lpng14 -lncurses -lcurl -lpthread 
/usr/bin/ld: library.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line
/lib/libdl.so.2: could not read symbols: Invalid operation
collect2: ld devolvió el estado de salida 1
make[1]: *** [doomsday] Error 1

qmake PREFIX="${pkgdir}" CONFIG+="deng_packres deng_snowberry"

(note: "pkgdir" is a internal arch pkgbuild system variable)

my system is Archlinux 64 bits with glibc 2.15-3 and gcc 4.6.2-5.1

greetings

Comments

  • same problem here, arch linux 64 too.

    with adding LIBS="-ldl" i get over that message but lots
    of linker error messages after that:

    rend_list.o: In function `rlBind':
    rend_list.c:(.text+0x324): undefined reference to `glBindTexture'
    rend_list.c:(.text+0x339): undefined reference to `glTexParameteri'
    rend_list.o: In function `rlBindTo':
    rend_list.c:(.text+0x3eb): undefined reference to `glActiveTexture'
    rend_list.o: In function `renderLists':
    rend_list.c:(.text+0x49f): undefined reference to `glVertex3fv'
    rend_list.c:(.text+0x4c0): undefined reference to `glEnd'
    rend_list.c:(.text+0x57d): undefined reference to `glDisable'
    rend_list.c:(.text+0x5eb): undefined reference to `glTexEnvfv'

    and so on and on.
  • Those are OpenGL functions, have you installed the necessary libraries and headers? (I couldn't tell you which you need, I'm a Windows dev)
  • edited 2012 Jan 16
    acording for this: http://dengine.net/dew/index.php?title= ... s_for_Unix

    yes. all dependencies installed
  • everything necessary installed.

    it should already fail during make if i would miss something.
    Our problem is ld...a problem with our glibc probably?
  • Try adding LIBS+="-lGL -lGLU"

    If that fixes it, it indicates a problem in our qmake script for Unix based platforms.
  • grete wrote:
    same problem here, arch linux 64 too.

    with adding LIBS="-ldl" i get over that message but lots
    of linker error messages after that:

    rend_list.o: In function `rlBind':
    rend_list.c:(.text+0x324): undefined reference to `glBindTexture'
    rend_list.c:(.text+0x339): undefined reference to `glTexParameteri'
    rend_list.o: In function `rlBindTo':
    rend_list.c:(.text+0x3eb): undefined reference to `glActiveTexture'
    rend_list.o: In function `renderLists':
    rend_list.c:(.text+0x49f): undefined reference to `glVertex3fv'
    rend_list.c:(.text+0x4c0): undefined reference to `glEnd'
    rend_list.c:(.text+0x57d): undefined reference to `glDisable'
    rend_list.c:(.text+0x5eb): undefined reference to `glTexEnvfv'

    and so on and on.

    now. for me, , whit LIBS="-ldl -lz", compilling all without errors
  • Without errors, so you have a deng package now? Lucky bastard ;)
    I still get the same error.
    Would be very friendly if you could pass me your
    PKGBUILD
    and installed packages "pacman -Q > packages.txt" or something.

    thanks in advance.
  • http://aur.archlinux.org/packages.php?ID=48828 ;)

    only found one "error" compile:

    portable/src/dd_main.c: En la función ‘DD_LoadGameStartupResourcesWorker’:
    portable/src/dd_main.c:850:9: nota: #pragma message: !!!WARNING: Phase 1 of game resource loading does not presently prioritize ZIP!!!


    only have one question. snowberry only need python2? no need another dependencies?
  • wow, builds and runs :) thanks a lot.
    I have to examine the old pkgbuild what was wrong in there.
    Just one problem when adding wad's in the launcher setup-wizard:
    Command: run-setup-wizard
    Traceback (most recent call last):
      File "/usr/share/doomsday/snowberry/sb/widget/button.py", line 104, in onToggle
        self.react()
      File "/usr/share/doomsday/snowberry/sb/widget/base.py", line 274, in react
        func()
      File "/usr/share/doomsday/snowberry/sb/widget/area.py", line 652, in browseAction
        setting.getAllowedTypes())
      File "/usr/share/doomsday/snowberry/sb/util/dialog.py", line 73, in chooseFile
        flags)
      File "/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_misc.py", line 434, in FileSelector
        return _misc_.FileSelector(*args, **kwargs)
      File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
        return codecs.utf_8_decode(input, errors, True)
    UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 1: invalid continuation byte
    
    
  • Python 2.5 must be used when building Snowberry, it has not been updated for more recent versions.
    sl1pkn07 wrote:
    !!!WARNING: Phase 1 of game resource loading does not presently prioritize ZIP!!
    You can safely ignore that.
  • well, not really running.
    <snip>
        GL_OES_vertex_half_float       GL_SGIS_generate_mipmap       
        GL_SGIS_texture_lod            GL_SGIX_depth_texture         
        GL_SGIX_shadow                 GL_SUN_slice_accum            
    createContext: OpenGL.
    createContext: OpenGL.
    Initializing Render subsystem...
    Setting up platform state...
    I_InitJoystick: No joysticks found
    Library_New: Error opening "/usr/lib/libdsfmod.so" (/usr/lib/libdsfmod.so: cannot open shared object file: No such file or directory).
    Warning: Sys_LoadAudioDriver: Loading of "libdsfmod.so" failed.
    Warning: Failed initializing audio driver "FMOD Ex"
    S_Init: OK.
    Initializing Resource subsystem...
    Dir::ChangeWorkDir: Succeeded: /home/ht/.deng/
    Segmentation fault
    

    I tried to set another audio driver in the launcher but it's not saved. don't know.
    Anyway that segfault is not a probem of that missing fsmod, i guess.
    edit: i was able to change sound system entry to dummy, same result.
  • maybe a backtrace would help "gbd --args path/to/deng/binary -deng options"
  • with the latest commit
    portable/src/strarray.cpp:62:17: warning: unused parameter 'i' [-Wunused-parameter]
    portable/src/strarray.cpp: In function 'int StrArray_IndexOf(StrArray*, const char*)':
    portable/src/strarray.cpp:162:48: error: 'strcmp' was not declared in this scope
    make[1]: *** [strarray.o] Error 1
    
  • It seems on Unix the linker options were indeed missing -lz and -ldl. I added those, can you try if it now works without any extra options?
    only have one question. snowberry only need python2? no need another dependencies?
    It needs Python and wxPython.
  • sl1pkn07 wrote:
    with the latest commit
    portable/src/strarray.cpp:62:17: warning: unused parameter 'i' [-Wunused-parameter]
    portable/src/strarray.cpp: In function 'int StrArray_IndexOf(StrArray*, const char*)':
    portable/src/strarray.cpp:162:48: error: 'strcmp' was not declared in this scope
    make[1]: *** [strarray.o] Error 1
    
    Already fixed. :)
  • thanks for all! :3

    yes, working witout LIBS

    qmake CONFIG+="deng_fmod release" DENG_BUILD=`python2 ../distrib/build_number.py --print`

    greetings
  • do you get a segfault too or is it running?

    my "progress" so far is:

    starting with launcher: segfault
    starting from commandline -game jdoom -file doom.wad: segfault
    starting doomsday without argument: gets me into doomsday console with "0 of 15 games playable"

    i was not able to backtrace it, "cannot access memory" which points to some process lost in space.
  • You need to specify the identity key of the game you want to play with the -game argument, not the name of the plugin which implements it. For example, to play doom2 you would use "-game doom2".

    Also, you must use the -iwad argument when specifying paths to iwads instead of -file from the command line.

    So try the following:
    -game doom1-ultimate -iwad doom.wad
    
  • "doomsday -game jheretic -file...." i got that from my old scripts which apparently works for
    the old stable version...

    its running now, thanks :D:D:D

    could you please point me to some kind of command line options documention, or tell me
    how to get the addons running from the command line, since i'm
    still getting segfaults when i start doomday from the launcher.
  • Command line options reference at our wiki. Note that it is somewhat outdated. Some of the arguments either no longer exist or have changed usage. We are currently in the process of updating the docs for the 1.9.7 release.
Sign In or Register to comment.