Opened 14 years ago
Last modified 14 years ago
#24789 closed defect
Same problem building almost any package — at Version 1
Reported by: | knithx@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | blair@…, landonf@…, ryandesign@… | |
Port: | zlib m4 |
Description (last modified by jmroot (Joshua Root))
sudo port install bison ---> Computing dependencies for m4 ---> Building m4 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_m4/work/m4-1.4.14" && /usr/bin/make -j2 all " returned error 2 Command output: _add_include_directory in path.o _include_env_init in path.o _lookup_symbol in symtab.o _lookup_symbol in symtab.o _lookup_symbol in symtab.o "_xprintf", referenced from: _usage in m4.o _usage in m4.o _usage in m4.o "_mkstemp_safer", referenced from: _mkstemp_helper in builtin.o "_unregister_temp_file", referenced from: _make_room_for in output.o _insert_diversion_helper in output.o "_rpl_optarg", referenced from: _main in m4.o _main in m4.o _main in m4.o _main in m4.o _main in m4.o _main in m4.o _main in m4.o _main in m4.o _main in m4.o _main in m4.o ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: *** [m4] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Unable to upgrade port: 1 Error: Unable to execute port: upgrade m4 failed Before reporting a bug, first run the command again with the -d flag to get complete output.
sudo port install ffmpeg Password: ---> Computing dependencies for zlib ---> Building zlib Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make -j2 all " returned error 2 Command output: _test_large_deflate in example.o _test_large_deflate in example.o _test_large_deflate in example.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [example] Error 1 make: *** Waiting for unfinished jobs.... ld: warning: in libz.a, file is not of required architecture Undefined symbols: "_gzopen", referenced from: _file_uncompress in minigzip.o _file_compress in minigzip.o _main in minigzip.o "_gzerror", referenced from: _gz_uncompress in minigzip.o _gz_compress in minigzip.o "_gzwrite", referenced from: _gz_compress in minigzip.o "_gzread", referenced from: _gz_uncompress in minigzip.o "_gzdopen", referenced from: _main in minigzip.o _main in minigzip.o _main in minigzip.o "_gzclose", referenced from: _gz_uncompress in minigzip.o _gz_compress in minigzip.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [minigzip] Error 1 Error: Unable to upgrade port: 1 Error: Unable to execute port: upgrade zlib failed Before reporting a bug, first run the command again with the -d flag to get complete output.
---> Building zlib Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make -j2 all " returned error 2 Command output: _test_large_deflate in example.o _test_large_deflate in example.o _test_large_deflate in example.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [example] Error 1 make: *** Waiting for unfinished jobs.... ld: warning: in libz.a, file is not of required architecture Undefined symbols: "_gzopen", referenced from: _file_uncompress in minigzip.o _file_compress in minigzip.o _main in minigzip.o "_gzerror", referenced from: _gz_uncompress in minigzip.o _gz_compress in minigzip.o "_gzwrite", referenced from: _gz_compress in minigzip.o "_gzread", referenced from: _gz_uncompress in minigzip.o "_gzdopen", referenced from: _main in minigzip.o _main in minigzip.o _main in minigzip.o "_gzclose", referenced from: _gz_uncompress in minigzip.o _gz_compress in minigzip.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [minigzip] Error 1 Error: Unable to upgrade port: 1 Error: Unable to execute port: upgrade tiff failed Before reporting a bug, first run the command again with the -d flag to get complete output.
And so on with others.
What am I doing wrong? It is my fault or Macports'?
Thanks.
Change History (1)
comment:1 Changed 14 years ago by jmroot (Joshua Root)
Cc: | blair@… landonf@… ryandesign@… added |
---|---|
Description: | modified (diff) |
Keywords: | failure build undefined symbols crash removed |
Port: | m4 added |
Priority: | High → Normal |
Note: See
TracTickets for help on using
tickets.
Please remember to preview and use WikiFormatting, and cc the maintainers. As per the ticket guidelines, the High priority is reserved for the use of MacPorts team members.
You need to provide debug output, as the message at the end of each of your quotes says.