You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2023/06/01 12:29:22 UTC

[Bug 66623] New: crypto/apr_crypto.c", line 160: undefined symbol: rsize_t

https://bz.apache.org/bugzilla/show_bug.cgi?id=66623

            Bug ID: 66623
           Summary: crypto/apr_crypto.c", line 160: undefined symbol:
                    rsize_t
           Product: APR
           Version: 1.6.3
          Hardware: PC
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
          Assignee: bugs@apr.apache.org
          Reporter: petr.sumbera@oracle.com
  Target Milestone: ---

Build on Solaris fails with:

```
/bin/bash /usr/apr/1/build/libtool --tag=CC --silent --mode=compile --tag=CC cc
  -m32 -KPIC -DPIC -xO4 -xchip=pentium -xregs=no%frameptr -mt -xcheck=no%stkovf
-DHAVE_CONFIG_H  -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -m32 -I/usr/include/openldap
-I/builds/psumbera/userland-apr-sec/components/apr-util-1/build/i86/include
-I/builds/psumbera/userland-apr-sec/components/apr-util-1/build/i86/include/private
-I/builds/psumbera/userland-apr-sec/components/apr-util-1/apr-util-1.6.3/include/private
-I/builds/psumbera/userland-apr-sec/components/apr-util-1/apr-util-1.6.3/include
-I/usr/include/mps -I/usr/include  -I/usr/apr/1/include 
-I/usr/include/openldap  -o dbm/apr_dbm.lo -c
/builds/psumbera/userland-apr-sec/components/apr-util-1/apr-util-1.6.3/dbm/apr_dbm.c
&& touch dbm/apr_dbm.lo
"/builds/psumbera/userland-apr-sec/components/apr-util-1/apr-util-1.6.3/crypto/apr_crypto.c",
line 160: warning: implicit function declaration: memset_s
"/builds/psumbera/userland-apr-sec/components/apr-util-1/apr-util-1.6.3/crypto/apr_crypto.c",
line 160: undefined symbol: rsize_t
"/builds/psumbera/userland-apr-sec/components/apr-util-1/apr-util-1.6.3/crypto/apr_crypto.c",
line 160: syntax error before or at: size
cc: acomp failed for
/builds/psumbera/userland-apr-sec/components/apr-util-1/apr-util-1.6.3/crypto/apr_crypto.c
```

memset_s man pages says:

```
   C11 Bounds Checking Interfaces
       #define __STDC_WANT_LIB_EXT1__ 1
       #include <string.h>
..
       errno_t memset_s(void *s, rsize_t smax, int c, rsize_t n);
```

Adding __STDC_WANT_LIB_EXT1__ resolves the issue (both error and warning).

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


[Bug 66623] crypto/apr_crypto.c, line 160: undefined symbol: rsize_t

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66623

Petr Sumbera <pe...@oracle.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|crypto/apr_crypto.c", line  |crypto/apr_crypto.c, line
                   |160: undefined symbol:      |160: undefined symbol:
                   |rsize_t                     |rsize_t

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


[Bug 66623] crypto/apr_crypto.c, line 160: undefined symbol: rsize_t

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66623

--- Comment #1 from Petr Sumbera <pe...@oracle.com> ---
Created attachment 38569
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38569&action=edit
possible fix

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org