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