Subj : Soupgare and Spoon on Github
To   : Vincent Coen
From : Sean Rima
Date : Wed Jul 01 2020 11:32 pm

  Hello Vincent!

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

VC> Hello Sean!

VC> 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.


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

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

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

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

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

VC>     ^

VC> ----   lots cut but then ----

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

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

VC> ----

VC> program was generated and I can run it with -h

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

VC> 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)