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
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
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
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!
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'.
> 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?
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.
* no such package in main tree: media-gfx/spectromatic