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 - Build fails if there are same filenames coming from different source directories
Summary: Build fails if there are same filenames coming from different source directories
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: All All
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-23 05:44 UTC by Patrice Mandin
Modified: 2007-02-13 03:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.