Opened 11 years ago

Closed 11 years ago

#38011 closed defect (worksforme)

Openmotif 2.3.4_1 fails to build on Mac 10.8.2

Reported by: ozisik@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: openmotif

Description (last modified by mf2k (Frank Schima))

The first error was that clang could not find "wmluiltok.o". Therefore, I manually added the correct address for it.

The new error is as follows when I try to run the clang command from shell:

$ sudo /usr/bin/clang -O2 -arch x86_64 -arch i386 -Wall -g -fno-strict-aliasing -Wno-unused -Wno-comment -fno-tree-ter -I/opt/local/include -I/opt/local/include/freetype2 -arch x86_64 -arch i386 -o wmluiltok /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_openmotif/openmotif/work/motif-2.3.4/tools/wml/wmluiltok.o  -L/opt/local/lib /opt/local/lib/libXp.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libiconv.dylib /opt/local/lib/libXft.dylib /opt/local/lib/libfontconfig.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libfreetype.dylib -lbz2 /opt/local/lib/libXrender.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libxcb.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib /opt/local/lib/libjpeg.dylib /opt/local/lib/libpng15.dylib -lz
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am not sure what are the undefined symbols for architecture x86_64 are. Any ideas?

Change History (5)

comment:1 Changed 11 years ago by ozisik@…

Solved: I found from other discussions that if you add "%option main" as the first line in wmluiltok.l, then re run "sudo port install openmotif", everything works out.

comment:2 Changed 11 years ago by jmroot (Joshua Root)

Keywords: openmotif 2.3.4 removed
Port: openmotif added

comment:3 Changed 11 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

I have openmotif @2.3.4_1+universal installed on OS X 10.8.2 without having had to change anything. Please attach the main.log showing the problem. If you believe a change needs to be made to the software, please attach a patch, and ideally provide a link to the upstream bug report about the problem.

comment:5 Changed 11 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed

No response from reporter and it builds on the buildbot.

Note: See TracTickets for help on using tickets.