Giter VIP home page Giter VIP logo

Comments (11)

mwarning avatar mwarning commented on May 25, 2024

Please do "make clean" first.

from kadnode.

whoizit avatar whoizit commented on May 25, 2024

I modify pkgbuild fo this
build() {
cd KadNode-${pkgver}
make clean
make FEATURES="auth lpd cmd nss"
}
but same result

I run manualy make clean; make FEATURES="auth lpd cmd nss" from source dir, but same result

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

This worked for me on Arch:
git clone https://github.com/mwarning/KadNode.git
cd KadNode
make FEATURES="auth lpd cmd nss"

It looks to me that the makefile did not find the libsodium library. For this I simply used the find command (yeah, I know, the gnu build system has tools for this..xD). Somehow you system policies do not allow the find command to be run - odd.

from kadnode.

whoizit avatar whoizit commented on May 25, 2024

I have fresh, minimal Archlinux install
$ ls -ldA /usr/share/polkit-1/rules.d
drwx------ 2 polkitd root 4096 фев 25 2014 /usr/share/polkit-1/rules.d

first, need add depends=('libsodium') into ArchLinux PKGBUILD
https://wiki.archlinux.org/index.php/PKGBUILD#depends

from kadnode.

whoizit avatar whoizit commented on May 25, 2024

with sudo
$ sudo LANG=C make FEATURES="auth lpd cmd nss"
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/main.o src/main.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/results.o src/results.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/kad.o src/kad.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/log.o src/log.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/conf.o src/conf.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/sha1.o src/sha1.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/net.o src/net.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/utils.o src/utils.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/values.o src/values.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/peerfile.o src/peerfile.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/unix.o src/unix.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/ext-lpd.o src/ext-lpd.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/ext-auth.o src/ext-auth.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/ext-cmd.o src/ext-cmd.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -c -o build/ext-nss.o src/ext-nss.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS src/kadnode-ctl.c -o build/kadnode-ctl
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -fPIC -c -o build/ext-libnss.o src/ext-libnss.c
cc -O2 -Wall -Wwrite-strings -pedantic -std=gnu99 -I/usr/local/include -DLPD -DAUTH -DCMD -DNSS -fPIC -shared -Wl,-soname,libnss_kadnode.so.2 -o build/libnss_kadnode.so.2 build/ext-libnss.o
cc build/main.o build/results.o build/kad.o build/log.o build/conf.o build/sha1.o build/net.o build/utils.o build/values.o build/peerfile.o build/unix.o build/ext-lpd.o build/ext-auth.o build/ext-cmd.o build/ext-nss.o -o build/kadnode -L/usr/local/lib -lc
build/ext-auth.o: In function auth_generate_key_pair': ext-auth.c:(.text+0x31): undefined reference tocrypto_sign_keypair'
build/ext-auth.o: In function auth_verify_challenge': ext-auth.c:(.text+0xbc2): undefined reference tocrypto_sign_open'
build/ext-auth.o: In function auth_receive_challenge': ext-auth.c:(.text+0xd93): undefined reference tocrypto_sign'
collect2: error: ld returned 1 exit status
Makefile:97: recipe for target 'kadnode' failed
make: *** [kadnode] Error 1

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

The problem with the libsodium package is that it only installs a shared library and no static library. I did use the static library because it is beneficial on some systems and I wanted to have it uniform.
You could exchange this following line with " LFLAGS += -lsodium" to fix the problem:
https://github.com/mwarning/KadNode/blob/master/Makefile#L34

I will see if I can change it.

from kadnode.

whoizit avatar whoizit commented on May 25, 2024

PKGBUILD with 3 changes http://ix.io/4FD, works for me
depends=('libsodium')
backup=('etc/kadnode/kadnode.conf' 'etc/kadnode/peers.txt')
make LFLAGS+=-lsodium FEATURES="auth lpd cmd nss"

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

The path was definitely wrong. Thanks - it is fixed now. I will see if I can get libsodium working as a shared library on all platforms. That should avoid some build problems.

from kadnode.

whoizit avatar whoizit commented on May 25, 2024

anyway, your PKGBUILD does not build on clear ArchLinux
https://aur.archlinux.org/packages/kadnode

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

Looks like I need to get a fresh Archlinux to do some testing soon. Thanks for the effort!

from kadnode.

mwarning avatar mwarning commented on May 25, 2024

ok, libsodium is now used as shared library. Building on arch should work for the next release.

from kadnode.

Related Issues (20)

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.