Opened 13 years ago

Closed 13 years ago

#29591 closed defect (fixed)

fossil: i386 build fails on Snow Leopard

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: fossil

Description

Trying to build fossil with the universal variant fails:

Undefined symbols for architecture i386:
  "_fossil_fopen$UNIX2003", referenced from:
      _do_meta_command in shell.o
      _do_meta_command in shell.o
      _do_meta_command in shell.o
      _do_meta_command in shell.o
      _sqlite3_shell in shell.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccijU7Dz.out (No such file or directory)
make: *** [fossil] Error 1

Attachments (2)

main.log (31.2 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
fossil.diff (362 bytes) - added by ci42 13 years ago.

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 in reply to:  description Changed 13 years ago by ci42

Replying to ryandesign@…:

Trying to build fossil with the universal variant fails:

Please try the attached patch.

Changed 13 years ago by ci42

Attachment: fossil.diff added

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: fossil: universal variant failsfossil: i386 build fails on Snow Leopard

That does help. But I see now the problem is with the i386 build (on Snow Leopard), regardless whether I'm building universal or just changing build_arch.

The proposed fix of setting MACOSX_DEPLOYMENT_TARGET to 10.5 when it is 10.6 does seem to work, but the problem would probably happen again on Lion when it'll be 10.7. Is there no way to make the software build correctly for i386 when MACOSX_DEPLOYMENT_TARGET is greater than 10.5?

comment:3 in reply to:  2 Changed 13 years ago by ci42

Replying to ryandesign@…:

That does help. But I see now the problem is with the i386 build (on Snow Leopard), regardless whether I'm building universal or just changing build_arch.

The proposed fix of setting MACOSX_DEPLOYMENT_TARGET to 10.5 when it is 10.6 does seem to work, but the problem would probably happen again on Lion when it'll be 10.7. Is there no way to make the software build correctly for i386 when MACOSX_DEPLOYMENT_TARGET is greater than 10.5?

This issue has already been fixed upstream (see http://www.fossil-scm.org/fossil/ci/e94c1e9068). The fix is included in #29622.

comment:4 Changed 13 years ago by ci42

Resolution: fixed
Status: newclosed

fixed in r79813

Note: See TracTickets for help on using tickets.