[MacPorts] #41912: bastet @0.41: Undefined symbols "_wyx2pointer" (was: bastet @0.41 fails to build on 64-bit)
MacPorts
noreply at macports.org
Mon Dec 23 23:38:14 PST 2013
#41912: bastet @0.41: Undefined symbols "_wyx2pointer"
-----------------------+----------------------
Reporter: fluffy@… | Owner: sfiera@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Resolution: | Keywords:
Port: bastet |
-----------------------+----------------------
Changes (by ryandesign@…):
* owner: macports-tickets@… => sfiera@…
Old description:
> Clean build on a fresh install of MacPorts on OSX 10.9 (Retina MacBook
> Pro):
>
> :notice:build ---> Building bastet
> :debug:build Executing org.macports.build (bastet)
> :debug:build Environment: CPATH='/opt/local/include'
> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/.CC_PRINT_OPTIONS'
> LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
> MACOSX_DEPLOYMENT_TARGET='10.9'
> :debug:build Assembled command: 'cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41"
> && /usr/bin/make -j4 -w all PREFIX=/opt/local'
> :debug:build Executing command line: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41"
> && /usr/bin/make -j4 -w all PREFIX=/opt/local
> :info:build make: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41'
> :info:build gcc -L/opt/local/lib -lncurses -o bastet main.o game.o
> highscore.o bast.o
> :info:build Undefined symbols for architecture x86_64:
> :info:build "_wyx2pointer", referenced from:
> :info:build _eval_pos in bast.o
> :info:build _wcheck_block_pos in bast.o
> :info:build _wset_block in bast.o
> :info:build ld: symbol(s) not found for architecture x86_64
> :info:build clang: error: linker command failed with exit code 1 (use -v
> to see invocation)
> :info:build make: *** [bastet] Error 1
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41'
> :info:build Command failed: cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41"
> && /usr/bin/make -j4 -w all PREFIX=/opt/local
> :info:build Exit code: 2
> :error:build org.macports.build for port bastet returned: command
> execution failed
> :debug:build Error code: CHILDSTATUS 59015 2
> :debug:build Backtrace: command execution failed
> while executing
> "system -nice 0 $fullcmdstring"
> ("eval" body line 1)
> invoked from within
> "eval system $notty $nice \$fullcmdstring"
> invoked from within
> "command_exec build"
> (procedure "portbuild::build_main" line 8)
> invoked from within
> "$procedure $targetname"
> :info:build Warning: targets not executed for bastet:
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
> :notice:build Please see the log file for port bastet for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/main.log
New description:
Clean build on a fresh install of MacPorts on OSX 10.9 (Retina MacBook
Pro):
{{{
:notice:build ---> Building bastet
:debug:build Executing org.macports.build (bastet)
:debug:build Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.9'
:debug:build Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41"
&& /usr/bin/make -j4 -w all PREFIX=/opt/local'
:debug:build Executing command line: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41"
&& /usr/bin/make -j4 -w all PREFIX=/opt/local
:info:build make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41'
:info:build gcc -L/opt/local/lib -lncurses -o bastet main.o game.o
highscore.o bast.o
:info:build Undefined symbols for architecture x86_64:
:info:build "_wyx2pointer", referenced from:
:info:build _eval_pos in bast.o
:info:build _wcheck_block_pos in bast.o
:info:build _wset_block in bast.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v
to see invocation)
:info:build make: *** [bastet] Error 1
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41'
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/work/bastet-0.41"
&& /usr/bin/make -j4 -w all PREFIX=/opt/local
:info:build Exit code: 2
:error:build org.macports.build for port bastet returned: command
execution failed
:debug:build Error code: CHILDSTATUS 59015 2
:debug:build Backtrace: command execution failed
while executing
"system -nice 0 $fullcmdstring"
("eval" body line 1)
invoked from within
"eval system $notty $nice \$fullcmdstring"
invoked from within
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for bastet:
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
:notice:build Please see the log file for port bastet for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_bastet/bastet/main.log
}}}
--
Comment:
`wyx2pointer` is inline, so it may just need `-std=gnu89` added to
`CFLAGS`. Unfortunately the port doesn't obey `${configure.cflags}` or
other MacPorts variables, is not UsingTheRightCompiler or `-arch` flags,
doesn't have a universal variant, ...
0.43 is also available, which is a complete rewrite of the code, so that
may be a more promising solution to explore.
--
Ticket URL: <https://trac.macports.org/ticket/41912#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list