chrsmithdemos / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

/dev/null gets deleted during compilation on some systems #153

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run gmake as root on FreeBSD 8.3-RELEASE-p3 in the top-level directory.

What is the expected output? What do you see instead?
The library should have been built successfully when gmake is finished. This 
does not happen correctly. 
Instead of finishing successfully, /dev/null is removed and the system starts 
displaying erroneous behaviour.
"mknod /dev/null c 1 3" (or a reboot of the system) is required to restore 
/dev/null.

What version of the product are you using? On what operating system?
Revision 514c943a8e9ce1 on FreeBSD 8.3-RELEASE-p3 (gcc version 4.2.2).

Please provide any additional information below.
The problem is caused by checks for the existence of certain libraries in 
"build_detect_platform". These checks use /dev/null as output .
The attached patch fixes the issue by using random temporary files instead of 
/dev/null as the target output for the library checks.

Original issue reported on code.google.com by san...@kleykens.com on 23 Mar 2013 at 3:40

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dgrogan@chromium.org on 15 May 2013 at 12:10