• Soupgare and Spoon on Github

    From Vincent Coen@2:250/1 to Sean Rima on Wed Jul 1 15:18:28 2020
    Hello Sean!

    Tuesday June 30 2020 18:22, you wrote to All:


    Hello everybody!

    I uploaded both sources, including a change I made in spoon to github

    https://github.com/thecivvie/soupgate
    https://github.com/thecivvie/spoon

    I will add all the docs and stuff later on.


    I now get both to compile but get a lot of warning mesasges such as for soup :

    soupgate.c:121:7: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    FILE *logf = NULL;
    ^~~~
    In file included from config.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from lists.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from pkt.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from import.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from export.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~


    For spoon I get a lot more but here is a wee example:

    poon.cpp:60:7: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    FILE *logf = NULL;
    ^~~~
    spoon.cpp: In function ‘void checkdir(char*)’:
    spoon.cpp:143:69: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    logprintf("FATAL ERROR: subdirectory %s does not exist\n", dir);
    ^
    In file included from config.cpp:38:
    spoon.h:188:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from keyboard.cpp:38:
    spoon.h:188:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from nntp.cpp:38:
    spoon.h:188:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    nntp.cpp: In function ‘int getnntpanswer(Socket&, int)’:
    nntp.cpp:63:55: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    logprintf("Timeout - NNTP host did not answer\n");
    ^
    nntp.cpp:71:84: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
    logprintf("NNTPUSER not specified - NNTP host returned: %s", sock.szOutBuf);

    ^

    ---- lots cut but then ----

    Lots more with undefined references but the bottom of the err file has :

    /usr/bin/ld: socket.cpp:(.text+0x20af): undefined reference to `operator new[](unsigned long)'
    /usr/bin/ld: /home/vince/tmp/ccTJym8m.o: in function `Socket::Close()': socket.cpp:(.text+0x21b4): undefined reference to `operator delete[](void*)' /usr/bin/ld: socket.cpp:(.text+0x21de): undefined reference to `operator delete[](void*)'
    /usr/bin/ld: /home/vince/tmp/ccTJym8m.o: in function `__static_initialization_and_destruction_0(int, int)': socket.cpp:(.text+0x2266): undefined reference to `std::ios_base::Init::Init()'
    /usr/bin/ld: socket.cpp:(.text+0x2275): undefined reference to `std::ios_base::Init::~Init()'
    /usr/bin/ld: /home/vince/tmp/ccTJym8m.o:(.eh_frame+0x8b): undefined reference to `__gxx_personality_v0'
    collect2: error: ld returned 1 exit status

    ----

    program was generated and I can run it with -h

    Gcc is v8.4 on Mageia v7.1 X64 distro if it helps :).

    Both was built using the makesp / makesg scripts as a normal user.


    Vincent

    --- Mageia Linux v7.1 X64/Mbse v1.0.7.13/GoldED+/LNX 1.1.5-b20180707
    * Origin: Air Applewood, The Linux Gateway to the UK & Eire (2:250/1)
  • From Sean Rima@2:263/1.1 to Vincent Coen on Wed Jul 1 23:32:34 2020

    Hello Vincent!

    01 Jul 20 15:18, you wrote to me:

    Hello Sean!

    Tuesday June 30 2020 18:22, you wrote to All:


    Hello everybody!

    I uploaded both sources, including a change I made in spoon to
    github

    https://github.com/thecivvie/soupgate
    https://github.com/thecivvie/spoon

    I will add all the docs and stuff later on.


    I now get both to compile but get a lot of warning mesasges such as
    for soup :

    soupgate.c:121:7: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    FILE *logf = NULL;
    ^~~~
    In file included from config.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from lists.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from pkt.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from import.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~
    In file included from export.c:38:
    soupgate.h:393:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch]
    extern FILE *logf;
    ^~~~

    I think it needs time to go through and sort these out

    For spoon I get a lot more but here is a wee example:

    poon.cpp:60:7: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch] FILE *logf = NULL;
    ^~~~
    spoon.cpp: In function ‘void checkdir(char*)’:
    spoon.cpp:143:69: warning: ISO C++ forbids converting a string
    constant to ‘char*’ [-Wwrite-strings]
    logprintf("FATAL ERROR: subdirectory %s does not exist\n",
    dir);
    ^
    In file included from config.cpp:38:
    spoon.h:188:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch] extern FILE *logf;
    ^~~~
    In file included from keyboard.cpp:38:
    spoon.h:188:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch] extern FILE *logf;
    ^~~~
    In file included from nntp.cpp:38:
    spoon.h:188:14: warning: built-in function ‘logf’ declared as non-function [-Wbuiltin-declaration-mismatch] extern FILE *logf;
    ^~~~
    nntp.cpp: In function ‘int getnntpanswer(Socket&, int)’: nntp.cpp:63:55: warning: ISO C++ forbids converting a string constant
    to ‘char*’ [-Wwrite-strings]
    logprintf("Timeout - NNTP host did not answer\n");
    ^
    nntp.cpp:71:84: warning: ISO C++ forbids converting a string constant
    to ‘char*’ [-Wwrite-strings]
    logprintf("NNTPUSER not specified - NNTP host returned: %s", sock.szOutBuf);

    ^

    ---- lots cut but then ----

    Lots more with undefined references but the bottom of the err file has
    :

    /usr/bin/ld: socket.cpp:(.text+0x20af): undefined reference to
    `operator new[](unsigned long)' /usr/bin/ld:
    /home/vince/tmp/ccTJym8m.o: in function
    `Socket::Close()': socket.cpp:(.text+0x21b4): undefined reference to `operator delete[](void*)' /usr/bin/ld: socket.cpp:(.text+0x21de): undefined reference to `operator delete[](void*)' /usr/bin/ld: /home/vince/tmp/ccTJym8m.o: in
    function `__static_initialization_and_destruction_0(int,
    int)': socket.cpp:(.text+0x2266): undefined reference to
    `std::ios_base::Init::Init()' /usr/bin/ld: socket.cpp:(.text+0x2275): undefined reference to `std::ios_base::Init::~Init()' /usr/bin/ld: /home/vince/tmp/ccTJym8m.o:(.eh_frame+0x8b): undefined reference to `__gxx_personality_v0'
    collect2: error: ld returned 1 exit status

    ----

    program was generated and I can run it with -h

    Gcc is v8.4 on Mageia v7.1 X64 distro if it helps :).

    Both was built using the makesp / makesg scripts as a normal user.


    Havw to check that out. Can you get the packets to import into MBSE. Husjy doesnt like the packets

    Sean


    --- GoldED+/OSX 1.1.5-b20180707
    * Origin: A Pointless Point in Connemara (2:263/1.1)