Hi, Matthias,
Which gcc version do you have? Here is mine:
$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658)
(LLVM build 2336.1.00)
Copyright (C) 2007 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.
Regards,
Raul.
On lunes 14 de noviembre de 2011 at 17:06, Matthias Ringwald wrote:
> Hi all
>
> i've rebuild portaudio2 this morning and it did build on 10.7 using Xcode 4.2
> from Mac AppStore. I'll have a look into the code tomorrow.
>
> Best
> Matthias
>
> On 13.11.2011, at 21:31, Raúl Montes wrote:
> > Hi,
> >
> > I'm trying to compile portaudio2-shlibs (because it is a dependency of
> > portaudio). But I get the following error during compilation:
> >
> > gcc -c -I./include -I./src/common -I./src/os/unix -std=c99 -g -O2
> > -DPA_LITTLE_ENDIAN -Werror -mmacosx-version-min=10.4 -DPACKAGE_NAME=\"\"
> > -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
> > -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
> > -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> > -DHAVE_DLFCN_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8
> > -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1
> > src/hostapi/coreaudio/pa_mac_core_utilities.c -fno-common -DPIC -o
> > src/hostapi/coreaudio/.libs/pa_mac_core_utilities.o
> > src/hostapi/coreaudio/pa_mac_core.c:491:34: error: argument to 'sizeof' in
> > 'memset' call is the same
> > expression as the destination; did you mean to dereference it?
> > [-Werror,-Wsizeof-pointer-memaccess]
> > memset(deviceInfo, 0, sizeof(deviceInfo));
> > ~~~~~~~~~~ ^~~~~~~~~~
> > 1 error generated.
> > make: *** [src/hostapi/coreaudio/pa_mac_core.lo] Error 1
> > make: *** Waiting for unfinished jobs....
> > gcc -c -I./include -I./src/common -I./src/os/unix -std=c99 -g -O2
> > -DPA_LITTLE_ENDIAN -Werror -mmacosx-version-min=10.4 -DPACKAGE_NAME=\"\"
> > -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
> > -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> > -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
> > -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> > -DHAVE_DLFCN_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8
> > -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1
> > src/hostapi/coreaudio/pa_mac_core_utilities.c -o
> > src/hostapi/coreaudio/pa_mac_core_utilities.o >/dev/null 2>&1
> > ### execution of make failed, exit code 2
> >
> >
> >
> > This is my environment:
> >
> > Package manager version: 0.31.4
> > Distribution version: selfupdate-rsync Sun Nov 13 17:09:51 2011, 10.7,
> > x86_64
> > Trees: local/main stable/main
> > Xcode: 4.2
> >
> >
> >
> > Apparently is due to changes in Xcode 4.2 and the solution is to just
> > adding "*" in the sizeof argument, so it should be
> >
> > memset(deviceInfo, 0, sizeof(*deviceInfo));
> >
> > instead of
> >
> > memset(deviceInfo, 0, sizeof(deviceInfo));
> >
> > Here is another project that was affected by this and solved it just this
> > way: https://github.com/fuse4x/framework/pull/2
> >
> >
> > Please, could anybody fix this? I need portaudio on 10.7 :(
> >
> > Thanks!
> >
> > Regards,
> > Raul.
> >
>
>
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users