[MAC] port install libsdl issue - snow leopard
#1
Hi.

It's about compiling XBMC in Mac OS X 10.6.4

Following http://code.google.com/p/xbmc-port-depends/ I managed to install Mac Ports 1.7.1 and switched to gcc-4.0

According to http://trac.xbmc.org/browser/trunk/README.osx all mac ports have been installed up to "sudo port install libsdl +no_x11". This one fails with many compilation errors.

MaestroDD said that libsdl-dev is working fine: http://forum.xbmc.org/showpost.php?p=398792&postcount=3

I've installed libsdl-devel but smpeg depends on libsdl and doesn't want to compile.

How can I install libsdl or make smpeg depend on libsdl-devel?

Thank you
Reply
#2
Pavel Wrote:Hi.

It's about compiling XBMC in Mac OS X 10.6.4

Following http://code.google.com/p/xbmc-port-depends/ I managed to install Mac Ports 1.7.1 and switched to gcc-4.0

According to http://trac.xbmc.org/browser/trunk/README.osx all mac ports have been installed up to "sudo port install libsdl +no_x11". This one fails with many compilation errors.

MaestroDD said that libsdl-dev is working fine: http://forum.xbmc.org/showpost.php?p=398792&postcount=3

I've installed libsdl-devel but smpeg depends on libsdl and doesn't want to compile.

How can I install libsdl or make smpeg depend on libsdl-devel?

Thank you

pastebin your errors and maybe we can see what the problem is Smile

README.osx says to use

sudo port install libsdl +no_x11 +universal

are you not adding the +universal where indicated ?
Reply
#3
davilla Wrote:are you not adding the +universal where indicated ?

Hi,
I'm not adding +universal at all. Is it OK if it's just required to build everything for i386, 32 bit architecture?

Here are compilation errors:

Code:
pavel-sumarokovs-macbook:libsdl pavelsumarokov$ sudo port install libsdl +no_x11
--->  Fetching libsdl
--->  Verifying checksum(s) for libsdl
--->  Extracting libsdl
--->  Applying patches to libsdl
--->  Configuring libsdl
--->  Building libsdl
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_pavelsumarokov_Desktop_xbmc-port-depends-read-only_trunk_dports_devel_libsdl/work/SDL-1.2.13" && make all " returned error 2
Command output:  /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_systhread.c -o build/SDL_systhread.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syssem.c  -o build/SDL_syssem.lo
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syssem.c  -fno-common -DPIC -o build/.libs/SDL_syssem.o
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syssem.c -o build/SDL_syssem.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_sysmutex.c  -o build/SDL_sysmutex.lo
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_sysmutex.c  -fno-common -DPIC -o build/.libs/SDL_sysmutex.o
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_sysmutex.c -o build/SDL_sysmutex.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syscond.c  -o build/SDL_syscond.lo
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syscond.c  -fno-common -DPIC -o build/.libs/SDL_syscond.o
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syscond.c -o build/SDL_syscond.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/audio/macosx/SDL_coreaudio.c  -o build/SDL_coreaudio.lo
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/audio/macosx/SDL_coreaudio.c  -fno-common -DPIC -o build/.libs/SDL_coreaudio.o
./src/audio/macosx/SDL_coreaudio.c:26:37: error: AudioUnit/AUNTComponent.h: No such file or directory
./src/audio/macosx/SDL_coreaudio.c: In function 'Core_CloseAudio':
./src/audio/macosx/SDL_coreaudio.c:162: error: storage size of 'callback' isn't known
./src/audio/macosx/SDL_coreaudio.c:175: error: 'kAudioUnitProperty_SetInputCallback' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:175: error: (Each undeclared identifier is reported only once
./src/audio/macosx/SDL_coreaudio.c:175: error: for each function it appears in.)
./src/audio/macosx/SDL_coreaudio.c: In function 'Core_OpenAudio':
./src/audio/macosx/SDL_coreaudio.c:204: error: 'Component' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:204: error: syntax error before 'comp'
./src/audio/macosx/SDL_coreaudio.c:205: error: 'ComponentDescription' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:206: error: storage size of 'callback' isn't known
./src/audio/macosx/SDL_coreaudio.c:227: error: 'desc' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:227: error: 'kAudioUnitComponentType' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:228: error: 'kAudioUnitSubType_Output' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:229: error: 'kAudioUnitID_DefaultOutput' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:233: error: 'comp' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:259: error: 'kAudioUnitProperty_SetInputCallback' undeclared (first use in this function)
make: *** [build/SDL_coreaudio.lo] Error 1

