Code Monkey home page Code Monkey logo

Comments (11)

pprindeville avatar pprindeville commented on July 29, 2024 1

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.

pprindeville avatar pprindeville commented on July 29, 2024

Can you attach the output of your make? Not giving a lot of useful information to go by here.

from pam_tacplus.

rx13 avatar rx13 commented on July 29, 2024

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.

pprindeville avatar pprindeville commented on July 29, 2024

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.

rx13 avatar rx13 commented on July 29, 2024

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.

pprindeville avatar pprindeville commented on July 29, 2024

That's not really the point. If you want to (re-)compile tacc, then you do so as:

make tacc

from pam_tacplus.

rx13 avatar rx13 commented on July 29, 2024

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.

rx13 avatar rx13 commented on July 29, 2024

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.

pprindeville avatar pprindeville commented on July 29, 2024

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.

pprindeville avatar pprindeville commented on July 29, 2024

Can you post your compilation messages from an unmodified cloning?

from pam_tacplus.

pprindeville avatar pprindeville commented on July 29, 2024

Can't fix it without more information so closing the issue.

from pam_tacplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.