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 10 build failure: dirent.d_type #15

Closed
mcarpenter opened this issue Mar 26, 2013 · 1 comment
Closed

Solaris 10 build failure: dirent.d_type #15

mcarpenter opened this issue Mar 26, 2013 · 1 comment

Comments

@mcarpenter
Copy link

(Reposting from the forum since I'm not sure where the definitive place to post issues is and this seems a better place for tracking: https://polarssl.org/discussions/bug-report-issues/solaris-10-build-failure).

Build of polarssl 1.2.6 (and current HEAD at github) fails on Solaris 10 (u9, x86 and SPARC) because struct dirent does not include a d_type member as required by library/x509parse.c line 1952.

This struct has not been updated for Solaris 11 or 11.1 so presumably will not build there either.

Opengroup ref: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/dirent.h.html

$ uname -a 
SunOS sol10u9 5.10 Generic_142910-17 i86pc i386 i86pc
$ gcc --version
gcc (GCC) 4.4.2
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ make
...
  CC    x509parse.c
x509parse.c: In function 'x509parse_crtpath':
x509parse.c:1952: error: 'struct dirent' has no member named 'd_type'
x509parse.c:1952: error: 'DT_REG' undeclared (first use in this function)
x509parse.c:1952: error: (Each undeclared identifier is reported only once
x509parse.c:1952: error: for each function it appears in.)
make[1]: *** [x509parse.o] Error 1
make: *** [all] Error 2

/usr/include/sys/dirent.h:

/*
 * File-system independent directory entry.
 */
typedef struct dirent {
    ino_t       d_ino;      /* "inode number" of entry */
    off_t       d_off;      /* offset of disk directory entry */
    unsigned short  d_reclen;   /* length of this record */
    char        d_name[1];  /* name of file */
} dirent_t;
@pjbakker
Copy link
Contributor

Fixed in the 1.2 branch and in the 1.2.8 release

mpg pushed a commit that referenced this issue Oct 30, 2018
Conflict resolution:

* `tests/suites/test_suite_psa_crypto.data`: in the new tests from PR #14,
  rename `PSA_ALG_RSA_PKCS1V15_RAW` to `PSA_ALG_RSA_PKCS1V15_SIGN_RAW` as
  was done in PR #15 in the other branch.
gilles-peskine-arm pushed a commit to gilles-peskine-arm/mbedtls that referenced this issue Mar 1, 2019
…policy_wildcard

Support wildcard hash in signature policies
Patater pushed a commit to Patater/mbedtls that referenced this issue Feb 10, 2020
Test vector Mbed-TLS#15 was encrypted twice. Decrypt it the second time.
hanno-becker pushed a commit to hanno-becker/mbedtls that referenced this issue Jul 20, 2021
Ssl test is disabled in TLS. This patch is to enable it.
And "Session serilization*" tests are skipped due to Mbed-TLS#155.

fix Mbed-TLS#15

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Change-Id: If08e16d01a29aa4ec086acc5fa12627edc84c6d3
ronald-cron-arm added a commit to davidhorstmann-arm/mbedtls that referenced this issue May 27, 2024
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
ronald-cron-arm added a commit to davidhorstmann-arm/mbedtls that referenced this issue May 28, 2024
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
ronald-cron-arm added a commit to ronald-cron-arm/mbedtls that referenced this issue May 28, 2024
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
bensze01 pushed a commit to bensze01/mbedtls that referenced this issue Jul 3, 2024
…dd-mbedtls-framework-module

Move `mbedtls_dev` to `mbedtls_framework` in the framework repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants