GithubHelp home page GithubHelp logo

Warnings during build: `no previous prototype for ‘mbedtls_xor’`, `no previous prototype for ‘mbedtls_put_unaligned_uint16’` etc. about mbedtls HOT 8 CLOSED

barracuda156 avatar barracuda156 commented on May 31, 2024
Warnings during build: `no previous prototype for ‘mbedtls_xor’`, `no previous prototype for ‘mbedtls_put_unaligned_uint16’` etc.

from mbedtls.

Comments (8)

gilles-peskine-arm avatar gilles-peskine-arm commented on May 31, 2024 1

Maybe related to #8786 ? It looks like we have functions that were intended to be static inline but static is missing.

from mbedtls.

tom-cosgrove-arm avatar tom-cosgrove-arm commented on May 31, 2024 1

There have been a lot of changes in this area, most recently in PR #8719. Can you try again with development? Several functions were changed from inline to static inline then

from mbedtls.

tom-daubney-arm avatar tom-daubney-arm commented on May 31, 2024 1

@barracuda156 AFAIK we don't actually currently support building with -Wmissing-prototypes and obviously not using this flag gets rid of these warnings, so to answer your original question, I don't think these warnings are of concern.

from mbedtls.

tom-daubney-arm avatar tom-daubney-arm commented on May 31, 2024

Hi @barracuda156, is this with a freshly checked-out default config? Thanks

from mbedtls.

barracuda156 avatar barracuda156 commented on May 31, 2024

Hi @barracuda156, is this with a freshly checked-out default config? Thanks

@tom-daubney-arm I am building from the portfile: https://github.com/macports/macports-ports/blob/d9650bcb2c73bc2993339693855f715134e30bb2/devel/mbedtls3/Portfile
No modifications locally on my end.

The only patch applied from Macports side is related to Python: https://github.com/macports/macports-ports/blob/master/devel/mbedtls3/files/patch-CMakeLists.txt.diff
I believe, that should not be relevant to functions prototypes.

from mbedtls.

barracuda156 avatar barracuda156 commented on May 31, 2024

Maybe related to #8786 ? It looks like we have functions that were intended to be static inline but static is missing.

Possibly, yes.

from mbedtls.

tom-daubney-arm avatar tom-daubney-arm commented on May 31, 2024

I am now closing this issue for the reasons outlined in the comment above which is essentially that we currently don't support builds with the -Wmissing-prototypes flag set.

Edit:- this is not fully correct. Library code does support the flag, however test and program code does not. This issue still needs to be closed since this problem has been taken care of in the latest development branch.

from mbedtls.

barracuda156 avatar barracuda156 commented on May 31, 2024

@tom-daubney-arm As long as these warnings constitute no problem and are merely triggered by an extra flag, there is no issue indeed. Thank you.
(I am not a maintainer of mdebtls3 port, so I am not sure why that flag is added.)

from mbedtls.

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.