GithubHelp home page GithubHelp logo

Comments (3)

rickgaiser avatar rickgaiser commented on June 20, 2024

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.

7dog123 avatar 7dog123 commented on June 20, 2024

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.

fjtrujy avatar fjtrujy commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.