Comments (3)
Please share a little more output of the compiler. When I compile I get:
ps2client$ make clean all
rm -f obj/*.o bin/*client*
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include -c src/network.c -o obj/network.o
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include -c src/ps2link.c -o obj/ps2link.o
src/ps2link.c: In function ‘ps2link_connect’:
src/ps2link.c:50:44: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
50 | if (console_socket > 0) { pthread_create(&console_thread_id, NULL, ps2link_thread_console, (void *)&console_thread_id); }
| ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ps2link.c:56:44: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
56 | if (request_socket > 0) { pthread_create(&request_thread_id, NULL, ps2link_thread_request, (void *)&request_thread_id); }
| ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include -c src/ps2netfs.c -o obj/ps2netfs.o
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include -c src/utility.c -o obj/utility.o
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include obj/network.o obj/ps2link.o obj/ps2netfs.o obj/utility.o src/fsclient.c -o bin/fsclient -lpthread
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include obj/network.o obj/ps2link.o obj/ps2netfs.o obj/utility.o src/ps2client.c -o bin/ps2client -lpthread
My compiler is:
ps2client$ cc --version
cc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The issue does seem valid, becouse ps2link_response_getstat is defined after it's used. But I don't get why my newer compiler would have no problem with it.
from ps2client.
Here's the full output
/ps2dev/build/ps2client$ make clean all
rm -f obj/*.o bin/*client*
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include -c src/network.c -o obj/network.o
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include -c src/ps2link.c -o obj/ps2link.o
src/ps2link.c: In function 'ps2link_connect':
src/ps2link.c:50:44: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
if (console_socket > 0) { pthread_create(&console_thread_id, NULL, ps2link_thread_console, (void *)&console_thread_id); }
^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ps2link.c:56:44: warning: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Wrestrict]
if (request_socket > 0) { pthread_create(&request_thread_id, NULL, ps2link_thread_request, (void *)&request_thread_id); }
^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ps2link.c: In function 'ps2link_request_getstat':
src/ps2link.c:632:12: warning: implicit declaration of function 'ps2link_response_getstat'; did you mean 'ps2link_request_getstat'? [-Wimplicit-function-declaration]
return ps2link_response_getstat(ret, mode, 0, stats.st_size, ctime, atime, mtime, 0);
^~~~~~~~~~~~~~~~~~~~~~~~
ps2link_request_getstat
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include -c src/ps2netfs.c -o obj/ps2netfs.o
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include -c src/utility.c -o obj/utility.o
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include obj/network.o obj/ps2link.o obj/ps2netfs.o obj/utility.o src/fsclient.c -o bin/fsclient -lpthread
cc -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include obj/network.o obj/ps2link.o obj/ps2netfs.o obj/utility.o src/ps2client.c -o bin/ps2client -lpthread
from ps2client.
It obviously generated the ps2client
, it is just some warnings in the process.
Search the binary, most probably is in the bin
folder inside of ps2client
.
if you execute make install
it will install it to the proper ps2dev/bin
folder.
Closing issue.
from ps2client.
Related Issues (9)
- Incorrect documentation on make install destination directory HOT 1
- 404 error trying to download latest release v1.2.0 HOT 5
- ps2link and ps2netfs port numbers and type (UDP/TCP) HOT 7
- Do not try to connect tcp or command port if not needed HOT 1
- ps2client doesn't seem to write anything on command console HOT 4
- Crashes with segfault if hostname is invalid
- Pass arguments to the commands not working HOT 7
- Compilation failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ps2client.