[mythtv-users] OS X Build failure

Jean-Yves Avenard jyavenard at gmail.com
Tue Apr 2 01:22:33 UTC 2013


Hi


On 1 April 2013 21:13, Guillaume Membré <guillaume.ml at gmail.com> wrote:

> Thanks for your update. I tried it and I got the following error :
> $ ./osx-packager-qtsdk.pl -gitrev fixes/0.26 -qtsrc 4.8.4 -universal
> -verbose -nohead -force -noparallel
> [...]
> [ 66%] Built target partition
> Scanning dependencies of target sql
> [ 67%] Building C object sql/CMakeFiles/sql.dir/__/sql-common/client.c.o
>
> /Users/jumper/Workspace/MythTV/build/.osx-packager/src/mysql-5.5.24/sql-common/client.c:1433:1:
> error: conflicting types for 'unpack_fields'
> unpack_fields(MYSQL_DATA *data,MEM_ROOT *alloc,uint fields,
> ^
>
> /Users/jumper/Workspace/MythTV/build/.osx-packager/build/include/sql_common.h:76:14:
> note: previous declaration is here
> MYSQL_FIELD *unpack_fields(MYSQL *mysql, MYSQL_DATA *data,MEM_ROOT *alloc,
>              ^
>
> /Users/jumper/Workspace/MythTV/build/.osx-packager/src/mysql-5.5.24/sql-common/client.c:3820:35:
> error: too few arguments to function call, expected 6, have 5
>                                     mysql->server_capabilities)))
>                                                               ^
>
> /Users/jumper/Workspace/MythTV/build/.osx-packager/build/include/sql_common.h:76:1:
> note: 'unpack_fields' declared here
> MYSQL_FIELD *unpack_fields(MYSQL *mysql, MYSQL_DATA *data,MEM_ROOT *alloc,
> ^
> 2 errors generated.
> make[2]: *** [sql/CMakeFiles/sql.dir/__/sql-common/client.c.o] Error 1
> make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
> make: *** [all] Error 2
> [osx-pkg] Failed system call: " /usr/bin/make all " with error code 2
> Died at ./osx-packager-qtsdk.pl line 1389.
> ./osx-packager-qtsdk.pl -gitrev fixes/0.26 -qtsrc 4.8.4 -universal
> -verbose    413,56s user 104,56s system 89% cpu 9:36,42 total
>
> I solved this problem by upgrading mysql from 5.5.24 to 5.5.30
>

you're issue was because you tried to build a newer version of mysql when
you still had the older (5.1) headers in build/include.

The build script was never designed for incremental upgrades on the
dependencies. It's designed to build from a clean slate.

So either manually cleanup the bits that are going to be upgraded; or
delete the build script alltogether and clean up the .osx-packager/src
folders. You can safely delete all folders but the git one
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130402/4088c3f0/attachment.html>


More information about the mythtv-users mailing list