Error: Status 1 encountered during processing.
Reply
#4
Pavel Wrote:Hi,
I'm not adding +universal at all. Is it OK if it's just required to build everything for i386, 32 bit architecture?

Here are compilation errors:

Code:
pavel-sumarokovs-macbook:libsdl pavelsumarokov$ sudo port install libsdl +no_x11
--->  Fetching libsdl
--->  Verifying checksum(s) for libsdl
--->  Extracting libsdl
--->  Applying patches to libsdl
--->  Configuring libsdl
--->  Building libsdl
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_pavelsumarokov_Desktop_xbmc-port-depends-read-only_trunk_dports_devel_libsdl/work/SDL-1.2.13" && make all " returned error 2
Command output:  /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_systhread.c -o build/SDL_systhread.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syssem.c  -o build/SDL_syssem.lo
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syssem.c  -fno-common -DPIC -o build/.libs/SDL_syssem.o
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syssem.c -o build/SDL_syssem.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_sysmutex.c  -o build/SDL_sysmutex.lo
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_sysmutex.c  -fno-common -DPIC -o build/.libs/SDL_sysmutex.o
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_sysmutex.c -o build/SDL_sysmutex.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syscond.c  -o build/SDL_syscond.lo
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syscond.c  -fno-common -DPIC -o build/.libs/SDL_syscond.o
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/thread/pthread/SDL_syscond.c -o build/SDL_syscond.o >/dev/null 2>&1
/bin/sh ./libtool --mode=compile /usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/audio/macosx/SDL_coreaudio.c  -o build/SDL_coreaudio.lo
/usr/bin/gcc-4.0 -O2 -I/opt/local/include -I./include -D_GNU_SOURCE=1 -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -force_cpusubtype_ALL -fpascal-strings -c ./src/audio/macosx/SDL_coreaudio.c  -fno-common -DPIC -o build/.libs/SDL_coreaudio.o
./src/audio/macosx/SDL_coreaudio.c:26:37: error: AudioUnit/AUNTComponent.h: No such file or directory
./src/audio/macosx/SDL_coreaudio.c: In function 'Core_CloseAudio':
./src/audio/macosx/SDL_coreaudio.c:162: error: storage size of 'callback' isn't known
./src/audio/macosx/SDL_coreaudio.c:175: error: 'kAudioUnitProperty_SetInputCallback' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:175: error: (Each undeclared identifier is reported only once
./src/audio/macosx/SDL_coreaudio.c:175: error: for each function it appears in.)
./src/audio/macosx/SDL_coreaudio.c: In function 'Core_OpenAudio':
./src/audio/macosx/SDL_coreaudio.c:204: error: 'Component' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:204: error: syntax error before 'comp'
./src/audio/macosx/SDL_coreaudio.c:205: error: 'ComponentDescription' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:206: error: storage size of 'callback' isn't known
./src/audio/macosx/SDL_coreaudio.c:227: error: 'desc' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:227: error: 'kAudioUnitComponentType' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:228: error: 'kAudioUnitSubType_Output' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:229: error: 'kAudioUnitID_DefaultOutput' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:233: error: 'comp' undeclared (first use in this function)
./src/audio/macosx/SDL_coreaudio.c:259: error: 'kAudioUnitProperty_SetInputCallback' undeclared (first use in this function)
make: *** [build/SDL_coreaudio.lo] Error 1

Error: Status 1 encountered during processing.

if it was ok not to have "+universal", it would not be in README.osx Smile

+universal does more than you think it does.
Reply
#5
I've been trying to compile it for three days already Smile

Please advise how should I install SDK 10.4? There were only 10.5 and 10.6 versions so I've downloaded 10.4 separately as zip archive and simply copied and pasted to /Developer/SDKs/MacOSX10.4u.sdk. Is it correct?

