Bug 142472 - [patch] port biology/crimap exits immediately on amd64
Summary: [patch] port biology/crimap exits immediately on amd64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Philip M. Gollucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 16:40 UTC by Edmund Sumbar
Modified: 2010-01-16 18:00 UTC (History)
0 users

See Also:


Attachments
file.diff (260 bytes, patch)
2010-01-08 16:40 UTC, Edmund Sumbar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Edmund Sumbar 2010-01-08 16:40:01 UTC
When installed from ports on an amd64 architecture, biology/crimap exits immediately with the following message.

Your compiler uses a different size for integers; see documentation
for changes that will have to be made in the source code

The documentation referred to is http://linkage.rockefeller.edu/soft/crimap/tech6.html. Although the document addresses the case where an int is 16 bits while a long is 32 bits, on amd64/GCC, the difference is that an int is 32 bits and a long is 64 bits.

The message is printed by the program after comparing the size of an ALLOC to the size of an INT. Both ALLOC and INT are typdef'ed in defs.h.

Fix: Change the typedef of INT from int to long in file defs.h. A patch is included.

Patch attached with submission follows:
How-To-Repeat: Running crimap without arguments on amd64 will cause the program to terminate immediately.
Comment 1 Philip M. Gollucci freebsd_committer freebsd_triage 2010-01-14 22:27:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pgollucci

I'll take it.
Comment 2 Philip M. Gollucci freebsd_committer freebsd_triage 2010-01-16 17:54:50 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2010-01-16 17:55:14 UTC
pgollucci    2010-01-16 17:54:38 UTC

  FreeBSD ports repository

  Modified files:
    biology/crimap       Makefile 
  Added files:
    biology/crimap/files patch-defs.h patch-our_allo.c 
                         patch-our_orde.c 
  Log:
  - Fix on amd64
  
  PR:             ports/142472
  Submitted by:   Edmund Sumbar <esumbar@ualberta.ca>
  
  Revision  Changes    Path
  1.9       +1 -0      ports/biology/crimap/Makefile
  1.1       +11 -0     ports/biology/crimap/files/patch-defs.h (new)
  1.1       +24 -0     ports/biology/crimap/files/patch-our_allo.c (new)
  1.1       +24 -0     ports/biology/crimap/files/patch-our_orde.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"