• Can not build syncdraw

    From Ragnarok@1:103/705 to DOVE-Net.Synchronet_Programming_C+ on Mon Mar 30 13:02:17 2020
    I known that the code is not updated. but maybe if are little update,
    can work again

    ragnarok@ragnarok:~/mnt/remote/src/syncdraw$ make clean
    Deleting gcc.linux.x64.obj.debug/
    Deleting gcc.linux.x64.obj.debug-mt/
    Deleting gcc.linux.x64.lib.debug/
    Deleting gcc.linux.x64.exe.debug/
    ragnarok@ragnarok:~/mnt/remote/src/syncdraw$ make
    make -C ../xpdev mtlib
    make[1]: se entra en el directorio '/home/ragnarok/mnt/remote/src/xpdev' make[1]: No se hace nada para 'mtlib'.
    make[1]: se sale del directorio '/home/ragnarok/mnt/remote/src/xpdev'
    make -C ../xpdev lib
    make[1]: se entra en el directorio '/home/ragnarok/mnt/remote/src/xpdev' make[1]: No se hace nada para 'lib'.
    make[1]: se sale del directorio '/home/ragnarok/mnt/remote/src/xpdev'
    make -C ../conio mtlib
    make[1]: se entra en el directorio '/home/ragnarok/mnt/remote/src/conio' make[1]: No se hace nada para 'mtlib'.
    make[1]: se sale del directorio '/home/ragnarok/mnt/remote/src/conio'
    Compiling homedir.c
    Compiling block.c
    Compiling effekt.c
    Compiling load.c
    load.c: In function ΓÇÿLoadFileΓÇÖ:
    load.c:608:53: warning: operation on ΓÇÿchΓÇÖ may be undefined [-Wsequence-point]
    if ((toupper(Name[ch++]) == 'B') & (toupper(Name[ch++]) == 'I') & (toupper(Name[ch]) == 'N')) {
    ~~^~
    load.c:608:53: warning: operation on ΓÇÿchΓÇÖ may be undefined [-Wsequence-point]
    load.c:615:4: warning: this ΓÇÿelseΓÇÖ clause does not guard... [-Wmisleading-indentation]
    } else
    ^~~~
    load.c:618:3: note: ...this statement, but the latter is misleadingly
    indented as if it is guarded by the ΓÇÿelseΓÇÖ
    if(ext) {
    ^~
    Compiling options.c
    Compiling fonts.c
    Compiling syncdraw.c
    syncdraw.c: In function ΓÇÿSelectCharSetΓÇÖ:
    syncdraw.c:650:4: warning: this ΓÇÿifΓÇÖ clause does not guard... [-Wmisleading-indentation]
    if(me.endx>=36 && me.endx<=45
    ^~
    syncdraw.c:653:5: note: ...this statement, but the latter is
    misleadingly indented as if it is guarded by the ΓÇÿifΓÇÖ
    if(me.event==CIOLIB_BUTTON_1_CLICK)
    ^~
    Compiling sauce.c
    Compiling config.c
    Compiling menue.c
    menue.c: In function ΓÇÿmenueΓÇÖ:
    menue.c:138:18: warning: unused variable ΓÇÿxΓÇÖ [-Wunused-variable]
    int x, a, b, i;
    ^
    Compiling save.c
    Compiling crt.c
    Compiling help.c
    Compiling miscfunctions.c
    Compiling tabulator.c
    Compiling draw.c
    Compiling key.c
    Linking gcc.linux.x64.exe.debug/syncdraw ../conio/gcc.linux.x64.lib.debug/libciolib_mt.a(sdlfuncs.o): En la
    funci├│n `init_sdl_video':
    /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:286: referencia a `sdl_video_initialized' sin definir ../conio/gcc.linux.x64.lib.debug/libciolib_mt.a(sdlfuncs.o): En la
    funci├│n `main':
    /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:397: referencia a `sdl_video_initialized' sin definir /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:406: referencia a `sdl_video_initialized' sin definir /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:410: referencia a `sdl_video_initialized' sin definir /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:420: referencia a `sdl_video_initialized' sin definir ../conio/gcc.linux.x64.lib.debug/libciolib_mt.a(sdlfuncs.o):/home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:424:
    más referencias a `sdl_video_initialized' sin definir a continuación collect2: error: ld returned 1 exit status
    GNUmakefile:8: fallo en las instrucciones para el objetivo 'gcc.linux.x64.exe.debug/syncdraw'
    make: *** [gcc.linux.x64.exe.debug/syncdraw] Error 1 ragnarok@ragnarok:~/mnt/remote/src/syncdraw$


    libsdl-image1.2:amd64 --- 1.2.12-5+deb9u2
    libsdl-mixer1.2:amd64 --- 1.2.12-11+b3
    libsdl-mixer1.2-dev:amd64 --- 1.2.12-11+b3
    libsdl-net1.2:amd64 --- 1.2.8-4
    libsdl-net1.2-dev:amd64 --- 1.2.8-4
    libsdl-pango1:amd64 --- 0.1.2-6
    libsdl-sound1.2:amd64 --- 1.0.3-7+b3
    libsdl-ttf2.0-0:amd64 --- 2.0.11-3+b1
    libsdl1.2-dev --- 1.2.15+dfsg1-4
    libsdl1.2debian:amd64 --- 1.2.15+dfsg1-4
    libsdl1.2debian:i386 --- 1.2.15+dfsg1-4
    libsdl2-2.0-0:amd64 --- 2.0.5+dfsg1-2
    libsdl2-dev --- 2.0.5+dfsg1-2
    libsdl2-image-2.0-0:amd64 --- 2.0.1+dfsg-2+deb9u2
    libsdl2-mixer-2.0-0:amd64 --- 2.0.1+dfsg1-1
    libsdl2-net-2.0-0:amd64 --- 2.0.1+dfsg1-2
    libsdl2-net-dev:amd64 --- 2.0.1+dfsg1-2
    libsdl2-ttf-2.0-0:amd64 --- 2.0.14+dfsg1-1

    ---
    ■ Synchronet ■ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Ragnarok on Mon Mar 30 12:10:22 2020
    Re: Can not build syncdraw
    By: Ragnarok to DOVE-Net.Synchronet_Programming_C+ on Mon Mar 30 2020 01:02 pm

    I known that the code is not updated. but maybe if are little update,
    can work again

    ragnarok@ragnarok:~/mnt/remote/src/syncdraw$ make clean

    You should also run src/cleanall.sh

    ragnarok@ragnarok:~/mnt/remote/src/syncdraw$ make

    ...

    función `init_sdl_video': /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:286: referencia a `sdl_video_initialized' sin definir ../conio/gcc.linux.x64.lib.debug/libciolib_mt.a(sdlfuncs.o): En la
    función `main':
    /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:397: referencia a `sdl_video_initialized' sin definir /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:406: referencia a `sdl_video_initialized' sin definir /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:410: referencia a `sdl_video_initialized' sin definir /home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:420: referencia a `sdl_video_initialized' sin definir ../conio/gcc.linux.x64.lib.debug/libciolib_ mt.a(sdlfuncs.o):/home/ragnarok/mnt/remote/src/conio/sdlfuncs.c:424:
    más referencias a `sdl_video_initialized' sin definir a continuación collect2: error: ld returned 1 exit status

    My guess is that you have other components (e.g. conio/ciolib) which was built WITHOUT_SDL and you're linking with an application that was built WITH_SDL. Likely a cleanall.sh and rebuild all (starting with src/sbbs3) will address the
    situation.

    digital man

    Synchronet "Real Fact" #11:
    DOVE-Net was originally an exclusive ("elite") WWIVnet network in O.C., Calif. Norco, CA WX: 64.0°F, 52.0% humidity, 6 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Ragnarok@1:103/705 to Digital Man on Mon Mar 30 20:55:31 2020
    El 30/3/20 a las 16:10, Digital Man escribi├│:
    Re: Can not build syncdraw
    By: Ragnarok to DOVE-Net.Synchronet_Programming_C+ on Mon Mar 30 2020 01:02
    pm

    I known that the code is not updated. but maybe if are little update,
    can work again

    ragnarok@ragnarok:~/mnt/remote/src/syncdraw$ make clean

    You should also run src/cleanall.sh

    ragnarok@ragnarok:~/mnt/remote/src/syncdraw$ make

    My guess is that you have other components (e.g. conio/ciolib) which was
    built WITHOUT_SDL and you're linking with an application that was built WITH_SDL. Likely a cleanall.sh and rebuild all (starting with src/sbbs3) will address the situation.

    digital man

    yes, cleanall and, i mistake (set USE_SDL instead of WITH_SDL), thanks!

    Then, i found some bugs:

    1) The cursor (caret) do not show, i can see the position under (x,y)
    data status. But is a little difficult to draw without the reference
    cursor pointer.

    2) When i try to save, the filename prompt shows a "face" character and
    do not echo the text input. (Finally, the file was saved)
    I take a screenshot (https://imagebin.ca/v/5HRyAPgSw39S)

    3) Alt+L to load file still segmentation fault:

    ragnarok@ragnarok:~/mnt/remote/src/syncdraw/gcc.linux.x64.exe.debug$ gdb syncdraw
    GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
    Copyright (C) 2016 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-linux-gnu".
    Type "show configuration" for configuration details.
    For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>.
    Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>.
    For help, type "help".
    Type "apropos word" to search for commands related to "word"...
    Reading symbols from syncdraw...done.
    (gdb) r
    Starting program: /home/ragnarok/mnt/remote/src/syncdraw/gcc.linux.x64.exe.debug/syncdraw
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
    [New Thread 0x7ffff0be5700 (LWP 19743)]
    [New Thread 0x7fffebfff700 (LWP 19744)]
    [New Thread 0x7fffeb703700 (LWP 19745)]
    [New Thread 0x7fffeaf02700 (LWP 19746)]

    Thread 2 "SDL Main" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7ffff0be5700 (LWP 19743)]
    strnlen () at ../sysdeps/x86_64/strlen.S:103
    103 ../sysdeps/x86_64/strlen.S: No existe el fichero o el directorio.
    (gdb) bt
    #0 strnlen () at ../sysdeps/x86_64/strlen.S:103
    #1 0x00007ffff6f0fdba in _IO_vfprintf_internal
    (s=s@entry=0x7ffff0bc2230, format=<optimized out>,
    format@entry=0x55555558fe7c "%-12.12s ", ap=ap@entry=0x7ffff0bc2378)
    at vfprintf.c:1637
    #2 0x00007ffff6f31afb in __IO_vsprintf (string=0x7fffec00b0c0 "\005", format=0x55555558fe7c "%-12.12s ", args=0x7ffff0bc2378) at iovsprintf.c:42
    #3 0x000055555556a6c1 in bufprintf (buf=0x7ffff0bc2480 "", attr=23, fmat=0x55555558fe7c "%-12.12s ") at miscfunctions.c:560
    #4 0x000055555555e2f2 in load () at load.c:796
    #5 0x000055555556385a in CIOLIB_main (argnum=1, args=0x7fffffffded8) at syncdraw.c:1173
    #6 0x000055555557c9c4 in sdl_run_main (data=0x7fffffffdd70) at
    sdlfuncs.c:317
    #7 0x00007ffff6c42f38 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL.so
    #8 0x00007ffff6c82dd9 in ?? () from /usr/lib/x86_64-linux-gnu/libSDL.so
    #9 0x00007ffff726e4a4 in start_thread (arg=0x7ffff0be5700) at pthread_create.c:456
    #10 0x00007ffff6fb0d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
    (gdb)

    Always, i very appreciated your time!
    Thanks!

    ---
    ■ Synchronet ■ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Ragnarok on Mon Mar 30 19:09:17 2020
    Re: Re: Can not build syncdraw
    By: Ragnarok to Digital Man on Mon Mar 30 2020 08:55 pm

    yes, cleanall and, i mistake (set USE_SDL instead of WITH_SDL), thanks!

    Then, i found some bugs:

    Those are best reported to deuce (he's in #synchronet at irc.synchro.net or email him no his BBS).

    digital man

    Synchronet/BBS Terminology Definition #34:
    GIF = Graphics Interchange Format (pronounced "JIFF")
    Norco, CA WX: 65.2°F, 59.0% humidity, 2 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)