Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: libnetlink.h: No such file or directory #6

Open
michieltimmers opened this issue Sep 6, 2023 · 0 comments
Open

fatal error: libnetlink.h: No such file or directory #6

michieltimmers opened this issue Sep 6, 2023 · 0 comments

Comments

@michieltimmers
Copy link

michieltimmers commented Sep 6, 2023

Hello,

The package "iproute-dev" isn't available anymore in Debian. Seems to be replaced with "libghc-iproute-dev".

However when I do "make" I get the following error:

admin@softgre:~/softgre/softgre.git$ make
echo "/*Generated automatic (Wed Sep  6 13:16:14 UTC 2023)*/" > version.h
echo "#define CURRENT_COMMIT \"25d9ea7\"" >> version.h
echo "#define CURRENT_BRANCH \"master\"" >> version.h
echo "#define CURRENT_TAG    \"undefined\"" >> version.h
if git --git-dir=./.git --work-tree=. \
log --no-merges --date=short --pretty='tformat:%cd  %an  <%ae>%n%n%s%n%n%b' master | \
/usr/bin/sed	-e '/^[12]...-[01].-[0123].  [^<>]*  <[^<>]*>$/,/^$/ b' \
  		-e '/[^	 ]/,/^[	 ]*$/ !d' \
	    -e 's/^[	 ]*/	/' \
	    -e 's/^[	 ]*$//' >.ChangeLog.tmp; \
    then mv -f .ChangeLog.tmp "ChangeLog"; \
    else rm -f .ChangeLog.tmp; exit 1; fi
make  all-recursive
make[1]: Entering directory '/home/admin/softgre/softgre.git'
Making all in bin
make[2]: Entering directory '/home/admin/softgre/softgre.git/bin'
gcc -DHAVE_CONFIG_H -I. -I..     -I.. -I../src -I../include  -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -DSOFTGRED_CONFDIR=\"/usr/local/etc/softgred\" -DSOFTGRED_LOGDIR=\"/usr/local/var/log\" -DSOFTGRED_PIDDIR=\"/usr/local/var/run\" -DDEVEL -g3 -DSOFTGRED_ENABLE_SERVICE -g -O2 -fstack-protector -MT softgred-softgred.o -MD -MP -MF .deps/softgred-softgred.Tpo -c -o softgred-softgred.o `test -f '../src/softgred.c' || echo './'`../src/softgred.c
In file included from ../src/softgred.c:20:
../src/general.h:67:10: fatal error: libnetlink.h: No such file or directory
   67 | #include <libnetlink.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:482: softgred-softgred.o] Error 1
make[2]: Leaving directory '/home/admin/softgre/softgre.git/bin'
make[1]: *** [Makefile:388: all-recursive] Error 1
make[1]: Leaving directory '/home/admin/softgre/softgre.git'
make: *** [Makefile:329: all] Error 2

Seems that "libnetlink.h" was part of the iproute-dev package which isn't included in libghc-iproute-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant