librelist archives

« back to archive

"sudo make install" screws over later makes

"sudo make install" screws over later makes

From:
Alex Gartrell
Date:
2011-06-06 @ 02:03
This is just a minor little annoying thing, but make install rebuilds the
test filters, which gcc hesitates to wipe out the next go around. (log
follows)

Alex

~/mongrel2 $ make

[snip]

~/mongrel2 $ sudo make install
make OPTFLAGS=" " OPTLIBS="" LIBS="-lzmq -ldl -lsqlite3 " -C tools/filters
all
gcc -I../../src  -L../../build  -fPIC -shared -nostartfiles -o
test_filter.so test_filter.c ../../build/libm2.a
gcc -I../../src  -L../../build  -fPIC -shared -nostartfiles -o
test_filter_a.so test_filter_a.c ../../build/libm2.a
gcc -I../../src  -L../../build  -fPIC -shared -nostartfiles -o
test_filter_b.so test_filter_b.c ../../build/libm2.a
gcc -I../../src  -L../../build  -fPIC -shared -nostartfiles -o
test_filter_c.so test_filter_c.c ../../build/libm2.a
sh ./tests/runtests.sh
Running unit tests:
tests/bstr_tests PASS
[snip]
tests/unixy_tests PASS

make OPTFLAGS=" " OPTLIBS="" LIBS="-lzmq -ldl -lsqlite3 " -C tools/m2sh all
make[1]: Nothing to be done for `all'.
install -d //usr/local/bin/
install bin/mongrel2 //usr/local/bin/
make -C tools/m2sh install
install build/m2sh /usr/local/bin

~/mongrel2 $ touch src/dir.c
~/mongrel2 $ make

[snip]

make OPTFLAGS=" " OPTLIBS="" LIBS="-lzmq -ldl -lsqlite3 " -C tools/filters
all
gcc -I../../src  -L../../build  -fPIC -shared -nostartfiles -o
test_filter.so test_filter.c ../../build/libm2.a
ld: can't write output file: test_filter.so
collect2: ld returned 1 exit status
make[1]: *** [all] Error 1
make: *** [filters] Error 2

Re: [mongrel2] "sudo make install" screws over later makes

From:
Zed A. Shaw
Date:
2011-06-06 @ 16:48
On Sun, Jun 05, 2011 at 10:03:31PM -0400, Alex Gartrell wrote:
> This is just a minor little annoying thing, but make install rebuilds the
> test filters, which gcc hesitates to wipe out the next go around. (log
> follows)

Odd, I can' repro this.  I'll check it out on OSX.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] "sudo make install" screws over later makes

From:
Zed A. Shaw
Date:
2011-06-06 @ 16:35
On Sun, Jun 05, 2011 at 10:03:31PM -0400, Alex Gartrell wrote:
> This is just a minor little annoying thing, but make install rebuilds the
> test filters, which gcc hesitates to wipe out the next go around. (log
> follows)

Ok, I was fixing up the make files so probably got their dependencies
wrong.

-- 
Zed A. Shaw
http://zedshaw.com/