[clean-list] Compile Error in CVS

Brent Fulgham bfulgham@debian.org
Tue, 25 May 2004 20:01:47 -0700


When attempting to build from CVS sources, I ran into this error:

Generating code for backend
Linking cocl
backendC/CleanCompilerSources/backend.a(typeconv_2.o)(.text+0x1160): 
In function `ListTypes':
: multiple definition of `ListTypes'
backendC/CleanCompilerSources/backend.a(typechecker_2.o)(.text+0x0): 
first defined here
collect2: ld returned 1 exit status
brent@hopper:~/projects/clean-2.1.0$ ls src/compiler/backendC/

Reviewing both typeconv_2.c and typechecker_2.c I see that the 
ListTypes function is defined in both places.  The definitions seem 
identical -- should they really be in both places?

Wrapping one definition in an "#if 0 ... #endif" block resolved the 
issue for me.

-Brent