[MacPorts] #30697: gperf: C compiler cannot create executables because of libnotify (was: gperf: C compiler cannot create executables)

MacPorts noreply at macports.org
Fri Aug 12 11:19:16 PDT 2011


#30697: gperf: C compiler cannot create executables because of libnotify
-----------------------------------+----------------------------------------
 Reporter:  will.pearse@…          |       Owner:  mcalhoun@…           
     Type:  defect                 |      Status:  new                  
 Priority:  Normal                 |   Milestone:                       
Component:  ports                  |     Version:  2.0.1                
 Keywords:  lion                   |        Port:  gperf libnotify      
-----------------------------------+----------------------------------------
Changes (by ryandesign@…):

 * cc: jeremyhu@… (added)
  * port:  gperf => gperf libnotify


Comment:

 That config.log says:
 {{{
 configure:2046: checking for C compiler default output file name
 configure:2073: /Developer/usr/bin/llvm-gcc-4.2 -pipe -O2 -arch i386
 -I/opt/local/include -L/opt/local/lib -arch i386 conftest.c  >&5
 ld: in /opt/local/lib/libnotify.dylib, file was built for unsupported file
 format which is not the architecture being linked (i386) for architecture
 i386
 }}}
 Aha! This is very interesting... It seems that it's trying to use
 libnotify. And on your system libnotify is presumably only installed for
 x86_64, so it can't be used from i386. The thing is, there is no reason
 why gperf should be trying to use libnotify. Furthermore, you are on Lion,
 and the libnotify port cannot be installed on Lion; it was disabled
 because its presence was known to cause build failures in other ports. See
 r79720. Is it possible that you had installed the libnotify port on Snow
 Leopard, then upgraded to Lion, then did not uninstall libnotify? Or that
 you installed libnotify on Lion before r79720 was committed on June 23? Or
 that you followed the steps listed in the "dangerous workaround" in
 r79720?

 Either way I think the solution will be to uninstall libnotify. If you
 followed the "dangerous workaround" to get libnotify installed in the
 first place, you'll have to return to those instructions to see how to
 properly uninstall it now. Otherwise, if it's just a leftover from Snow
 Leopard, or Lion before June 23, you can just `sudo port uninstall
 libnotify` . Then `sudo port clean gperf` and try again.

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


More information about the macports-tickets mailing list