I would like to compile the newest version of tor (0.2.7.6) but I haven`t done compiling yet. I am stuck with this.
I've done:
./configure (went ok)
make (went ok)
sudo checkinstall (Error)
After checkinstall the following Errors accoured:
Debian#Debian:~/tor-0.2.7.6$ sudo checkinstall --install=no
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
*****************************************
**** Debian package creation selected ***
*****************************************
This package will be built according to these values:
0 - Maintainer: [ root#RPI1Tor ]
1 - Summary: [ tor_0.2.7.6-self_compiled ]
2 - Name: [ tor ]
3 - Version: [ 0.2.7.6 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ armhf ]
8 - Source location: [ tor-0.2.7.6 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ tor ]
12 - Conflicts: [ ]
13 - Replaces: [ ]
Enter a number to change any of them or press ENTER to continue:
Installing with make install...
========================= Installation results ===========================
CC src/or/networkstatus.o
CC src/or/nodelist.o
CC src/or/onion.o
CC src/or/onion_fast.o
CC src/or/onion_tap.o
CC src/or/transports.o
CC src/or/policies.o
CC src/or/reasons.o
CC src/or/relay.o
CC src/or/rendcache.o
CC src/or/rendclient.o
CC src/or/rendcommon.o
CC src/or/rendmid.o
CC src/or/rendservice.o
CC src/or/rephist.o
CC src/or/replaycache.o
CC src/or/router.o
CC src/or/routerkeys.o
CC src/or/routerlist.o
CC src/or/routerparse.o
CC src/or/routerset.o
CC src/or/scheduler.o
CC src/or/statefile.o
CC src/or/status.o
CC src/or/torcert.o
CC src/or/onion_ntor.o
AR src/or/libtor.a
CC src/or/src_or_libtor_testing_a-addressmap.o
CC src/or/src_or_libtor_testing_a-buffers.o
CC src/or/src_or_libtor_testing_a-channel.o
CC src/or/src_or_libtor_testing_a-channeltls.o
CC src/or/src_or_libtor_testing_a-circpathbias.o
CC src/or/src_or_libtor_testing_a-circuitbuild.o
CC src/or/src_or_libtor_testing_a-circuitlist.o
CC src/or/src_or_libtor_testing_a-circuitmux.o
CC src/or/src_or_libtor_testing_a-circuitmux_ewma.o
CC src/or/src_or_libtor_testing_a-circuitstats.o
CC src/or/src_or_libtor_testing_a-circuituse.o
CC src/or/src_or_libtor_testing_a-command.o
CC src/or/src_or_libtor_testing_a-config.o
CC src/or/src_or_libtor_testing_a-confparse.o
CC src/or/src_or_libtor_testing_a-connection.o
CC src/or/src_or_libtor_testing_a-connection_edge.o
CC src/or/src_or_libtor_testing_a-connection_or.o
CC src/or/src_or_libtor_testing_a-control.o
CC src/or/src_or_libtor_testing_a-cpuworker.o
CC src/or/src_or_libtor_testing_a-dircollate.o
CC src/or/src_or_libtor_testing_a-directory.o
CC src/or/src_or_libtor_testing_a-dirserv.o
CC src/or/src_or_libtor_testing_a-dirvote.o
CC src/or/src_or_libtor_testing_a-dns.o
CC src/or/src_or_libtor_testing_a-dnsserv.o
CC src/or/src_or_libtor_testing_a-fp_pair.o
CC src/or/src_or_libtor_testing_a-geoip.o
CC src/or/src_or_libtor_testing_a-entrynodes.o
CC src/or/src_or_libtor_testing_a-ext_orport.o
CC src/or/src_or_libtor_testing_a-hibernate.o
CC src/or/src_or_libtor_testing_a-keypin.o
CC src/or/src_or_libtor_testing_a-main.o
CC src/or/src_or_libtor_testing_a-microdesc.o
CC src/or/src_or_libtor_testing_a-networkstatus.o
CC src/or/src_or_libtor_testing_a-nodelist.o
CC src/or/src_or_libtor_testing_a-onion.o
CC src/or/src_or_libtor_testing_a-onion_fast.o
CC src/or/src_or_libtor_testing_a-onion_tap.o
CC src/or/src_or_libtor_testing_a-transports.o
CC src/or/src_or_libtor_testing_a-policies.o
CC src/or/src_or_libtor_testing_a-reasons.o
CC src/or/src_or_libtor_testing_a-relay.o
CC src/or/src_or_libtor_testing_a-rendcache.o
CC src/or/src_or_libtor_testing_a-rendclient.o
CC src/or/src_or_libtor_testing_a-rendcommon.o
CC src/or/src_or_libtor_testing_a-rendmid.o
CC src/or/src_or_libtor_testing_a-rendservice.o
CC src/or/src_or_libtor_testing_a-rephist.o
CC src/or/src_or_libtor_testing_a-replaycache.o
CC src/or/src_or_libtor_testing_a-router.o
CC src/or/src_or_libtor_testing_a-routerkeys.o
CC src/or/src_or_libtor_testing_a-routerlist.o
CC src/or/src_or_libtor_testing_a-routerparse.o
CC src/or/src_or_libtor_testing_a-routerset.o
CC src/or/src_or_libtor_testing_a-scheduler.o
CC src/or/src_or_libtor_testing_a-statefile.o
CC src/or/src_or_libtor_testing_a-status.o
CC src/or/src_or_libtor_testing_a-torcert.o
CC src/or/src_or_libtor_testing_a-onion_ntor.o
AR src/or/libtor-testing.a
CC src/or/tor_main.o
CCLD src/or/tor
CC src/tools/tor-resolve.o
CCLD src/tools/tor-resolve
CC src/tools/tor-gencert.o
CCLD src/tools/tor-gencert
CC src/test/bench.o
CCLD src/test/bench
CC src/test/src_test_test-test.o
CC src/test/src_test_test-test_accounting.o
CC src/test/src_test_test-test_addr.o
CC src/test/src_test_test-test_address.o
CC src/test/src_test_test-test_buffers.o
CC src/test/src_test_test-test_cell_formats.o
CC src/test/src_test_test-test_cell_queue.o
CC src/test/src_test_test-test_channel.o
CC src/test/src_test_test-test_channeltls.o
CC src/test/src_test_test-test_checkdir.o
CC src/test/src_test_test-test_circuitlist.o
CC src/test/src_test_test-test_circuitmux.o
CC src/test/src_test_test-test_config.o
CC src/test/src_test_test-test_containers.o
CC src/test/src_test_test-test_controller.o
CC src/test/src_test_test-test_controller_events.o
CC src/test/src_test_test-test_crypto.o
CC src/test/src_test_test-test_data.o
CC src/test/src_test_test-test_dir.o
CC src/test/src_test_test-test_entryconn.o
CC src/test/src_test_test-test_entrynodes.o
CC src/test/src_test_test-test_guardfraction.o
CC src/test/src_test_test-test_extorport.o
CC src/test/src_test_test-test_hs.o
CC src/test/src_test_test-test_introduce.o
CC src/test/src_test_test-test_keypin.o
CC src/test/src_test_test-test_link_handshake.o
CC src/test/src_test_test-test_logging.o
CC src/test/src_test_test-test_microdesc.o
CC src/test/src_test_test-test_nodelist.o
CC src/test/src_test_test-test_oom.o
CC src/test/src_test_test-test_options.o
CC src/test/src_test_test-test_policy.o
CC src/test/src_test_test-test_pt.o
CC src/test/src_test_test-test_relay.o
CC src/test/src_test_test-test_relaycell.o
CC src/test/src_test_test-test_replay.o
CC src/test/src_test_test-test_routerkeys.o
CC src/test/src_test_test-test_routerlist.o
CC src/test/src_test_test-test_routerset.o
CC src/test/src_test_test-test_scheduler.o
CC src/test/src_test_test-test_socks.o
CC src/test/src_test_test-test_status.o
CC src/test/src_test_test-test_threads.o
CC src/test/src_test_test-test_util.o
CC src/test/src_test_test-test_helpers.o
CC src/test/src_test_test-test_dns.o
CC src/test/src_test_test-testing_common.o
CC src/ext/src_test_test-tinytest.o
CCLD src/test/test
CC src/test/src_test_test_slow-test_slow.o
CC src/test/src_test_test_slow-test_crypto_slow.o
CC src/test/src_test_test_slow-test_util_slow.o
CC src/test/src_test_test_slow-testing_common.o
CC src/ext/src_test_test_slow-tinytest.o
CCLD src/test/test-slow
CC src/test/src_test_test_memwipe-test-memwipe.o
CCLD src/test/test-memwipe
CC src/test/test-child.o
CCLD src/test/test-child
CC src/test/src_test_test_workqueue-test_workqueue.o
CCLD src/test/test_workqueue
CC src/test/test_ntor_cl.o
CCLD src/test/test-ntor-cl
CC src/test/src_test_test_bt_cl-test_bt_cl.o
CCLD src/test/test-bt-cl
CC src/tools/tor-checkkey.o
CCLD src/tools/tor-checkkey
GEN doc/tor.1
GEN doc/tor-gencert.1
GEN doc/tor-resolve.1
GEN doc/torify.1
GEN doc/tor.html
GEN doc/tor-gencert.html
GEN doc/tor-resolve.html
GEN doc/torify.html
make[1]: Entering directory '/home/torpi/tor-0.2.7.6'
/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c src/or/tor src/tools/tor-resolve src/tools/tor-gencert '/usr/local/bin'
/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c contrib/client-tools/torify '/usr/local/bin'
/bin/mkdir -p '/usr/local/etc/tor'
/usr/bin/install -c -m 644 src/config/torrc.sample '/usr/local/etc/tor'
/bin/mkdir -p '/usr/local/share/doc/tor'
/bin/mkdir: das Verzeichnis „/usr/local/share/doc“ kann nicht angelegt werden: Datei oder Verzeichnis nicht gefunden
Makefile:6122: recipe for target 'install-docDATA' failed
make[1]: *** [install-docDATA] Error 1
make[1]: Leaving directory '/home/torpi/tor-0.2.7.6'
Makefile:6613: recipe for target 'install-am' failed
make: *** [install-am] Error 2
**** Installation failed. Aborting package creation.
Cleaning up...OK
Bye.
Thank you!
Success! #drew101 - Your guessing was right! After I created this path sudo mkdir -p /usr/local/share/doc it all went good.
Thank you!
Related
I want to install syslog-ng on SUSE Linux Enterprise Desktop 15 SP2 which is offline. I downloads file on github https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-3.35.1. Uploaded to my server. Uncompressed to run ./configure which worked, but when I tried make, I have this error.
CCLD modules/examples/sources/libthreaded-random-generator.la
CCLD modules/examples/libexamples.la
CC modules/getent/libtfgetent_la-tfgetent.lo
CCLD modules/getent/libtfgetent.la
CC modules/graphite/libgraphite_la-graphite-plugin.lo
CC modules/graphite/libgraphite_la-graphite-output.lo
CCLD modules/graphite/libgraphite.la
CC modules/hook-commands/libhook_commands_la-hook-commands.lo
CC modules/hook-commands/libhook_commands_la-hook-commands-grammar.lo
CC modules/hook-commands/libhook_commands_la-hook-commands-parser.lo
CC modules/hook-commands/libhook_commands_la-hook-commands-plugin.lo
CCLD modules/hook-commands/libhook-commands.la
CC modules/json/libjson_plugin_la-format-json.lo
CC modules/json/libjson_plugin_la-json-parser.lo
CC modules/json/libjson_plugin_la-json-parser-grammar.lo
CC modules/json/libjson_plugin_la-json-parser-parser.lo
CC modules/json/libjson_plugin_la-dot-notation.lo
CC modules/json/libjson_plugin_la-json-plugin.lo
make CFLAGS="-O2 -g -pthread -Wno-error" -C lib/jsonc
make all-recursive
Making all in .
CC arraylist.lo
CC debug.lo
CC json_c_version.lo
CC json_object.lo
CC json_object_iterator.lo
CC json_pointer.lo
json_pointer.c: In function ‘json_pointer_getf’:
json_pointer.c:211:7: warning: implicit declaration of function ‘vasprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
rc = vasprintf(&path_copy, path_fmt, args);
^~~~~~~~~
vsprintf
CC json_tokener.lo
CC json_util.lo
CC json_visit.lo
CC linkhash.lo
CC printbuf.lo
printbuf.c: In function ‘sprintbuf’:
printbuf.c:132:16: warning: implicit declaration of function ‘vasprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
if((size = vasprintf(&t, msg, ap)) < 0) { va_end(ap); return -1; }
^~~~~~~~~
vsprintf
CC random_seed.lo
CC strerror_override.lo
CCLD libjson-c.la
Making all in tests
make[5]: Nothing to be done for 'all'.
CCLD modules/json/libjson-plugin.la
CC modules/kvformat/libkvformat_la-format-welf.lo
CC modules/kvformat/libkvformat_la-kv-parser.lo
CC modules/kvformat/libkvformat_la-linux-audit-parser.lo
CC modules/kvformat/libkvformat_la-kv-parser-grammar.lo
CC modules/kvformat/libkvformat_la-kv-parser-parser.lo
CC modules/kvformat/libkvformat_la-kvformat-plugin.lo
CCLD modules/kvformat/libkvformat.la
.
I don't know which library is missing. Can you help me figuring out which library should I install?
I'm attempting to convert this make file to a Windows make file. I haven't done anything like this before, and need some help. I've done research but don't really understand the plethora of errors that I'm running into. Is there an easy way to port this? Is it possible? Could this be made cross platform for cmake? This is all new to me.
#FLAGS = -lm -L/usr/pub/lib -lefence -o
#CC = cc -O2 -fullwarn -TENV:large_GOT
#CC = cc -g -Wall
CC = gcc -O2 # at least for SunOS
#CC = cc -g
#CC = cc -O2 -fullwarn
#CC = cc -O2
FLAGS = -lm -o
SOURCE = stride.c splitstr.c rdpdb.c initchn.c geometry.c thr2one.c one2thr.c filename.c tolostr.c strutil.c place_h.c hbenergy.c memory.c helix.c sheet.c rdmap.c phipsi.c command.c molscr.c die.c hydrbond.c mergepat.c fillasn.c escape.c p_jrnl.c p_rem.c p_atom.c p_helix.c p_sheet.c p_turn.c p_ssbond.c p_expdta.c p_model.c p_compnd.c report.c nsc.c area.c ssbond.c chk_res.c chk_atom.c turn.c pdbasn.c dssp.c outseq.c chkchain.c elem.c measure.c asngener.c p_endmdl.c stred.c contact_order.c contact_map.c
OBJECT = ${SOURCE:.c=.o}
BINDIR = .
.c.o:
$(CC) -c $< -o $#
stride : $(OBJECT)
$(CC) $(OBJECT) $(FLAGS) $(BINDIR)/stride${ARCH}
$(OBJECT) : stride.h protot.h
clean:
rm -f $(OBJECT)
show:
echo $(SOURCE)
I'm trying to compile 2 F90 files and to execute each one separately using a Makefile. The language used is fortran. I am not used to this so I need your help.
The first file is called HECESE_avec_modif.f90 and the second one is called hecese_seq.f90.
The makefile is below :
# Define dependance for suffix .FFREE
# -----------------------------------
.SUFFIXES: .exe .out .o .f .f90
#
# Compilation options for ifort
# ---------------------------------
# ---------------------------------
#FLAGS_fred = -free -O2 -traceback -mcmodel=large\
# -check overflow -check bounds
#FLAGS_fred = -FR -free -ftz -O3 -fPIC
#F90_COMPILER = /opt/intel/bin/ifort
#---------------------------------------------------------
#
# Compilation options for G95
#
#FLAGS_fred = -C -O3 -ffree-form -ffree-line-length-huge -fzero
#FLAGS_fred = -O5 -ffree-form -ffree-line-length-huge -fzero
#F90_COMPILER = g95
#
# Compilation options for GFortran
FLAGS_fred = -ffree-form -ffree-line-length-none -O3 #-march=native
F90_COMPILER = gfortran -m64
F90_COMPILER7 = gfortran-7 -m64
#FLAGS_fred = -O3
#F90_COMPILER = gfortran
#FLAGS_CPPFOR = -L/usr/local/gfortran/lib/x86_64/
#
#
#FLAGS_fred = -free -O4
#
#
# ***************************************************
# ***************************************************
# ** **
# ** definition of file groups for F. Waymel **
# ** **
# ***************************************************
# ***************************************************
#
# 0.) group of all modules containing common variables
# for multiblocs initialisation
# ----------------------------------------------------
#
MAIN = HECESE_avec_modif.f90
MAIN2 = hecese_seq.f90
#
# Compilation of object files :
# -----------------------------
#
MAIN_OBJ =$(MAIN:.f90=.o)
MAIN_OBJ2 =$(MAIN2:.f90=.o)
# Creation of executable:
# ---------------------------------
#
#DEST1 = ~/bin
EXEC = hecesevfinale.out
EXEC2 = heceseseq.out
all : $(EXEC) $(EXEC2)
$(EXEC):$(MAIN_OBJ)
$(F90_COMPILER) -g $(FLAGS_fred) -o $(EXEC) $(MAIN_OBJ)
$(EXEC2):$(MAIN_OBJ2)
$(F90_COMPILER) -g $(FLAGS_fred) -o $(EXEC2) $(MAIN_OBJ2)
#
%.o : %.mod
.f90.o:
$(F90_COMPILER) -g $(FLAGS_fred) -c $<
# $(F90_COMPILER) -g $(FLAGS_fred) -c $<
%.o : %.mod
.f90.o:
$(F90_COMPILER) -g $(FLAGS_fred) -c $<
# $(F90_COMPILER) -g $(FLAGS_fred) -c $<
clean:
rm -f *.o *.mod *.out
#depend .depend:
# makedepf90 metas.f90 $(SOURCES90_fred1) $(SOURCES90_fred2) $(SOURCES90_mwl) $(SOURCES90_mwl2) > .depend
#include .depend
I think that I made a mistake related to the second file.
The message I get when I execute this makefile is :
gfortran -m64 -g -ffree-form -ffree-line-length-none -O3 -o hecesevfinale.out HECESE_avec_modif.o
make: *** No rule to make target 'hecese_seq.o', needed by 'heceseseq.out'. Stop.
I have another problem when I try to execute make clean.
I get :
makefile:82: warning: overriding recipe for target '.f90.o'
makefile:76: warning: ignoring old recipe for target '.f90.o'
Can you help me, please ?
I'm trying to build Git on OS X. Git depends on libidn2. libidn2 2.0.0 fails:
make all-am
make[3]: Entering directory '/Users/jwalton/Build-Scripts/libidn2-2.0.0/lib'
CC idna.lo
CC lookup.lo
CC decode.lo
CC register.lo
CC bidi.lo
CC version.lo
CC error.lo
CC punycode.lo
CC free.lo
CC data.lo
CC tr46map.lo
CC tables.lo
CC context.lo
CCLD libidn2.la
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: no name list
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: no name list
copying selected object files to avoid basename conflicts...
ar: temporary file: No such file or directory
Makefile:1027: recipe for target 'libidn2.la' failed
make[3]: *** [libidn2.la] Error 1
make[3]: Leaving directory '/Users/jwalton/Build-Scripts/libidn2-2.0.0/lib'
Makefile:955: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/Users/jwalton/Build-Scripts/libidn2-2.0.0/lib'
Makefile:1065: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/Users/jwalton/Build-Scripts/libidn2-2.0.0'
Makefile:974: recipe for target 'all' failed
make: *** [all] Error 2
My recipe to build libidn2 finds all Makefiles and it fixes AR and ARFLAGS:
if [[ "$IS_DARWIN" -ne "0" ]]; then
for mfile in $(find "$PWD" -name 'Makefile'); do
echo "Fixing Makefile $mfile"
sed -i "" 's|AR = ar|AR = /usr/bin/libtool|g' "$mfile"
sed -i "" 's|ARFLAGS = cr|ARFLAGS = -static -o|g' "$mfile"
done
fi
I've confirmed it fixes all the Makefiles:
$ find $PWD -name Makefile -exec grep 'AR =' {} \; | egrep -iv 'amtar|char'
AR = /usr/bin/libtool
ac_ct_AR = /usr/bin/libtool
AR = /usr/bin/libtool
ac_ct_AR = /usr/bin/libtool
AR = /usr/bin/libtool
ac_ct_AR = /usr/bin/libtool
AR = /usr/bin/libtool
ac_ct_AR = /usr/bin/libtool
AR = /usr/bin/libtool
ac_ct_AR = /usr/bin/libtool
AR = /usr/bin/libtool
ac_ct_AR = /usr/bin/libtool
AR = /usr/bin/libtool
ac_ct_AR = /usr/bin/libtool
AR = /usr/bin/libtool
ac_ct_AR = /usr/bin/libtool
AR = /usr/bin/libtool
ac_ct_AR = /usr/bin/libtool
I also tried AR="/usr/bin/libtool" ARFLAGS="-static -o" ./configure and make AR="/usr/bin/libtool" ARFLAGS="-static -o", but the choices are not honored. It produces additional failed builds.
Makefile debugging support is fairly crappy, so I'm not sure how to proceed. make -d fails even the simplest tasks, like providing a filename and line number. remake -d produces the same unhelpful results. The large project written by someone else aggravates the situation.
$ make -d
...
Putting child 0x7f9bf0c45cf0 (libidn2.la) PID 75531 on the chain.
Live child 0x7f9bf0c45cf0 (libidn2.la) PID 75531
CCLD libidn2.la
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: no name list
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: no name list
copying selected object files to avoid basename conflicts...
ar: temporary file: No such file or directory
Reaping losing child 0x7f9bf0c45cf0 PID 75531
Makefile:1027: recipe for target 'libidn2.la' failed
Here's line 1027, which is not the call to ar:
libidn2.la: $(libidn2_la_OBJECTS) $(libidn2_la_DEPENDENCIES) $(EXTRA_libidn2_la\
_DEPENDENCIES)
$(AM_V_CCLD)$(libidn2_la_LINK) -rpath $(libdir) $(libidn2_la_OBJECTS) $\
(libidn2_la_LIBADD) $(LIBS)
How can I locate where ar is being called in the collection of Makefiles?
To a simple understanding of a failing recipe you can:
echo the rule (i.e. echo $(AM_V_CCLD)$(libidn2_la_LINK) ...)
add a second command which fails to stop the make
If you need additional help please reports here the make output after these changes.
In your case the use of makefile option --debug=m can help
When I run the code of siftDemoV4 I get the following error:
make 'match 'is up to date
What's wrong with this? I know that there is something wrong with the Makefile:
# ------------------ Compilation options ------------------------
# Loads math library.
LIBS = -lm
# Flags for the C compiler:
# -Wall for strict gcc warnings (requires prototypes for all functions).
# -g to produce debug data for gdb
# -O for optimization
CFLAGS = -Wall -g
CC = gcc
# --------------------- Code modules ----------------------------
# Object files
OBJ = match.o util.o
# Definitions
DEFS = defs.h
# ------------------------ Rules --------------------------------
match: ${OBJ}
${CC} -o $# ${CFLAGS} ${OBJ} ${LIBS}
# Implicit rule used by Gnu Make: $(CC) -c $(CPPFLAGS) $(CFLAGS)
${OBJ}: ${DEFS}