[MacPorts] #24603: yajl universal build fails
MacPorts
noreply at macports.org
Thu Apr 22 15:24:06 PDT 2010
#24603: yajl universal build fails
-------------------------------------+--------------------------------------
Reporter: ryandesign@… | Owner: benjaminlyu@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Keywords: | Port: yajl
-------------------------------------+--------------------------------------
Comment(by benjaminlyu@…):
I'm still track down a full fix.
But yajl's configure script is not the normal configure we would expect,
it is a ruby script.
So by adding the following to the Portfile, i am able to get through the
configure stage:
{{{
configure.universal_args-delete --disable-dependency-tracking
}}}
But I now am running into build problems:
{{{
Linking C executable yajl_test
ld warning: in CMakeFiles/yajl_test.dir/yajl_test.c.o, file is not of
required architecture
ld warning: in ../yajl-1.0.9/lib/libyajl_s.a, file is not of required
architecture
Undefined symbols for architecture ppc:
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccLRHPYD.out (No such file or
directory)
make[3]: *** [test/yajl_test] Error 1
make[2]: *** [test/CMakeFiles/yajl_test.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [distro] Error 2
}}}
It looks like it's been seen before:
http://trac.macports.org/ticket/14108
Barring that, I can cd into the work directory and actually run `make`
with success:
{{{
bash-3.2# make
Scanning dependencies of target yajl
[ 5%] Building C object src/CMakeFiles/yajl.dir/yajl.c.o
[ 11%] Building C object src/CMakeFiles/yajl.dir/yajl_lex.c.o
[ 17%] Building C object src/CMakeFiles/yajl.dir/yajl_parser.c.o
[ 23%] Building C object src/CMakeFiles/yajl.dir/yajl_buf.c.o
[ 29%] Building C object src/CMakeFiles/yajl.dir/yajl_encode.c.o
[ 35%] Building C object src/CMakeFiles/yajl.dir/yajl_gen.c.o
[ 41%] Building C object src/CMakeFiles/yajl.dir/yajl_alloc.c.o
Linking C shared library ../yajl-1.0.9/lib/libyajl.dylib
[ 41%] Built target yajl
Scanning dependencies of target yajl_s
[ 47%] Building C object src/CMakeFiles/yajl_s.dir/yajl.c.o
[ 52%] Building C object src/CMakeFiles/yajl_s.dir/yajl_lex.c.o
[ 58%] Building C object src/CMakeFiles/yajl_s.dir/yajl_parser.c.o
[ 64%] Building C object src/CMakeFiles/yajl_s.dir/yajl_buf.c.o
[ 70%] Building C object src/CMakeFiles/yajl_s.dir/yajl_encode.c.o
[ 76%] Building C object src/CMakeFiles/yajl_s.dir/yajl_gen.c.o
[ 82%] Building C object src/CMakeFiles/yajl_s.dir/yajl_alloc.c.o
Linking C static library ../yajl-1.0.9/lib/libyajl_s.a
[ 82%] Built target yajl_s
Scanning dependencies of target yajl_test
[88%] Building C object test/CMakeFiles/yajl_test.dir/yajl_test.c.o
Linking C executable yajl_test
[ 88%] Built target yajl_test
Scanning dependencies of target json_reformat
[ 94%] Building C object
reformatter/CMakeFiles/json_reformat.dir/json_reformat.c.o
Linking C executable json_reformat
[ 94%] Built target json_reformat
Scanning dependencies of target json_verify
[100%] Building C object
verify/CMakeFiles/json_verify.dir/json_verify.c.o
Linking C executable json_verify
[100%] Built target json_verify
}}}
--
Ticket URL: <http://trac.macports.org/ticket/24603#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list