Comments (11)
Please do "make clean" first.
from kadnode.
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.
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.
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.
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 to
crypto_sign_keypair'
build/ext-auth.o: In function auth_verify_challenge': ext-auth.c:(.text+0xbc2): undefined reference to
crypto_sign_open'
build/ext-auth.o: In function auth_receive_challenge': ext-auth.c:(.text+0xd93): undefined reference to
crypto_sign'
collect2: error: ld returned 1 exit status
Makefile:97: recipe for target 'kadnode' failed
make: *** [kadnode] Error 1
from kadnode.
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.
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.
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.
anyway, your PKGBUILD does not build on clear ArchLinux
https://aur.archlinux.org/packages/kadnode
from kadnode.
Looks like I need to get a fresh Archlinux to do some testing soon. Thanks for the effort!
from kadnode.
ok, libsodium is now used as shared library. Building on arch should work for the next release.
from kadnode.
Related Issues (20)
- can not start on windows HOT 8
- daemon crashes on resovle HOT 11
- keeps trying to uninstall debian package HOT 2
- can not build in cygwin HOT 3
- Publishing addresses for other nodes HOT 4
- here's an example address you can use HOT 10
- natpmp upnp features ? HOT 3
- Cannot build on Cygwin64. HOT 1
- Upgrade ideas HOT 3
- An odd bug HOT 4
- Upgrade idea HOT 2
- Announce with own CA certs HOT 4
- Ubuntu 22.04: unmet dependencies when installing deb HOT 2
- onion like domain with ed25519 HOT 9
- MX records? HOT 1
- Domain authorization HOT 4
- can't build with mbedtls 3.x HOT 8
- Can this work on a local mesh network HOT 5
- Can this work on a local mesh network
- Cannot compile in cygwin HOT 5
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 kadnode.