[
https://issues.apache.org/jira/browse/GUACAMOLE-1867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mike Jumper reopened GUACAMOLE-1867:
------------------------------------
Seeing a build failure running the unit tests on some build environments:
{code:none}
...
#8 157.1 /usr/bin/ld: fs/test_rdp-normalize_path.o: undefined reference to
symbol 'PRIV_guac_mem_alloc'
#8 157.1 /usr/bin/ld: /build/guacamole-server/src/libguac/.libs/libguac.so.21:
error adding symbols: DSO missing from command line
...
{code}
> Add libguac convenience functions for memory management
> -------------------------------------------------------
>
> Key: GUACAMOLE-1867
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-1867
> Project: Guacamole
> Issue Type: Wish
> Components: libguac
> Reporter: Mike Jumper
> Assignee: Mike Jumper
> Priority: Minor
> Fix For: 1.5.4
>
>
> As it's common throughout the Guacamole codebase to need to allocate memory
> involving multiple factors, such as width/stride, height, and bytes per
> pixel, or bits per sample, samples per second, and seconds per packet, it
> would be nice to provide convenience functions that make these allocations
> and associated calculations easy and verifiable.
> Adding our own memory allocation functions would also allow us to smooth over
> platform-specific behavior of {{malloc()}} / {{calloc()}}, would allow for
> easy insertion of headers/footers around memory blocks if necessary for
> memory debugging, etc., and would open up the possibility of additional
> safeguards and sanity checks.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)