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

MacPorts noreply at macports.org
Wed Oct 31 18:44:11 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 ehesan@…):

 Could you please explain a bit how to  "prepend the file
 openmotif-2.3.3/tools/wml/wmluiltok.l with the directive %option main"  ?
 I am novice here ..  and need to install opnemotif. I am facing exactly
 the same problem as it has been reported here for MacOS 10.8.2.
 Thanks a lot.

 Replying to [comment:2 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:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list