[MacPorts] #36551: openmotif @2.3.3 -- Undefined symbols for architecture x86_64: "_main"

MacPorts noreply at macports.org
Tue Oct 16 11:35:49 PDT 2012


#36551: openmotif @2.3.3 -- Undefined symbols for architecture x86_64:   "_main"
------------------------+--------------------------------
  Reporter:  ggpolo@…   |      Owner:  macports-tickets@…
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.1.2
Resolution:             |   Keywords:
      Port:  openmotif  |
------------------------+--------------------------------

Comment (by ggpolo@…):

 I looked into this again and now I managed to solve the compilation
 problem. The problem is that the offending object file wmluiltok.o, which
 is generated from wmluiltok.c, may not have a main function after all
 (just like what the linker says). The file wmluiltok.c is generated by the
 flex program, which doesn't generate a main function except if the flex
 executable is actually a link to the lex binary (which generates the main
 function by default). I would think that nowadays most people moved to
 flex, but maybe it is not the case and openmotif prefers to assume lex is
 being used ?

 Anyway, the (or, better, one) solution is to prepend the file
 openmotif-2.3.3/tools/wml/wmluiltok.l with the directive %option main

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


More information about the macports-tickets mailing list