json pointer : syslog-ng compilation error - makefile

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?

Related

Vasp 6.2.1 not compiling

I am trying to compile vasp 6.2.1 in my ubuntu 19.10 on VirtualBox. I have intel openApi (which has ifortran compiler) and fftw3 installed. I am trying to compile the serial version using ifort. But it's giving me an error as follows.
if [ ! -d build ] ; then mkdir build ; fi
if [ ! -d build/std ] ; then mkdir build/std ; fi
cp src/makefile src/.objects src/makedeps.awk makefile.include build/std
make -C build/std VERSION=std cleandependencies -j1
make[1]: Entering directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std'
rm -f .depend
make[1]: Leaving directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std'
make -C build/std VERSION=std all
make[1]: Entering directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std'
rsync -ru ../../src/lib .
cp makefile.include lib
make -C lib -j1
make[2]: Entering directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std/lib'
make libdmy.a
make[3]: Entering directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std/lib'
make[3]: 'libdmy.a' is up to date.
make[3]: Leaving directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std/lib'
make[2]: Leaving directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std/lib'
rsync -ru ../../src/parser .
cp makefile.include parser
make -C parser -j1
make[2]: Entering directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std/parser'
make libparser.a
make[3]: Entering directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std/parser'
make[3]: 'libparser.a' is up to date.
make[3]: Leaving directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std/parser'
make[2]: Leaving directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std/parser'
rsync -u ../../src/*.F ../../src/*.inc .
rm -f vasp ; make vasp ; cp vasp ../../bin/vasp_std
make[2]: Entering directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std'
mpiifort -qmkl=cluster -lstdc++ -o vasp c2f_interface.o nccl2for.o simd.o base.o profiling.o string.o tutor.o version.o vhdf5_base.o incar_reader.o reader_base.o openmp.o openacc_struct.o mpi.o mpi_shmem.o mathtools.o hamil_struct.o radial_struct.o pseudo_struct.o mgrid_struct.o wave_struct.o nl_struct.o mkpoints_struct.o poscar_struct.o afqmc_struct.o phonon_struct.o fock_glb.o chi_glb.o smart_allocate.o xml.o extpot_glb.o constant.o vdwforcefield_glb.o jacobi.o main_mpi.o openacc.o scala.o asa.o lattice.o poscar.o ini.o mgrid.o setex_struct.o xclib.o vdw_nl.o xclib_grad.o setex.o radial.o pseudo.o gridq.o ebs.o symlib.o mkpoints.o random.o wave.o wave_mpi.o wave_high.o bext.o spinsym.o symmetry.o lattlib.o nonl.o nonlr.o nonl_high.o dfast.o choleski2.o mix.o hamil.o xcgrad.o xcspin.o potex1.o potex2.o constrmag.o cl_shift.o relativistic.o LDApU.o paw_base.o metagga.o egrad.o pawsym.o pawfock.o pawlhf.o diis.o rhfatm.o hyperfine.o fock_ace.o paw.o mkpoints_full.o charge.o Lebedev-Laikov.o stockholder.o dipol.o solvation.o scpc.o pot.o tet.o dos.o elf.o hamil_rot.o chain.o dyna.o fileio.o vhdf5.o sphpro.o us.o core_rel.o aedens.o wavpre.o wavpre_noio.o broyden.o dynbr.o reader.o writer.o xml_writer.o brent.o stufak.o opergrid.o stepver.o chgloc.o fast_aug.o fock_multipole.o fock.o fock_dbl.o fock_frc.o mkpoints_change.o subrot_cluster.o sym_grad.o mymath.o npt_dynamics.o subdftd3.o subdftd4.o internals.o dynconstr.o dimer_heyden.o dvvtrajectory.o vdwforcefield.o nmr.o pead.o k-proj.o subrot.o subrot_scf.o paircorrection.o rpa_force.o ml_interface.o force.o pwlhf.o gw_model.o optreal.o steep.o rmm-diis.o davidson.o david_inner.o root_find.o lcao_bare.o locproj.o electron_common.o electron.o rot.o electron_all.o shm.o pardens.o optics.o constr_cell_relax.o stm.o finite_diff.o elpol.o hamil_lr.o rmm-diis_lr.o subrot_lr.o lr_helper.o hamil_lrf.o elinear_response.o ilinear_response.o linear_optics.o setlocalpp.o wannier.o electron_OEP.o electron_lhf.o twoelectron4o.o gauss_quad.o m_unirnk.o minimax_ini.o minimax_dependence.o minimax_functions1D.o minimax_functions2D.o minimax_struct.o minimax_varpro.o minimax.o mlwf.o ratpol.o pade_fit.o screened_2e.o wave_cacher.o crpa.o chi_base.o wpot.o local_field.o ump2.o ump2kpar.o fcidump.o ump2no.o bse_te.o bse.o time_propagation.o acfdt.o afqmc.o rpax.o chi.o acfdt_GG.o dmft.o GG_base.o greens_orbital.o lt_mp2.o rnd_orb_mp2.o greens_real_space.o chi_GG.o chi_super.o sydmat.o rmm-diis_mlr.o linear_response_NMR.o wannier_interpol.o wave_interpolate.o linear_response.o auger.o dmatrix.o phonon.o wannier_mats.o elphon.o core_con_mat.o embed.o extpot.o fft3dfurth.o fft3dlib.o main.o -Llib -ldmy -Lparser -lparser -Lparser -lparser -lstdc++
ipo: warning #11021: unresolved fftext_mu_
Referenced in /tmp/ipo_ifortQlEAwA.o
ipo: warning #11021: unresolved fftext_useinv_mu_
Referenced in /tmp/ipo_ifortQlEAwA.o
ipo: warning #11021: unresolved fftwav_mu_
Referenced in /tmp/ipo_ifortQlEAwA.o
ipo: warning #11021: unresolved fftwav_useinv_mu_
Referenced in /tmp/ipo_ifortQlEAwA.o
ld: /tmp/ipo_ifortQlEAwA2.o: in function `wave_high_mp_fftext_wa_':
ipo_out2.f:(.text.hot00012+0x2d442): undefined reference to `fftext_useinv_mu_'
ld: ipo_out2.f:(.text.hot00012+0x2d597): undefined reference to `fftext_mu_'
ld: /tmp/ipo_ifortQlEAwA2.o: in function `wave_high_mp_fftwav_wa_':
ipo_out2.f:(.text.hot00012+0x2d865): undefined reference to `fftwav_useinv_mu_'
ld: ipo_out2.f:(.text.hot00012+0x2d99f): undefined reference to `fftwav_mu_'
make[2]: *** [makefile:149: vasp] Error 1
make[2]: Leaving directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std'
cp: cannot stat 'vasp': No such file or directory
make[1]: *** [makefile:146: all] Error 1
make[1]: Leaving directory '/home/mdazharul/vasp/vasp6.2.1/vasp6.2.1/vasp6.2.1/vasp.6.2.1/build/std'
make: *** [makefile:17: std] Error 2
I am Also including the makefile.include.
>
# Precompiler options
CPP_OPTIONS= -DHOST=\"LinuxIFC\"\
-DCACHE_SIZE=16000 \
-Davoidalloc \
-Duse_bse_te \
-Dtbdyn \
-Dfock_dblbuf
CPP = fpp -f_com=no -free -w0 $*$(FUFFIX) $*$(SUFFIX) $(CPP_OPTIONS)
FC = mpiifort
FCL = mpiifort -qmkl=cluster -lstdc++
FREE = -free -names lowercase
FFLAGS = -assume byterecl -w -xHOST
OFLAG = -O2
OFLAG_IN = $(OFLAG)
DEBUG = -O0
MKL_PATH = $(MKLROOT)/lib/intel64
BLAS =
LAPACK =
BLACS =
SCALAPACK =
OBJECTS = fft3dfurth.o fft3dlib.o
INCS =-I$(MKLROOT)/include/fftw
LLIBS = $(SCALAPACK) $(LAPACK) $(BLAS)
OBJECTS_O1 += fft3dfurth.o fftw3d.o fftmpi.o fftmpiw.o
OBJECTS_O2 += fft3dlib.o
# For what used to be vasp.5.lib
CPP_LIB = $(CPP)
FC_LIB = $(FC)
CC_LIB = icc
CFLAGS_LIB = -O
FFLAGS_LIB = -O1
FREE_LIB = $(FREE)
OBJECTS_LIB= linpack_double.o
# For the parser library
CXX_PARS = icpc
LLIBS += -Lparser -lparser -lstdc++
# Normally no need to change this
SRCDIR = ../../src
BINDIR = ../../bin
I can not seem to locate the problem. Please help me regarding this matter. Thank you.
`
You can try compiling your application using mpiifort instead of doing it with ifort compiler. You are getting the undefined reference to `MPI_Comm_rank errors because your application did not get linked with the MPI libraries. mpiifort compiler uses intel ifort compiler along with MPI wrappers.

Graphviz undefined reference to `_imp__agread' using Makefile

I'm a student trying to use Graphviz as an external library in my C project, using Windows. However, when I try to compile it, I receive undefined reference errors to the functions included in "gvc.h" and "cgraph.h". For example, agread and gvContext.
I've looked through many posts on the same topic but nothing suggested seemed to work for me as well.
Currently, I am only working on the Windows portion of my Makefile. Here it is in full:
.PHONY: all clean
#CFLAGS = `pkg-config --cflags glib-2.0`
#LDLIBS = `pkg-config --libs glib-2.0`
CFLAGS = -I"C:/Program Files/Graphviz/include/graphviz"
LDIR = -L"C:/Program Files/Graphviz/lib"
LIBS = -lgvc -lcgraph
binaries=sqlpsql
all: $(binaries)
sqlpsql: SQLP.c SQLPGrammar.y SQLPScanner.l SQLPtoSQL-main.c Preprocess.c Rules.c
ifeq ($(OS),Windows_NT)
win_bison -v -d SQLPGrammar.y
win_flex --nounput -D SQLPGrammar SQLPScanner.l
gcc -Wall -o sqlpsql SQLP.c SQLPtoSQL-main.c Preprocess.c Rules.c $(CFLAGS) $(LDIR) $(LIBS)
else
bison -v -d SQLPGrammar.y
flex --nounput -D SQLPGrammar SQLPScanner.l
gcc -Wall SQLP.c SQLPtoSQL-main.c Preprocess.c Rules.c -o sqlpsql
rm -f lex.yy.c SQLPGrammar.tab.c SQLPGrammar.tab.h
endif
clean:
-rm -f *.o *.output $(binaries)
On my computer, the header files are in: C:/Program Files/Graphviz/include/graphviz
The lib files are in: C:/Program Files/Graphviz/lib
I have added both locations to the Makefile using the -I and -L tags, as above.
Along with a very simple main function invoking the two functions (in another file), here is my SQLP.c file:
#include <stdio.h>
#include <gvc.h>
#include <cgraph.h>
#include "SQLP.h"
void generate_graph(){
FILE *fp;
fp = fopen("C:/Users/claud/Documents/UW/4A/Roseseed/test.dot", "w+");
fputs("digraph ERD {\n", fp);
fputs("graph [ rankdir = \"LR\" ];\n", fp);
fputs("ranksep=2;\n", fp);
fputs("\"SCOTT.DEPT\" [ label=\"<SCOTT.DEPT> SCOTT.DEPT|<PK_DEPT>DEPTNO \\l |DNAME \\l LOC \\l \" shape = \"record\" ];\n", fp);
fputs("\"SCOTT.EMP\" [ label=\"<SCOTT.EMP> SCOTT.EMP|<FK_DEPTNO>DEPTNO \\l |EMPNO \\l ENAME \\l JOB \\l MGR \\l STARTDATE \\l SAL \\l COMM \\l \" shape = \"record\" ];\n", fp);
fputs("\"SCOTT.DEPT\":\"PK_DEPT\"->\"SCOTT.EMP\":\"FK_DEPTNO\" [arrowhead = crow];}\n", fp);
fclose(fp);
export_graph();
}
void export_graph(){
FILE *fp;
fp = fopen("C:/Users/claud/Documents/UW/4A/Roseseed/test.dot", "r");
Agraph_t *g;
g = agread(fp, 0);
GVC_t *gvc;
gvc = gvContext();
gvLayout(gvc, g, "dot");
gvRender(gvc, g, "png",
fopen("C:/Users/claud/Documents/UW/4A/Roseseed/test.png", "w"));
gvFreeLayout(gvc, g);
agclose(g);
}
All other files compile properly because they do not include these header files.
And here is the full output of running make on Git Bash in the location of the Makefile:
$ make
win_bison -v -d SQLPGrammar.y
win_flex --nounput -D SQLPGrammar SQLPScanner.l
gcc -Wall -o sqlpsql SQLP.c SQLPtoSQL-main.c Preprocess.c Rules.c -I"C:/Program Files/Graphviz/include/graphviz" -L"C:/Program Files/Graphviz/lib" -lgvc -lcgraph
C:\Users\claud\AppData\Local\Temp\ccEwgb5N.o:SQLP.c:(.text+0x3abe): undefined reference to `_imp__agread'
C:\Users\claud\AppData\Local\Temp\ccEwgb5N.o:SQLP.c:(.text+0x3ac8): undefined reference to `_imp__gvContext'
C:\Users\claud\AppData\Local\Temp\ccEwgb5N.o:SQLP.c:(.text+0x3ae7): undefined reference to `_imp__gvLayout'
C:\Users\claud\AppData\Local\Temp\ccEwgb5N.o:SQLP.c:(.text+0x3b1b): undefined reference to `_imp__gvRender'
C:\Users\claud\AppData\Local\Temp\ccEwgb5N.o:SQLP.c:(.text+0x3b2f): undefined reference to `_imp__gvFreeLayout'
C:\Users\claud\AppData\Local\Temp\ccEwgb5N.o:SQLP.c:(.text+0x3b3c): undefined reference to `_imp__agclose'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:13: sqlpsql] Error 1
It seems like the header files are found, just none of the functions are defined. What can I do to fix this and compile the project? I am a beginner, any help is greatly appreciated! :)

make error : *** missing separator. Stop

This is my makefile:
OBJECTS = main.o
CFLAGS = -g -wall
NAME = make
CC = gcc
build: $(OBJECTS)
$(CC) $(CFLAGS) $(OBJECTS) -o $(NAME)
I'm getting below error when I tried to make(Applied tab before gcc command) :
makefile:6: *** missing separator. Stop.
How can I fix this?
First of all, it looks like you have spaces instead of tab.
As for the Makefile itself, I'd make it little bit simpler. For a source file main.c:
int main() {
return 0;
}
I would go with Makefile:
CFLAGS = -g -wall
CC = gcc
main: main.c
$(CC) $(CFLAGS) $< -o $#

Error while compiling - after checkinstall two ERRORs accoured

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!

Undeclared variable error during gcc 4.9.1 compilation

I've an OpenSUSE OS and want to compile GCC from scratch. I want to compile 4.9.1 version because of the c++11 support. I am following this guide here. I am using gcc version 4.8.3 for compilation. After executing make, I get following errors;
libtool: compile: /mnt/disk2/gccWork-Ozgur/4.9.1-objdir/./gcc/xgcc -shared-libgcc -B/mnt/disk2/gccWork-Ozgur/4.9.1-objdir/./gcc -nostdinc++ -L/mnt/disk2/gccWork-Ozgur/4.9.1-objdir/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/mnt/disk2/gccWork-Ozgur/4.9.1-objdir/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/mnt/disk2/gccWork-Ozgur/4.9.1-objdir/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/mnt/disk2/gccWork-Ozgur/4.9.1-install/x86_64-unknown-linux-gnu/bin/ -B/mnt/disk2/gccWork-Ozgur/4.9.1-install/x86_64-unknown-linux-gnu/lib/ -isystem /mnt/disk2/gccWork-Ozgur/4.9.1-install/x86_64-unknown-linux-gnu/include -isystem /mnt/disk2/gccWork-Ozgur/4.9.1-install/x86_64-unknown-linux-gnu/sys-include -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I. -I../../../../gcc-4.9.1/libsanitizer/sanitizer_common -I.. -I ../../../../gcc-4.9.1/libsanitizer/include -isystem ../../../../gcc-4.9.1/libsanitizer/include/system -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/x86_64-unknown-linux-gnu -I../../../../gcc-4.9.1/libsanitizer/../libstdc++-v3/libsupc++ -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I ../../../../gcc-4.9.1/libsanitizer/../libbacktrace -I ../libbacktrace -I ../../../../gcc-4.9.1/libsanitizer/../include -include ../../../../gcc-4.9.1/libsanitizer/libbacktrace/backtrace-rename.h -g -O2 -D_GNU_SOURCE -MT sanitizer_platform_limits_posix.lo -MD -MP -MF .deps/sanitizer_platform_limits_posix.Tpo -c ../../../../gcc-4.9.1/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc -fPIC -DPIC -o .libs/sanitizer_platform_limits_posix.o
../../../../gcc-4.9.1/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:232:27: error: ‘PTRACE_GETSIGINFO’ was not declared in this scope
int ptrace_getsiginfo = PTRACE_GETSIGINFO;
^
../../../../gcc-4.9.1/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:233:27: error: ‘PTRACE_SETSIGINFO’ was not declared in this scope
int ptrace_setsiginfo = PTRACE_SETSIGINFO;
^
../../../../gcc-4.9.1/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:390:30: error: ‘EVIOCGREP’ was not declared in this scope
unsigned IOCTL_EVIOCGREP = EVIOCGREP;
^
../../../../gcc-4.9.1/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:399:30: error: ‘EVIOCSREP’ was not declared in this scope
unsigned IOCTL_EVIOCSREP = EVIOCSREP;
^
../../../../gcc-4.9.1/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:682:36: error: ‘FS_IOC_GETFLAGS’ was not declared in this scope
unsigned IOCTL_FS_IOC_GETFLAGS = FS_IOC_GETFLAGS;
^
../../../../gcc-4.9.1/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:683:38: error: ‘FS_IOC_GETVERSION’ was not declared in this scope
unsigned IOCTL_FS_IOC_GETVERSION = FS_IOC_GETVERSION;
^
../../../../gcc-4.9.1/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:684:36: error: ‘FS_IOC_SETFLAGS’ was not declared in this scope
unsigned IOCTL_FS_IOC_SETFLAGS = FS_IOC_SETFLAGS;
^
../../../../gcc-4.9.1/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:685:38: error: ‘FS_IOC_SETVERSION’ was not declared in this scope
unsigned IOCTL_FS_IOC_SETVERSION = FS_IOC_SETVERSION;
^
make[4]: *** [sanitizer_platform_limits_posix.lo] Error 1
make[4]: Leaving directory `/mnt/disk2/gccWork-Ozgur/4.9.1-objdir/x86_64-unknown-linux-gnu/libsanitizer/sanitizer_common'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/disk2/gccWork-Ozgur/4.9.1-objdir/x86_64-unknown-linux-gnu/libsanitizer'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/disk2/gccWork-Ozgur/4.9.1-objdir/x86_64-unknown-linux-gnu/libsanitizer'
make[1]: *** [all-target-libsanitizer] Error 2
make[1]: Leaving directory `/mnt/disk2/gccWork-Ozgur/4.9.1-objdir'
make: *** [all] Error 2
Any help is appreciated. Thank you

Resources