I'm doing everything exactly as in articles listed above but cannot compile first library named pcre:
Code:
sudo port install pcre +universal
--->  Fetching bzip2
--->  Attempting to fetch bzip2-1.0.5.tar.gz from http://arn.se.distfiles.macports.org/bzip2
--->  Attempting to fetch bzip2-1.0.5.tar.gz from http://www.bzip.org/1.0.5
--->  Verifying checksum(s) for bzip2
--->  Extracting bzip2
--->  Applying patches to bzip2
--->  Configuring bzip2
--->  Building bzip2
--->  Staging bzip2 into destroot
--->  Installing bzip2 @1.0.5_2+universal
--->  Activating bzip2 @1.0.5_2+universal
--->  Cleaning bzip2
--->  Fetching ncursesw
--->  Attempting to fetch ncurses-5.7.tar.gz from http://arn.se.distfiles.macports.org/ncurses
--->  Attempting to fetch ncurses-5.7.tar.gz from http://www.mirrorservice.org/sites/ftp.gnu.org/gnu/ncurses
--->  Verifying checksum(s) for ncursesw
--->  Extracting ncursesw
--->  Applying patches to ncursesw
--->  Configuring ncursesw
--->  Configuring ncursesw for architecture i386
--->  Building ncursesw
--->  Building ncursesw for architecture i386
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_pavelsumarokov_Desktop_xbmc-port-depends-read-only_dports_devel_ncursesw/work/ncurses-5.7-i386" && make all " returned error 2
Command output: cd man && make DESTDIR="" all
sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail >terminfo.5
cd include && make DESTDIR="" all
cat curses.head >curses.h
AWK=awk sh ./MKkey_defs.sh ./Caps >>curses.h
sh -c 'if test "cchar_t" = "cchar_t" ; then cat ./curses.wide >>curses.h ; fi'
cat ./curses.tail >>curses.h
sh ./MKhashsize.sh ./Caps >hashsize.h
AWK=awk sh ./MKncurses_def.sh ./ncurses_defs >ncurses_def.h
AWK=awk sh ./MKparametrized.sh ./Caps >parametrized.h
awk -f MKterm.h.awk ./Caps > term.h
sh ./edit_cfg.sh ../include/ncurses_cfg.h term.h
** edit: HAVE_TCGETATTR 1
** edit: HAVE_TERMIOS_H 1
** edit: HAVE_TERMIO_H 0
** edit: BROKEN_LINKER 0
cd ncurses && make DESTDIR="" all
awk -f ./tinfo/MKcodes.awk bigstrings=1 ./../include/Caps >codes.c
/usr/bin/gcc-4.0 -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ncursesw -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386  --param max-inline-insns-single=1200  -no-cpp-precomp -DMAIN_PROGRAM ./tinfo/comp_hash.c -arch i386 -Wl,-search_paths_first  
In file included from ./../include/curses.h:142,
                 from ../ncurses/curses.priv.h:259,
                 from ./tinfo/comp_hash.c:42:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from ../ncurses/curses.priv.h:259,
                 from ./tinfo/comp_hash.c:42:
./../include/curses.h:340: error: conflicting types for 'wchar_t'
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdlib.h:92: error: previous declaration of 'wchar_t' was here
make[1]: *** [make_hash] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: ncurses ncursesw readline zlib
Error: Status 1 encountered during processing.

gcc-4.0 is used together with SDK 10.4u (it was set according to README.osx)

File stdarg.h exists in its correct place.
Reply
#6
10.4SDK is an optional install selection during the Xcode install. Xcode install is on your DVD install disk.

ls -l /Developer/SDKs

Quote:Skunkworks:xbmc-git davilla$ ls -l /Developer/SDKs/
total 0
drwxr-xr-x 7 root wheel 238 Sep 21 2008 MacOSX10.4u.sdk
drwxr-xr-x 7 root wheel 238 Oct 17 2008 MacOSX10.5.sdk

