kidok / protobuf

Automatically exported from code.google.com/p/protobuf
0 stars 0 forks source link

Protocol buffer library fails to build if download directory path contains a space. #632

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download protocol buffer source.
2. Rename directory to contain a space character (i.e. 
~/Downloads/"protobuf-2.5.0 2")
3. Attempt to build protocol buffer library.

What is the expected output? What do you see instead?

I expect a completed build.  I get the following error:

/bin/sh ../libtool --tag=CXX   --mode=link g++ -D_THREAD_SAFE  -Wall 
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG 
-D_THREAD_SAFE   -o protoc main.o  libprotobuf.la libprotoc.la -lz 
libtool: link: cannot find the library `2/src/libprotobuf.la' or unhandled 
argument `2/src/libprotobuf.la'
make[2]: *** [protoc] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

What version of the product are you using? On what operating system?

I'm using protocol buffers 2.5.0 on Mac OS/X 10.9 ("Mavericks")

Please provide any additional information below.

This is almost certainly a shell problem caused by not quoting the arguments to 
libtool.  Easy workaround - rename or move the download directory so it doesn't 
have a space in the path.

Original issue reported on code.google.com by tom.ritc...@gmail.com on 21 Apr 2014 at 3:38