Giter Club home page Giter Club logo

Comments (10)

rrezel avatar rrezel commented on August 20, 2024

Are you trying to build this on OSX?

from longs.

Ivshti avatar Ivshti commented on August 20, 2024

yes, is this relevant? sqlite3 is certainly OK on OSX, not sure about wafer

from longs.

Ivshti avatar Ivshti commented on August 20, 2024

do you know where BUFFLEN comes from?

from longs.

rrezel avatar rrezel commented on August 20, 2024

yes, is this relevant?
Yes:
#ifndef __linux__

That part of the code never got tested. It's a bug. We're sorry. We'll fix it.

from longs.

rrezel avatar rrezel commented on August 20, 2024

This should be fixed now. Can you please verify?

from longs.

Ivshti avatar Ivshti commented on August 20, 2024

hm..seems to be the same after I pulled

7 warnings generated.
cc -W -Wall -O2 -Wno-unused-parameter -g      -pthread -c -o waferapi.o waferapi.c
waferapi.c:268:14: error: use of undeclared identifier 'BUFFLEN'
    char buf[BUFFLEN];
             ^
waferapi.c:270:45: error: use of undeclared identifier 'BUFFLEN'
    ssize_t bytes_read = read(read_fd, buf, BUFFLEN);
                                            ^
waferapi.c:271:45: error: use of undeclared identifier 'cbuf'; did you mean 'buf'?
    ssize_t bytes_written = write(write_fd, cbuf, bytes_read);
                                            ^~~~
                                            buf
waferapi.c:268:10: note: 'buf' declared here
    char buf[BUFFLEN];
         ^

I also tried deleting all .o files and build artifacts

from longs.

rrezel avatar rrezel commented on August 20, 2024

I think I didn't push the changes. BUFFLEN shouldn't be there at all. Would you mind trying again? I'm really sorry about this.

from longs.

Ivshti avatar Ivshti commented on August 20, 2024

Thanks a lot of the help

Now it's that:

waferapi.c:271:45: error: use of undeclared identifier 'cbuf'; did you mean 'buf'?
    ssize_t bytes_written = write(write_fd, cbuf, bytes_read);
                                            ^~~~
                                            buf
waferapi.c:268:10: note: 'buf' declared here
    char buf[MAX_BUFFER_SIZE];
         ^

Should I replace buf with cbuf? Doesn't look that way

from longs.

Ivshti avatar Ivshti commented on August 20, 2024

Replaced cbuf with buf. Works now

from longs.

rrezel avatar rrezel commented on August 20, 2024

Thanks for the PR.

from longs.

Related Issues (7)

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.