#66718 closed defect (fixed)

mathomatic fails to respect Macports archflags

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: powerpc, rosetta, snowleopard Cc:
Port: mathomatic

Description (last modified by barracuda156)

And fails to build on Rosetta:

/usr/bin/gcc-4.2 -Os -Wall -Wshadow -Wno-char-subscripts  -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE  -I/opt/local/include  -c -o list.o list.c
/usr/bin/gcc-4.2 -Os -Wall -Wshadow -Wno-char-subscripts  -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE  -I/opt/local/include  -c -o gcd.o gcd.c
/usr/bin/gcc-4.2 -Os -Wall -Wshadow -Wno-char-subscripts  -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE  -I/opt/local/include  -c -o factor_int.o factor_int.c
/usr/bin/gcc-4.2 -Os -Wall -Wshadow -Wno-char-subscripts  -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE  -L/opt/local/lib main.o globals.o am.o solve.o help.o parse.o cmds.o simplify.o factor.o super.o unfactor.o poly.o diff.o integrate.o complex.o complex_lib.o list.o gcd.o factor_int.o -lm  -ledit   -o mathomatic
ld: warning: in /opt/local/lib/libedit.dylib, file was built for ppc7400 which is not the architecture being linked (x86_64)
Undefined symbols:
  "_write_history", referenced from:
      _exit_program in main.o
  "_rl_inhibit_completion", referenced from:
      _main in main.o
  "_rl_initialize", referenced from:
      _main in main.o
  "_add_history", referenced from:
      _get_string in am.o
      _push_en in cmds.o
      _push_cmd in cmds.o
  "_stifle_history", referenced from:
      _main in main.o
  "_readline", referenced from:
      _get_string in am.o
     (maybe you meant: _readline_enabled)
  "_read_history", referenced from:
      _main in main.o
  "_using_history", referenced from:
      _main in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [mathomatic] Error 1

Change History (2)

comment:1 Changed 16 months ago by barracuda156

Description: modified (diff)

comment:2 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 63f7e0bf3c7889ead66299d594ee159fc43bdb7e/macports-ports (master):

mathomatic: Use the right -arch flags

Closes: #66718

Note: See TracTickets for help on using tickets.