Quote:Skunkworks:xbmc-git davilla$ ls -l /Developer/SDKs/MacOSX10.4u.sdk/
total 8
drwxr-xr-x 4 root wheel 136 Sep 18 2008 Developer
drwxr-xr-x 3 root wheel 102 Dec 10 2008 Library
-rw-r--r-- 1 root wheel 952 Sep 21 2008 SDKSettings.plist
drwxr-xr-x 3 root wheel 102 Sep 18 2008 System
drwxr-xr-x 8 root wheel 272 Sep 18 2008 usr

Which Xcode version ?
Reply
#7
XCode Version 3.2.2
Code:
pavel-sumarokovs-macbook:bin pavelsumarokov$ cd /Developer/SDKs/
pavel-sumarokovs-macbook:SDKs pavelsumarokov$ ls -la
total 0
drwxr-xr-x   5 root            wheel  170 27 Aug 21:31 .
drwxrwxr-x@ 17 root            admin  578 10 Aug 09:36 ..
drwxr-xr-x   7 pavelsumarokov  staff  238 20 Jan  2008 MacOSX10.4u.sdk
drwxr-xr-x   7 root            wheel  238 18 Feb  2010 MacOSX10.5.sdk
drwxr-xr-x   7 root            wheel  238 12 Mar 08:08 MacOSX10.6.sdk
SDK 10.4u should be OK because I can compile and install some other ports using it.
Reply
#8
Problem is in ncursesw library. It has include/curses.h file declaring
Code:
typedef unsigned short wchar_t;
that conflicts with wchar_t declaration from SDK (no matter which SDK is used)
It works if exclude +universal parameter though
Reply
#9
port installed

pastebin the output.
Reply
#10
Thank you for giving me believe that it's possible to install the port Smile

Here is the error:
Code:
sudo port install pcre +universal
Password:
--->  Fetching bzip2
--->  Attempting to fetch bzip2-1.0.5.tar.gz from http://arn.se.distfiles.macports.org/bzip2
--->  Attempting to fetch bzip2-1.0.5.tar.gz from http://www.bzip.org/1.0.5
--->  Verifying checksum(s) for bzip2
--->  Extracting bzip2
--->  Applying patches to bzip2
--->  Configuring bzip2
--->  Building bzip2
--->  Staging bzip2 into destroot
--->  Installing bzip2 @1.0.5_2+universal
--->  Activating bzip2 @1.0.5_2+universal
--->  Cleaning bzip2
--->  Fetching ncursesw
--->  Attempting to fetch ncurses-5.7.tar.gz from ftp://ftp.chg.ru/pub/gnu/ncurses
--->  Verifying checksum(s) for ncursesw
--->  Extracting ncursesw
--->  Applying patches to ncursesw
--->  Configuring ncursesw
--->  Configuring ncursesw for architecture i386
--->  Building ncursesw
--->  Building ncursesw for architecture i386
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_pavelsumarokov_Desktop_xbmc-port-depends-read-only_dports_devel_ncursesw/work/ncurses-5.7-i386" && make all " returned error 2
Command output: cd man && make DESTDIR="" all
sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail >terminfo.5
cd include && make DESTDIR="" all
cat curses.head >curses.h
AWK=awk sh ./MKkey_defs.sh ./Caps >>curses.h
sh -c 'if test "cchar_t" = "cchar_t" ; then cat ./curses.wide >>curses.h ; fi'
cat ./curses.tail >>curses.h
sh ./MKhashsize.sh ./Caps >hashsize.h
AWK=awk sh ./MKncurses_def.sh ./ncurses_defs >ncurses_def.h
AWK=awk sh ./MKparametrized.sh ./Caps >parametrized.h
awk -f MKterm.h.awk ./Caps > term.h
sh ./edit_cfg.sh ../include/ncurses_cfg.h term.h
** edit: HAVE_TCGETATTR 1
** edit: HAVE_TERMIOS_H 1
** edit: HAVE_TERMIO_H 0
** edit: BROKEN_LINKER 0
cd ncurses && make DESTDIR="" all
awk -f ./tinfo/MKcodes.awk bigstrings=1 ./../include/Caps >codes.c
/usr/bin/gcc-4.0 -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -I./../include -I../include -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include -isysroot /Developer/SDKs/MacOSX10.4u.sdk -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG -I/opt/local/include/ncursesw -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386  --param max-inline-insns-single=1200  -no-cpp-precomp -DMAIN_PROGRAM ./tinfo/comp_hash.c -arch i386 -Wl,-search_paths_first  
In file included from ./../include/curses.h:142,
                 from ../ncurses/curses.priv.h:259,
                 from ./tinfo/comp_hash.c:42:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
