Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 111601
Alias:
Product:
Component:
Status: RESOLVED
Resolution: CANTFIX
Assigned To: Gentoo for Mac OS X <ppc-macos@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Dirk Schoenberger <dirk.schoenberger@freenet.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
spectromatic-1.0-malloc.patch solve the missing malloc include on MacOSX patch Dirk Schoenberger 2005-11-06 03:30 0000 287 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 111601 depends on: 111578 Show dependency tree
Bug 111601 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-11-05 10:48 0000
While trying to emerge spectromatic-1.0  I ran into the following problem

(the package needs sci-libs/gsl)

>>> Unpacking spectromatic_1.0-1.tar.gz to /var/tmp/portage/spectromatic-1.0/work
 * Applying spectromatic-1.0-gentoo.diff ...                                                                                                         
[ ok ]
 * Applying spectromatic-1.0-stringliteral.patch ...                                                                                                 
[ ok ]
>>> Source unpacked.
gcc -I. -O2 -Wall  -c spectromatic.c 
gcc -I. -O2 -Wall  -c wave.c 
spectromatic.c:25:20: error: malloc.h: No such file or directory


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.22-r3 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.3.0 Power 
Macintosh)
===============================================================
==
System uname: 8.3.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin8"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin8"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/
share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/
gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc aalib emboss gdbm gif imagemagick libwww nls ogg opengl png ppc-macos qt sdl slang 
tetex tiff vorbis userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

------- Comment #1 From Fabian Groffen 2005-11-05 10:52:20 0000 -------
Dirk,

maybe you want to know this:
You can solve these malloc.h problems quite often by simply ifndef-ing them.

the C file will have something like
#define <malloc.h>
which you can replace with
#ifndef __APPLE__
#define <malloc.h>
#endif

------- Comment #2 From Dirk Schoenberger 2005-11-06 03:30:22 0000 -------
Created an attachment (id=72273) [details]
solve the missing malloc include on MacOSX

The patch makes the package compile, but on install I get the following problem


>>> Install spectromatic-1.0 into /var/tmp/portage/spectromatic-1.0/image/
category media-gfx
mkdir -p /var/tmp/portage/spectromatic-1.0/image//usr/bin
mkdir -p /var/tmp/portage/spectromatic-1.0/image//usr/man/man1
install -o root -g root -m 0755 spectromatic
/var/tmp/portage/spectromatic-1.0/image//usr/bin
install: root: Invalid argument

------- Comment #3 From Fabian Groffen 2005-11-10 12:48:31 0000 -------
This error is usually caused by an install that wants to set the ownership of
files to group root.  On OSX, Solaris and others this group doesn't exist, hence
the error.  I solved this by hacking the Makefile (there is no configure) and
removed the arguments that tried to change the ownership to root:root.

Now I first need to get the dependencies emerged.  Thanks for your patch!

------- Comment #4 From Fabian Groffen 2005-11-10 13:28:42 0000 -------
Ok, I tested this thing, and it most certainly doesn't work on OSX.  It might
have to do with the endianness of Apples, but it claims for every file that it's
not mono nor stereo, while the same file on my Linux box gets the program to do
'something'.

------- Comment #5 From Dirk Schoenberger 2005-11-10 14:06:49 0000 -------
> Ok, I tested this thing, and it most certainly doesn't work on OSX.  It might
> have to do with the endianness of Apples, but it claims for every file that it's
> not mono nor stereo, while the same file on my Linux box gets the program to do
> 'something'.

Spectromatic is marked ~ppc, so if you are right, similar problems should occur on Gentoo Linux for PPC.
Can you ask the maintainers/the herd?

------- Comment #6 From Fabian Groffen 2005-11-11 01:38:42 0000 -------
good thinking ;)

Will try and see in IRC tonight.  Was thinking about having a look at the source
as well, so see if I can see things to go possibly wrong.

------- Comment #7 From Fabian Groffen 2008-02-08 17:20:19 0000 -------
 * no such package in main tree: media-gfx/spectromatic

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug