﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1289	Problem compiling fpack in cfitsio	Michael Wood-Vasey	Paul Price	"ld: duplicate symbol _tempfilename in fpackutil.o and fpack.o

is the error I get when compiling fpack.  This looks like an issue of a variable being defined in global scope and then redefined in local scope.  Both fpackutil.c and fpack.c import fpack.h which defines a 'tempfilename' at the global level.  

char tempfilename[SZ_STR];

But within fpackutil.c (which ""#include fpack.h"") there is 

char	dtype[8], dimen[100], tempfilename[30];

with in the function 'fp_test'.  I think my compiling is particularly picky about this, or alternatively is not setting up separate variables for the globally-scoped tempfilename and the locally-scoped tempfilename.  

As a point of software design, I don't think generic global temp variables should really be defined like this because exactly these things are going to happen.  But that's obviously beyond the scope of this ticket.

But on a more relevant note; after this final failure to compile the binaries, 'pschecklibs' now passes 'cfitsio' because it does find the libraries.  So this leaves an incomplete installation without people knowing about it."	defect	closed	normal		fits	current	normal	fixed	cfitsio	magnier