In file included from ../ncurses/curses.priv.h:259,
                 from ./tinfo/comp_hash.c:42:
./../include/curses.h:340: error: conflicting types for 'wchar_t'
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdlib.h:92: error: previous declaration of 'wchar_t' was here
make[1]: *** [make_hash] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: ncurses ncursesw readline zlib
Error: Status 1 encountered during processing.

It's happening only with +universal option. I've downloaded ncurses-5.7 from ftp://ftp.chg.ru/pub/gnu/ncurses manually and source code doesn't contain curses.h file.

curses.h contains only in mac ports work folder for i386: /opt/local/var/macports/build/_Users_pavelsumarokov_Desktop_xbmc-port-depends-read-only_dports_devel_ncursesw/work/ncurses-5.7-i386/include

Where does ports take source files for ncurses-5.7-i386 from? I cannot find them in archive from ftp://ftp.chg.ru/pub/gnu/ncurses/
Reply
#11
File curses.h is generated from file curses.h.in containing these lines:
Code:
#if @NCURSES_WCHAR_T@
typedef unsigned short wchar_t@NCURSES_OK_WCHAR_T@;
#endif

#if @NCURSES_WINT_T@
typedef unsigned int wint_t@NCURSES_OK_WCHAR_T@;
#endif
File configure.in defines these variables
Code:
NCURSES_WCHAR_T=0
NCURSES_WINT_T=0
...
# use these variables to work around a defect in gcc's fixincludes.
NCURSES_OK_WCHAR_T=
NCURSES_OK_WINT_T=
I'm receiving curses.h with
Code:
#if 1
typedef unsigned short wchar_t;
#endif

#if 1
typedef unsigned int wint_t;
#endif
and these definitions are conflicting with definitions of wchar_t and wint_t in SDK.

I guess /work/ncurses-5.7-i386/include/curses.h should contain
Code:
#if 0
typedef unsigned short wchar_t;
#endif

#if 0
typedef unsigned int wint_t;
#endif
but cannot understand why it's configured wrong on my computer.

Digging into it...
Reply
#12
The configure script is looking for wchar_t declared in a header file. It may
fail to find it is there is some compile-error confusing the script. Your fragments
of logs shown before don't give any clues.
Reply
#13
ncursesw has been installed.

Never copy and paste 10.4 SDK to /Developer/SDKs folder manually! Most likely compiler was unable to find required header files because some important system variables didn't exist.

For those who don't have SDK 10.4 - don't download it separately. Use latest xcode_3.2.3_and_ios_sdk_4.0.2.dmg package available on Apple's website, open folder Packages from mounted "XCode and iPhone SDK" disk and find MacOSX10.4.Universal.pkg file there. Run it, chose /Developer folder and it will install SDK 10.4 universal to your /Developer/SDKs
Reply
#14
Pavel Wrote:ncursesw has been installed.

Never copy and paste 10.4 SDK to /Developer/SDKs folder manually! Most likely compiler was unable to find required header files because some important system variables didn't exist.

For those who don't have SDK 10.4 - don't download it separately. Use latest xcode_3.2.3_and_ios_sdk_4.0.2.dmg package available on Apple's website, open folder Packages from mounted "XCode and iPhone SDK" disk and find MacOSX10.4.Universal.pkg file there. Run it, chose /Developer folder and it will install SDK 10.4 universal to your /Developer/SDKs

LOL, pkgs and mpkgs can have pre and post flight scripts that run and setup up various bits. It's always best to install the packages using the package installer.
Reply
#15
Yeah!

XBMC is up and running on Mac OS 10.6.4

Thank you
Reply

Logout Mark Read Team Forum Stats Members Help
[MAC] port install libsdl issue - snow leopard0