Coder Social home page Coder Social logo

Freebsd 10 use clang by default about ossec-hids HOT 5 CLOSED

ossec avatar ossec commented on August 18, 2024
Freebsd 10 use clang by default

from ossec-hids.

Comments (5)

cgzones avatar cgzones commented on August 18, 2024

Why is ossec trying to set a compiler variable in the first place (https://github.com/ossec/ossec-hids/blob/master/install.sh#L814)? Should we not trust the operating system to give us a appropriate ${CC} environment variable?
I once succeed to compile ossec with clang, look at https://bitbucket.org/cgzones/ossec-hids/commits/1aa1d8b786d0ab730458626754b4666e4b7eb19d

from ossec-hids.

jrossi avatar jrossi commented on August 18, 2024

FreeBSD 10 only has clang. Gcc is not installed and must be added as pkg/port.

Clang can build everything in ossec correctly other then sha1 https://github.com/ossec/ossec-hids/tree/master/src/os_crypto/sha1 this bit of code uses inline asm that is not supported by clang. You can still build the .o with gcc and link it with clang which is what happens when you run "make clang".

What we need to do is fix that inline asm or require gcc. I think we should fix the inline asm myself.

Sent from my iPhone

On Mar 2, 2014, at 5:48 AM, "cgzones" [email protected] wrote:

Why is ossec trying to set a compiler variable in the first place (https://github.com/ossec/ossec-hids/blob/master/install.sh#L814)? Should we not trust the operating system to give us a appropriate ${CC} environment variable?
I once succeed to compile ossec with clang, look at https://bitbucket.org/cgzones/ossec-hids/commits/1aa1d8b786d0ab730458626754b4666e4b7eb19d


Reply to this email directly or view it on GitHub.

from ossec-hids.

cgzones avatar cgzones commented on August 18, 2024

can you test my branch https://github.com/cgzones/ossec-hids/tree/clang?

from ossec-hids.

jrossi avatar jrossi commented on August 18, 2024

@cgzones in quick testing it fixed this issue for freebsd. We are gonna need larger testing to make this work. Could you create a pull request for this?

from ossec-hids.

jrossi avatar jrossi commented on August 18, 2024

Thanks #132 this works and compiles on freebsd without issue.

Thank you @cgzones

from ossec-hids.

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.