[MacPorts] #25716: liblastfm-0.3.0 fails to build: configure couldn't read Makefile

MacPorts noreply at macports.org
Sun Jul 18 01:54:40 PDT 2010


#25716: liblastfm-0.3.0 fails to build: configure couldn't read Makefile
---------------------------------+------------------------------------------
 Reporter:  macports@…           |       Owner:  michaelld@…           
     Type:  defect               |      Status:  new                   
 Priority:  Normal               |   Milestone:                        
Component:  ports                |     Version:  1.9.1                 
 Keywords:                       |        Port:  liblastfm             
---------------------------------+------------------------------------------

Comment(by macports@…):

 find . -name "Makefile*" returned:
 {{{
 ./admin/Makefile.rb
 ./Makefile
 }}}
 I will not add the tar because your fix seems to work. With your trial fix
 configure runs fine and compile starts. But compile fails with:
 {{{
 cd src && /usr/bin/make
 ...
 /usr/bin/g++-4.2 -headerpad_max_install_names -L/opt/local/lib -arch
 x86_64 -arch -Xarch_x86_64 -mmacosx-version-min=10.5 -single_module
 -dynamiclib -compatibility_version      0.3 -current_version    0.3.0
 -install_name     liblastfm.0.dylib
 g++-4.2: Invalid arch name : -Xarch_x86_64
 make[1]: *** [../_bin/liblastfm.0.3.0.dylib] Error 1
 make: *** [__src] Error 2
 shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_liblastfm/work/liblastfm-0.3.0"
 && /usr/bin/make -j2 all " returned error 2
 Error: Target org.macports.build returned: shell command failed
 Warning: the following items did not execute (for liblastfm):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 Log for liblastfm is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_liblastfm/main.log
 Error: Status 1 encountered during processing.
 }}}

 In src/Makefile I changed:
 {{{
 LFLAGS        = -headerpad_max_install_names -L/opt/local/lib -arch x86_64
 -arch -Xarch_x86_64 -mmacosx-version-min=10.5 -single_module -dynamiclib
 -compatibility_version      0.3 -current_version    0.3.0 -install_name
 liblastfm.0.dylib
 }}}
 to
 {{{
 LFLAGS        = -headerpad_max_install_names -L/opt/local/lib -arch x86_64
 -Xarch_x86_64 -mmacosx-version-min=10.5 -single_module -dynamiclib
 -compatibility_version      0.3 -current_version    0.3.0 -install_name
 liblastfm.0.dylib
 }}}
 (note the removed stray "-arch")

 Also, I needed to change the LFLAGS in demos/Makefile, tests/Makefile and
 src/fingerprint/Makefile

 After that liblastfm build successfully.

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


More information about the macports-tickets mailing list