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

Spine doesn't compile with --enable-lcap #13

Closed
simnv opened this issue Mar 26, 2017 · 4 comments
Closed

Spine doesn't compile with --enable-lcap #13

simnv opened this issue Mar 26, 2017 · 4 comments

Comments

@simnv
Copy link

simnv commented Mar 26, 2017

Compile fails with --enable-lcap option:

/bin/sh ./libtool  --tag=CC   --mode=link gcc  -I/usr/include/mysql -g -O2  -L/usr/lib64/mysql -lpthread -lssl -lm  -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o  -lnetsnmp -lmysqlclient
libtool: link: gcc -I/usr/include/mysql -g -O2 -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o  -L/usr/lib64/mysql -lpthread -lssl -lm -lnetsnmp -lmysqlclient
spine.o: In function `drop_root':
/root/inst/spine/spine.c:137: undefined reference to `cap_from_text'
/root/inst/spine/spine.c:143: undefined reference to `cap_set_proc'
/root/inst/spine/spine.c:149: undefined reference to `cap_free'
util.o: In function `hasCaps':
/root/inst/spine/util.c:1329: undefined reference to `cap_get_proc'
/root/inst/spine/util.c:1336: undefined reference to `cap_get_flag'
/root/inst/spine/util.c:1347: undefined reference to `cap_free'
collect2: error: ld returned 1 exit status

Should add -lcap to LDFLAGS, then it compiles fine.

@cigamit
Copy link
Member

cigamit commented Mar 26, 2017

run the following commands:

locate capabilities.h

Also, upload your config.log.

@simnv
Copy link
Author

simnv commented Mar 27, 2017

$ locate capabilities.h
/usr/share/doc/git-1.8.3.1/technical/protocol-capabilities.html

config.zip

@cigamit
Copy link
Member

cigamit commented Mar 28, 2017

Resolved.

@cigamit cigamit closed this as completed Mar 28, 2017
cigamit added a commit that referenced this issue Mar 28, 2017
Spine does not compile with --enable-lcap
@simnv
Copy link
Author

simnv commented Mar 28, 2017

@cigamit Didn't help, error is the same.

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

2 participants