I tried installing libshout2 by
sudo port -vd install libshout2
which in turn installed libogg thru its libvorbis dependency
However the configure script of libshout2 barfs on a header file
created by libogg's configure:
/opt/local/var/db/dports/build/
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp
orts_audio_libshout2/work/libshout-2.2.2/config.log:
configure:23775: $? = 0
configure:23778: test -z || test ! -s conftest.err
configure:23781: $? = 0
configure:23784: test -s conftest
configure:23787: $? = 0
configure:23803: result: ok
configure:23809: checking for struct ovectl_ratemanage_arg
configure:23837: gcc -c -g -O2 -I/opt/local/include conftest.c >&5
In file included from /opt/local/include/ogg/os_types.h:123,
from /opt/local/include/ogg/ogg.h:24,
from /opt/local/include/vorbis/codec.h:26,
from conftest.c:50:
/opt/local/include/ogg/config_types.h:6: error: parse error before
'ogg_uint16_t'
/opt/local/include/ogg/config_types.h:6: warning: data definition has
no type or storage class
/opt/local/include/ogg/config_types.h:8: error: parse error before
'ogg_uint32_t'
/opt/local/include/ogg/config_types.h:8: warning: data definition has
no type or storage class
configure:23843: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libshout"
| #define PACKAGE_TARNAME "libshout"
| #define PACKAGE_VERSION "2.2.2"
| #define PACKAGE_STRING "libshout 2.2.2"
| #define PACKAGE_BUGREPORT "[EMAIL PROTECTED]"
| #define LIBSHOUT_MAJOR 2
| #define LIBSHOUT_MINOR 2
| #define LIBSHOUT_MICRO 2
| #define PACKAGE "libshout"
| #define VERSION "2.2.2"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #ifdef __cplusplus
| extern "C" void std::exit (int); using std::exit;
| #endif
| #define _XOPEN_SOURCE 600
| #define _GNU_SOURCE
| #define STDC_HEADERS 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_C99_INTTYPES 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SOCKLEN_T 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_SETHOSTENT 1
| #define HAVE_GETNAMEINFO 1
| #define HAVE_ENDHOSTENT 1
| #define HAVE_GETADDRINFO 1
| #define HAVE_INET_ATON 1
| #define HAVE_WRITEV 1
| #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
| #define HAVE_INET_PTON 1
| #define HAVE_PTHREAD_RWLOCK_T 1
| #define HAVE_OGG 1
| /* end confdefs.h. */
|
| #include <vorbis/codec.h>
| #include <vorbis/vorbisenc.h>
|
|
| int
| main ()
| {
| if ((struct ovectl_ratemanage_arg *) 0)
| return 0;
| if (sizeof (struct ovectl_ratemanage_arg))
| return 0;
| ;
| return 0;
| }
configure:23866: result: no
configure:23892: error: requisite Ogg Vorbis library not found
the headerfile in question looks like this:
/opt/local/include/ogg/config_types.h:
#ifndef __CONFIG_TYPES_H__
#define __CONFIG_TYPES_H__
/* these are filled in by configure */
typedef int16_t ogg_int16_t;
typedef uint16_t ogg_uint16_t;
typedef int32_t ogg_int32_t;
typedef uint32_t ogg_uint32_t;
typedef int64_t ogg_int64_t;
#endif
What is the problem with that file (maybe I am blind ... :-S)?
My compiler is gcc-4.0.1 btw:
localhost:/etc lars$ gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5250.obj~12/src/configure --
disable-checking -enable-werror --prefix=/usr --mandir=/share/man --
enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg]
[^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --
build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --
target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5250)
TIA, Lars
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users