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

Compilation with gpgsql module: cannot find -lnsl #3250

Closed
soullivaneuh opened this issue Jan 16, 2016 · 8 comments
Closed

Compilation with gpgsql module: cannot find -lnsl #3250

soullivaneuh opened this issue Jan 16, 2016 · 8 comments

Comments

@soullivaneuh
Copy link

I'm trying compiling powerdns with gpgsql module for PostreSQL on Alpine linux (Docker) and I get this following error:

CXXLD  pdns_server
/usr/lib/gcc/x86_64-alpine-linux-musl/5.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lnsl
collect2: error: ld returned 1 exit status
Makefile:1379: recipe for target 'pdnssec' failed
make[4]: *** [pdnssec] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-alpine-linux-musl/5.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lnsl

What is the lib nsl?

You can see the related PR here: dockervan/powerdns#2

And the failing Travis job: https://travis-ci.org/dockervan/powerdns/jobs/102682305#L589-L590

@zeha
Copy link
Collaborator

zeha commented Jan 16, 2016

Please attach config.log and output of a build with make V=1.
libnsl is a solaris thing, usually.

@soullivaneuh
Copy link
Author

Please attach config.log

Where should I find this file?

@soullivaneuh
Copy link
Author

Here the log with make V=1: https://travis-ci.org/dockervan/powerdns/jobs/102784204#L880

@zeha
Copy link
Collaborator

zeha commented Jan 16, 2016

Given this is a build against musl, I assume this is #1967. You'll need the referenced patches or 4.0.

@soullivaneuh
Copy link
Author

You'll need the referenced patches

Do this patch of the PR #1990 will work on 3.4?

Can we just compile this needed library? Where can I find it?

@zeha
Copy link
Collaborator

zeha commented Jan 16, 2016

Do this patch of the PR #1990 will work on 3.4?

That's for you to find out. I'd think it would.

@soullivaneuh
Copy link
Author

The patch is actually not working with latest 3.4 version.

You will be able to see results here: https://travis-ci.org/dockervan/powerdns/jobs/103065381

@soullivaneuh
Copy link
Author

@James-TR said this patch works also on 3.4 (#1967 (comment)).

Any chance to have it on a new patch version?

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

3 participants