Opened 18 years ago
Closed 18 years ago
#5404 closed patch (fixed)
Missing includes needed when compiling on newer g++
| Reported by: | Owned by: | danielk | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.21.1 |
| Component: | mythmusic | Version: | 0.21-fixes |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Hi, I'm doing a test compile of the 0-21-fixes branch on Intrepid Ibex, and mythplugins fails to build, particularly mythmusic.
It turns out on the copy of g++ in Intrepid, you need to include the malloc.h header to allow it to be used.
# g++ --version g++ (Ubuntu 4.3.0-5ubuntu1) 4.3.1 20080525 (prerelease) Copyright (C) 2008 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.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.

I got an email indicating this:
Hi,
your patch 12_missing_malloc.dpatch includes malloc.h for malloc(), instead of stdlib.h as it is documented in the malloc(3) manpage.
Regards, Tino
This should be included instead it would appear (although both should work)