[MacPorts] #24789: Same problem building almost any package

MacPorts noreply at macports.org
Wed May 5 00:52:27 PDT 2010


#24789: Same problem building almost any package
---------------------------------------------------+------------------------
 Reporter:  knithx@…                               |       Owner:  macports-tickets@…                   
     Type:  defect                                 |      Status:  new                                  
 Priority:  High                                   |   Milestone:                                       
Component:  ports                                  |     Version:  1.8.2                                
 Keywords:  failure build undefined symbols crash  |        Port:  zlib                                 
---------------------------------------------------+------------------------
 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.

-- 
Ticket URL: <http://trac.macports.org/ticket/24789>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list