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

Solaris missing function prototypes #5293

Closed
claudioandre-br opened this issue Apr 22, 2023 · 4 comments
Closed

Solaris missing function prototypes #5293

claudioandre-br opened this issue Apr 22, 2023 · 4 comments

Comments

@claudioandre-br
Copy link
Member

A missing/wrong include?

 In file included from pp.c:71:0:
 mpz_int128.h: In function ‘_mpz_set_str’:
 mpz_int128.h:122:7: warning: implicit declaration of function ‘strncasecmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
   if (!strncasecmp(str, "0x", 2)) {
        ^~~~~~~~~~~
        strncmp
 pp.c: In function ‘do_prince_crack’:
 pp.c:1549:22: warning: implicit declaration of function ‘fileno’; did you mean ‘mblen’? [-Wimplicit-function-declaration]
                       fileno(read_fp), 0);
                       ^~~~~~
                       mblen
 
 Make process completed.

@claudioandre-br
Copy link
Member Author

claudioandre-br commented Apr 23, 2023

Configure:

 checking for strcasecmp... yes
 checking for strncasecmp... yes

CC -dM -E -x c /dev/null and output of configure.
defines.txt


[edited]

These functions are used in multiple places (okay, not inside header files).

Sounds like some crazy Solaris thing. I won't waste any more time on this, let's close.

@solardiz
Copy link
Member

Yes, I saw this on Solaris/sparc as well.

@solardiz solardiz changed the title Solaris missing functions Solaris missing function prototypes Apr 24, 2023
@claudioandre-br
Copy link
Member Author

I played around with it a bit but gave up. Should we close?

@solardiz
Copy link
Member

I'll close now, although I suspect with a little bit of effort we'd figure out the right feature macros to get these defined without breaking anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants