We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 331

Summary: Build fails if there are same filenames coming from different source directories
Product: SDL_mixer Reporter: Patrice Mandin <patmandin>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   

Description Patrice Mandin 2006-09-23 05:44:04 UTC
The readmidi.c file is present in both ./timidity and ./native_midi_gpl subdirectories, and in the build process, they are both compiled to ./build/readmidi.o, hence one of them is deleted, and the build process fails.

You just have to enable both timidity and native-midi-gpl midi music players in configure to trigger it.

This is a big caveat coming from the reworking of the built process, and may happen in the other SDL libs in the same case.
Comment 1 Ryan C. Gordon 2007-02-13 03:12:25 UTC
I suspect that the number of source file name conflicts are going to be pretty low, so for now I'm going to be cheap and just rename one of the files in SDL_mixer.

We could also have the build system mirror the source tree (so it builds to build/timidity/readmidi.o and build/native_midi_gpl/readmidi.o instead of just build/readmidi.o), but it's not really worth spending time on it right now.

  File was renamed in svn revision #2960.

--ryan.