Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111601 - Problem while emerge media-gfx/spectromatic-1.0
Summary: Problem while emerge media-gfx/spectromatic-1.0
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on: 111578
Blocks:
  Show dependency tree
 
Reported: 2005-11-05 10:48 UTC by Dirk Schoenberger
Modified: 2008-02-08 17:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
solve the missing malloc include on MacOSX (spectromatic-1.0-malloc.patch,287 bytes, patch)
2005-11-06 03:30 UTC, Dirk Schoenberger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schoenberger 2005-11-05 10:48:59 UTC
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 Fabian Groffen gentoo-dev 2005-11-05 10:52:20 UTC
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 Dirk Schoenberger 2005-11-06 03:30:22 UTC
Created attachment 72273 [details, diff]
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 Fabian Groffen gentoo-dev 2005-11-10 12:48:31 UTC
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 Fabian Groffen gentoo-dev 2005-11-10 13:28:42 UTC
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 Dirk Schoenberger 2005-11-10 14:06:49 UTC
> 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 Fabian Groffen gentoo-dev 2005-11-11 01:38:42 UTC
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 Fabian Groffen gentoo-dev 2008-02-08 17:20:19 UTC
 * no such package in main tree: media-gfx/spectromatic