[MacPorts] #25466: mapm3 03.0, Revision 3, problem in calling int and log

MacPorts noreply at macports.org
Wed Jun 30 11:30:15 PDT 2010


#25466: mapm3 03.0, Revision 3, problem in calling int and log
-------------------------------+--------------------------------------------
 Reporter:  heckel@…           |       Owner:  ryandesign@…           
     Type:  defect             |      Status:  assigned               
 Priority:  Normal             |   Milestone:                         
Component:  ports              |     Version:  1.9.1                  
 Keywords:  mapmaker           |        Port:  mapm3                  
-------------------------------+--------------------------------------------

Comment(by heckel@…):

 I don't think either problem is in the source code, because they do not
 arise when running the Windows version.

 Now I think the first problem is with randnum(), not the conversion of the
 type from real to integer.  I'm not sure the correct random number
 generator is being used.

 In line 8 of the patch-Makefile, perhaps
 {{{
  -DUSE_RAND48
 }}}
 should be replaced by
 {{{
  -DUSE_DRAND48
 }}}

 since line 204-5 of the original system.h dealing with which random number
 generator to use, read as follows
 {{{
 #ifdef _SYS_AUX
 #define USE_DRAND48
 }}}

 or maybe patch-system.h needs to have
 {{{
 -#ifdef _SYS_AUX
 +#ifdef _SYS_DARWIN
 #define USE_DRAND48

 }}}

 since the patch-system.h doesn't seem to have any changes to the random
 number generators for DARWIN.

 I'm sorry to sound so stupid, I just learned what a patch file is today,
 and found them under the mapm3 port, and have been comparing the Mapmaker
 source files with the patch files on the MacPort site.  I installed
 MacPort specifically to run Mapmaker and have no other experience with it,
 and very little experience with unix and C.

-- 
Ticket URL: <http://trac.macports.org/ticket/25466#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list