Notice: OSX build system changes
#1
The OSX build system has been changed. Say bye-bye MacPorts Smile

See README.osx for details.
Reply
#2
Hi davilla,

I'm trying to adjust my build script for the recent changes. I'm having issues getting the osx-depends compiled.

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin

XCode 3.2.5
OS X 10.6.6

Compiling Samba stops with the following error:

Code:
Compiling lib/ldb/modules/paged_results.c
Compiling lib/ldb/modules/sort.c
Compiling lib/ldb/modules/asq.c
Compiling libsmb/libsmb_thread_impl.c
Compiling libsmb/libsmb_thread_posix.c
creating /Volumes/dStore/source-code/XBMC-git/tools/osx/osx-depends/samba/samba-3.5.6/source3/exports/libsmbclient.syms
Compiling ../lib/talloc/talloc.c
Linking non-shared library bin/libtalloc.a
creating /Volumes/dStore/source-code/XBMC-git/tools/osx/osx-depends/samba/samba-3.5.6/source3/exports/libtalloc.syms
Linking shared library bin/libtalloc.dylib.2
Compiling ../lib/tdb/common/tdb.c
Compiling ../lib/tdb/common/dump.c
Compiling ../lib/tdb/common/transaction.c
Compiling ../lib/tdb/common/error.c
Compiling ../lib/tdb/common/traverse.c
Compiling ../lib/tdb/common/freelist.c
Compiling ../lib/tdb/common/freelistcheck.c
Compiling ../lib/tdb/common/io.c
Compiling ../lib/tdb/common/lock.c
Compiling ../lib/tdb/common/open.c
Compiling ../lib/tdb/common/check.c
Linking non-shared library bin/libtdb.a
creating /Volumes/dStore/source-code/XBMC-git/tools/osx/osx-depends/samba/samba-3.5.6/source3/exports/libtdb.syms
Linking shared library bin/libtdb.dylib.1
Compiling ../nsswitch/libwbclient/wbclient.c
Compiling ../nsswitch/libwbclient/wbc_util.c
Compiling ../nsswitch/libwbclient/wbc_pwd.c
Compiling ../nsswitch/libwbclient/wbc_idmap.c
Compiling ../nsswitch/libwbclient/wbc_sid.c
Compiling ../nsswitch/libwbclient/wbc_guid.c
Compiling ../nsswitch/libwbclient/wbc_pam.c
Compiling ../nsswitch/libwbclient/wb_reqtrans.c
Compiling ../nsswitch/libwbclient/wbc_async.c
Compiling ../nsswitch/wb_common.c
Linking non-shared library bin/libwbclient.a
Linking shared library bin/libsmbclient.dylib.0
ld: in bin/libtalloc.a, archive has no table of contents
collect2: ld returned 1 exit status
make[1]: *** [bin/libsmbclient.dylib.0] Error 1
make: *** [samba-3.5.6/source3/bin/libsmbclient.dylib] Error 2

Any ideas what might cause the issue?

Regards,
riker
Reply
#3
not a clue, you would have to pastebin config.log from samba's configure.
Reply
#4
I just finished compiling osx-depends like 30s ago worked fine (using the exact steps at https://github.com/xbmc/xbmc/raw/master/README.osx).

Xcode: 3.2.1
OS X: 10.6.6
Reply
#5
Well - the config.log in the source3 folder of samba has about 3.5 MB. Too much for pastebin.com or pastie.org.

I got a few steps further by initiating
Code:
ranlib tools/osx/osx-depends/samba/sambe-3.5.6/source3/bin/*.a

After that I continued the make process. It still failed, but the libs were build. I then installed the samba files via
Code:
make -C tools/osx/osx-depends/samba .installed
followed by another
Code:
make -C tools/osx/osx-depends
run

It is building mysql libs right now.
Reply
#6
riker77 Wrote:Well - the config.log in the source3 folder of samba has about 3.5 MB. Too much for pastebin.com or pastie.org.

I got a few steps further by initiating
Code:
ranlib tools/osx/osx-depends/samba/sambe-3.5.6/source3/bin/*.a

After that I continued the make process. It still failed, but the libs were build. I then install the samba files via
Code:
make -C tools/osx/osx-depends/samba .installed
followed by another
Code:
make -C tools/osx/osx-depends
run

It is building mysql libs right now.

interested in the top 100 or so lines.

EDIT: config.mk forces ranlib to the sdk version

export RANLIB=${platform_bin_path}/ranlib
Reply
#7
config.log from my samba build.

I found another problem on my system. /opt/local was linked to a recent version of macports, allthough not in PATH some packages picked it up. I removed the link and did

Code:
make -C tools/osx/osx-depends clean

followed by a

Code:
make -C tools/osx/osx-depends distclean

A new build still fails within samba.

On my system /Developer/usr/bin/libtool and /usr/bin/libtool are the same. I do not know if changing config.mk for ranlib would help.
Reply
#8
Trouble with the build system.

I got the dependencies built - in two runs:
Code:
make -C tools/osx/osx-depends
export PATH=/Users/Shared/xbmc-depends/osx-10.4_i386/bin:$PATH
make -C tools/osx/osx-depends
as it could not find help2man while building autoconf, I believe it was.

Now, I am stuck at
Code:
make clean
make xcode_depends
as there is no Makefile in my git clone (only a Makefile.in) and bootstrap and configure both fail. configure does not agree with the 32-bit libssh in /Users/Shared it seems...

What should I do to get a Makefile?

P.S. It is actually the PVR branch I am trying to build, but I am constantly merging from xbmc/master.
Reply
#9
As it says in the readme:

make -C tools/osx/osx-depends/xbmc

That bootstraps + configures.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#10
Thanks for helping the blind.

I had completely missed the final /xbmc in
make -C tools/osx/osx-depends/xbmc
-- dismissing the line as a copy/paste typo from section 3.1...
Reply

Logout Mark Read Team Forum Stats Members Help
Notice: OSX build system changes0