Comments (11)
I don't think you need to replace -Werror
so much as supplement it as -Werror -Wno-error=deprecated
. Can you post the errors that you're seeing when you build? And why are you using such an old version of Debian? I don't think anyone expects a current project to build under such an old release. Etch is now 10 years old.
from pam_tacplus.
Can you attach the output of your make
? Not giving a lot of useful information to go by here.
from pam_tacplus.
The issue is not announced in the make process, but it is if you attempt to compile the tacc.c manually:
# gcc tacc.c -o tacc
tacc.c:30:26: fatal error: openssl/rand.h: No such file or directory
#include <openssl/rand.h>
^
compilation terminated.
This issue can be fixed by either installing libssl-dev in Debian or openssl-devel in RHEL base.
from pam_tacplus.
This issue can be fixed by either installing libssl-dev in Debian or openssl-devel in RHEL base.
Of course the package containing the headers needs to be present to compile. Also, when you compile manually you're not passing in all the flags that a make-based compile would, so of course it's not going to work properly.
Neither of these is really a bug. That's normal usage.
If you look here:
https://github.com/jeroennijhof/pam_tacplus/blob/master/configure.ac#L39
https://github.com/jeroennijhof/pam_tacplus/blob/master/configure.ac#L54
you'll see that TACC only gets defined if a library (called libcrypto.a
or libcrypto.so
) containing the function RAND_pseudo_bytes
is found. And you'll see here:
https://github.com/jeroennijhof/pam_tacplus/blob/master/Makefile.am#L13
that tacc
only gets built if TACC
was defined above (i.e. a libcrypto.a
containing RAND_pseudo_bytes
) was found.
If those conditions aren't met, then only the minimal components which can be built are built.
from pam_tacplus.
when you compile manually you're not passing in all the flags that a make-based compile would
Correct, I should've included the extended piece instead of the short one where I was replicating the make flags.
from pam_tacplus.
That's not really the point. If you want to (re-)compile tacc
, then you do so as:
make tacc
from pam_tacplus.
Worth noting, in Debian 8.7* (kernel 4.7.5), you also need to replace -Werror with -Wno-deprecated to compile successfully with all dependencies. tacc is working for me at this time. Thanks. (adjusted per follow-up comment -- need more coffee)
from pam_tacplus.
In short, make was running with no issue (reported), but it was never spitting out the tacc client.
So I replicated as many of the flags from make as I could, and realized it was missing libssl.
Once that was fixed, it was failing to compile due to deprecation errors.
That's when I pulled -Werror (in place of the more sensible -Wno-error=deprecated)
So, had I not needed tacc, it likely would have never been noticed.
from pam_tacplus.
Once that was fixed, it was failing to compile due to deprecation errors.
Without seeing the previously requested errors, I can't tell if that's definitively true or not, but I strongly suspect that the errors have to do with your using a very old version of Debian (and hence a very old version of OpenSSL, probably pre 1.0.0).
from pam_tacplus.
Can you post your compilation messages from an unmodified cloning?
from pam_tacplus.
Can't fix it without more information so closing the issue.
from pam_tacplus.
Related Issues (20)
- debian 11 package for libpam-tacplus HOT 6
- no prompt when using for sudo
- Double free in authenticate HOT 2
- sshd not working
- Is loopback source IP Address configure possible ?
- No configure in official tarball HOT 8
- Out-of-tree builds fail in configure
- Does not compile without getrandom() HOT 7
- Ubuntu Failing with "Tacacs Session aborted".
- How to log user commands into server accounting file?
- Mechanism to get the user priviledge from TACACS Server
- m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Remove.
- /bin/sh: sys/random.h-t: No such file or directory HOT 3
- pam_tacplus license HOT 1
- Is srcaddr supported at all
- Build Error: Gnulib files not imported
- Is password change supported in pam_tacplus
- core dumped due double free
- Can't access with the default user of the router if the user is not in TACACS+
- Configuration does not fail when gnulib is not installed
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 pam_tacplus.