Closed valeriocos closed 4 years ago
10.80s$ git clone https://github.com/fossology/fossology before_script.5 0.00s$ cd fossology/src/nomos/agent/ before_script.6 2.80s$ sudo apt-get install libjson-c-dev 41.52s$ make -f Makefile.sa FO_LDFLAGS="-lglib-2.0 -lpq -lglib-2.0 -ljson-c -lpthread -lrt" gcc -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -c -o encode.o encode.c gcc -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -o encode encode.c NOTE: GENSEARCHDATA takes 1-2 minutes to run ./GENSEARCHDATA gcc -c nomos.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c -DVERSION_S=\"3.8.0-19-g012cd4da2\" -DCOMMIT_HASH_S=\"`git show > /dev/null 2>&1 && git show | head -1 | awk '{print substr($2,1,6)}' || echo "unknown"`\" nomos.c: In function ‘arsNomos’: nomos.c:93:14: warning: implicit declaration of function ‘checkDuplicateReq’ [-Wimplicit-function-declaration] result = checkDuplicateReq(gl.pgConn, upload_pk, gl.agentPk); ^ nomos.c:93:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion] result = checkDuplicateReq(gl.pgConn, upload_pk, gl.agentPk); ^ nomos.c:107:14: warning: implicit declaration of function ‘getSelectedPFiles’ [-Wimplicit-function-declaration] result = getSelectedPFiles(gl.pgConn, upload_pk, gl.agentPk, ignoreFilesWit ^ nomos.c:107:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion] result = getSelectedPFiles(gl.pgConn, upload_pk, gl.agentPk, ignoreFilesWit ^ gcc -c standalone.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c licenses.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c list.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c parse.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c process.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c nomos_regex.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c util.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c nomos_gap.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c nomos_utils.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c doctorBuffer_utils.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c json_writer.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c ./PRECHECK *** START: 1306 license-text strings *** ... "source" in 116 strings ... "free" in 150 strings ... "under" in 248 strings ... "copyright" in 143 strings ... "grant" in 206 strings ... "software" in 255 strings ... "distribut" in 444 strings ... "licen" in 566 strings ... "[iu][nst]" in 1133 strings *** DONE: 56 strings have no pre-check exclusions *** ./CHECKSTR CHECKSTR: 1306 phrases, 449 contain wild-cards gcc -c _precheck.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc -c _autodata.c -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c gcc nomos.o standalone.o licenses.o list.o parse.o process.o nomos_regex.o util.o nomos_gap.o nomos_utils.o doctorBuffer_utils.o json_writer.o _precheck.o _autodata.o -DSTANDALONE -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/json-c -lglib-2.0 -lpq -lglib-2.0 -ljson-c -lpthread -lrt -o nomossa nomos.o: In function `arsNomos': nomos.c:(.text+0x10c): undefined reference to `checkDuplicateReq' nomos.c:(.text+0x228): undefined reference to `getSelectedPFiles' collect2: error: ld returned 1 exit status Makefile.sa:31: recipe for target 'nomossa' failed make: *** [nomossa] Error 1 The command "make -f Makefile.sa FO_LDFLAGS="-lglib-2.0 -lpq -lglib-2.0 -ljson-c -lpthread -lrt"" failed and exited with 2 during .