Skip to content

I can't compile node.native #36

Open

Description

@danigart1401

Hello everyone!!

I was trying to compile the project but it shows an error that i don't know how to solve. This is the error:

dani@dani-portatil:~/Documentos/node.native$ make
g++ -std=gnu++0x -g -O0 -Ilibuv/include -Ihttp-parser -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o webclient webclient.cpp libuv/libuv.a http-parser/http_parser.o -lrt -lm -lpthread
/tmp/ccouJW7h.o: In function native::base::handle::close(std::function<void ()>)::{lambda(uv_handle_s*)#1}::operator void (*)(uv_handle_s*)() const': /home/dani/Documentos/node.native/./native/handle.h:57: undefined reference tonative::base::handle::close(std::function<void ()>)::{lambda(uv_handle_s_)#1}::FUN(uv_handle_s)'
/tmp/ccouJW7h.o: In function native::base::stream::write(std::string const&, std::function<void (native::error)>)::{lambda(uv_write_s*, int)#1}::operator void (*)(uv_write_s*, int)() const': /home/dani/Documentos/node.native/./native/stream.h:89: undefined reference tonative::base::stream::write(std::string const&, std::function<void (native::error)>)::{lambda(uv_write_s_, int)#1}::FUN(uv_write_s, int)'
/tmp/ccouJW7h.o: In function native::net::tcp::connect(std::string const&, int, std::function<void (native::error)>)::{lambda(uv_connect_s*, int)#1}::operator void (*)(uv_connect_s*, int)() const': /home/dani/Documentos/node.native/./native/tcp.h:58: undefined reference tonative::net::tcp::connect(std::string const&, int, std::function<void (native::error)>)::{lambda(uv_connect_s_, int)#1}::FUN(uv_connect_s, int)'
collect2: error: ld returned 1 exit status
make: *** [webclient] Error 1

what is happening?

Thanks in advance.
Daniel.

Activity

  1. sebjameswml commented on Feb 7, 2014

    @sebjameswml
    Contributor

    Hi there, did you compile libuv first? You can do that with:
    git submodule update --init

  2. danigart1401 commented on Feb 7, 2014

    @danigart1401
    Author

    Hello! Yep! I did it!! I am in a debian stable.

    dani@dani-portatil:~/Documentos/node.native$ make
    make -C libuv
    make[1]: se ingresa al directorio /home/dani/Documentos/node.native/libuv' cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/async.c -o out/src/unix/async.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/core.c -o out/src/unix/core.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/dl.c -o out/src/unix/dl.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/error.c -o out/src/unix/error.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/fs.c -o out/src/unix/fs.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/getaddrinfo.c -o out/src/unix/getaddrinfo.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/loop.c -o out/src/unix/loop.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/loop-watcher.c -o out/src/unix/loop-watcher.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/pipe.c -o out/src/unix/pipe.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/poll.c -o out/src/unix/poll.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/process.c -o out/src/unix/process.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/signal.c -o out/src/unix/signal.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/stream.c -o out/src/unix/stream.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/tcp.c -o out/src/unix/tcp.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/thread.c -o out/src/unix/thread.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/threadpool.c -o out/src/unix/threadpool.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/timer.c -o out/src/unix/timer.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/tty.c -o out/src/unix/tty.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/udp.c -o out/src/unix/udp.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/fs-poll.c -o out/src/fs-poll.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/uv-common.c -o out/src/uv-common.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/inet.c -o out/src/inet.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/linux/linux-core.c -o out/src/unix/linux/linux-core.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/linux/inotify.c -o out/src/unix/linux/inotify.o cc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -Iinclude -Iinclude/uv-private -Isrc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -c src/unix/linux/syscalls.c -o out/src/unix/linux/syscalls.o ar rcs libuv.a out/src/unix/async.o out/src/unix/core.o out/src/unix/dl.o out/src/unix/error.o out/src/unix/fs.o out/src/unix/getaddrinfo.o out/src/unix/loop.o out/src/unix/loop-watcher.o out/src/unix/pipe.o out/src/unix/poll.o out/src/unix/process.o out/src/unix/signal.o out/src/unix/stream.o out/src/unix/tcp.o out/src/unix/thread.o out/src/unix/threadpool.o out/src/unix/timer.o out/src/unix/tty.o out/src/unix/udp.o out/src/fs-poll.o out/src/uv-common.o out/src/inet.o out/src/unix/linux/linux-core.o out/src/unix/linux/inotify.o out/src/unix/linux/syscalls.o make[1]: se sale del directorio/home/dani/Documentos/node.native/libuv'
    make -C http-parser http_parser.o
    make[1]: se ingresa al directorio /home/dani/Documentos/node.native/http-parser' cc -I. -DHTTP_PARSER_STRICT=0 -Wall -Wextra -Werror -O3 -c http_parser.c make[1]: se sale del directorio/home/dani/Documentos/node.native/http-parser'
    g++ -std=gnu++0x -g -O0 -Ilibuv/include -Ihttp-parser -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o webclient webclient.cpp libuv/libuv.a http-parser/http_parser.o -lrt -lm -lpthread
    /tmp/ccklu03c.o: In function native::base::handle::close(std::function<void ()>)::{lambda(uv_handle_s*)#1}::operator void (*)(uv_handle_s*)() const': /home/dani/Documentos/node.native/./native/handle.h:57: undefined reference tonative::base::handle::close(std::function<void ()>)::{lambda(uv_handle_s_)#1}::FUN(uv_handle_s)'
    /tmp/ccklu03c.o: In function native::base::stream::write(std::string const&, std::function<void (native::error)>)::{lambda(uv_write_s*, int)#1}::operator void (*)(uv_write_s*, int)() const': /home/dani/Documentos/node.native/./native/stream.h:89: undefined reference tonative::base::stream::write(std::string const&, std::function<void (native::error)>)::{lambda(uv_write_s_, int)#1}::FUN(uv_write_s, int)'
    /tmp/ccklu03c.o: In function native::net::tcp::connect(std::string const&, int, std::function<void (native::error)>)::{lambda(uv_connect_s*, int)#1}::operator void (*)(uv_connect_s*, int)() const': /home/dani/Documentos/node.native/./native/tcp.h:58: undefined reference tonative::net::tcp::connect(std::string const&, int, std::function<void (native::error)>)::{lambda(uv_connect_s_, int)#1}::FUN(uv_connect_s, int)'
    collect2: error: ld returned 1 exit status
    make: *** [webclient] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions