Crayonizer: "make" fails "SOLVED"

discuss compiling applications for Puppy
Post Reply
Message
Author
User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

Crayonizer: "make" fails "SOLVED"

#1 Post by 666philb »

hello,

i'm trying to compile Crayonizer https://sites.google.com/site/columscod ... crayonizer

Code: Select all

make
Makefile:32: warning: overriding commands for target `all'
Makefile:14: warning: ignoring old commands for target `all'
Makefile:36: warning: overriding commands for target `config_file.o'
Makefile:18: warning: ignoring old commands for target `config_file.o'
Makefile:39: warning: overriding commands for target `help.o'
Makefile:21: warning: ignoring old commands for target `help.o'
Makefile:42: warning: overriding commands for target `clean'
Makefile:24: warning: ignoring old commands for target `clean'
Makefile:45: warning: overriding commands for target `install'
Makefile:27: warning: ignoring old commands for target `install'
gcc -c config_file.c
In file included from libUseful-2.0/libUseful.h:26:0,
                 from common.h:6,
                 from config_file.h:4,
                 from config_file.c:1:
libUseful-2.0/ConnectManager.h:33:1: warning: useless storage class specifier in empty declaration [enabled by default]
In file included from config_file.h:4:0,
                 from config_file.c:1:
common.h:14:69: warning: useless storage class specifier in empty declaration [enabled by default]
config_file.c: In function ‘ParseCrayonAction’:
config_file.c:173:1: warning: ‘return’ with a value, in function returning void [enabled by default]
gcc -c help.c
In file included from libUseful-2.0/libUseful.h:26:0,
                 from common.h:6,
                 from help.c:1:
libUseful-2.0/ConnectManager.h:33:1: warning: useless storage class specifier in empty declaration [enabled by default]
In file included from help.c:1:0:
common.h:14:69: warning: useless storage class specifier in empty declaration [enabled by default]
make[1]: Entering directory `/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0'
gcc -g -O2 -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OSS=1  -c string.c
gcc -g -O2 -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OSS=1  -c list.c
gcc -g -O2 -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OSS=1  -c socket.c
gcc -g -O2 -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OSS=1  -c unix_socket.c
gcc -g -O2 -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OSS=1  -c file.c
file.c: In function ‘STREAMWriteBytes’:
file.c:769:7: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
file.c: In function ‘STREAMOpenFile’:
file.c:451:31: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
gcc -g -O2 -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OSS=1  -c tar.c
tar.c: In function ‘TarReadHeader’:
tar.c:48:1: warning: passing argument 2 of ‘STREAMReadBytes’ from incompatible pointer type [enabled by default]
file.h:111:5: note: expected ‘char *’ but argument is of type ‘struct TTarHeader **’
tar.c: In function ‘TarWriteHeader’:
tar.c:101:2: warning: format ‘%o’ expects argument of type ‘unsigned int’, but argument 3 has type ‘__off_t’ [-Wformat]
tar.c:102:2: warning: format ‘%o’ expects argument of type ‘unsigned int’, but argument 3 has type ‘__time_t’ [-Wformat]
In file included from /usr/include/string.h:642:0,
                 from /usr/include/i386-linux-gnu/sys/un.h:38,
                 from includes.h:10,
                 from tar.h:4,
                 from tar.c:1:
In function ‘strcpy’,
    inlined from ‘TarWriteHeader’ at tar.c:113:8:
/usr/include/i386-linux-gnu/bits/string3.h:105:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer [enabled by default]
gcc -g -O2 -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OSS=1  -c FileSystem.c
gcc -g -O2 -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OSS=1  -c GeneralFunctions.c
GeneralFunctions.c: In function ‘GetRandomData’:
GeneralFunctions.c:189:19: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
gcc -g -O2 -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_OSS=1  -c DataProcessing.c
DataProcessing.c: In function ‘PipeCommandProcessorInit’:
DataProcessing.c:115:31: error: ‘COMMS_BY_PIPE’ undeclared (first use in this function)
DataProcessing.c:115:31: note: each undeclared identifier is reported only once for each function it appears in
DataProcessing.c: In function ‘zlibProcessorWrite’:
DataProcessing.c:716:22: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
DataProcessing.c: In function ‘zlibProcessorRead’:
DataProcessing.c:760:21: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
make[1]: *** [DataProcessing.o] Error 1
make[1]: Leaving directory `/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0'
make: *** [all] Error 2
# 

any ideas?

thanks
Last edited by 666philb on Thu 06 Jun 2013, 15:26, edited 1 time in total.
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

WillM
Posts: 173
Joined: Wed 30 Dec 2009, 04:42
Location: Oakland, California

#2 Post by WillM »

I added the following to line 2 of libUseful-2.0/DataProcessing.c and to line 3 of libUseful-2.0/ConnectionChain.c and it worked.

Code: Select all

#include "SpawnPrograms.h" 
Copy the binary file crayonizer to /usr/bin and crayonizer.conf to /etc.
Then the program still needs to be setup. crayonizer --help explains how to do that.

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#3 Post by 666philb »

hi WillM

thanks for the reply .... unfortunately it still isn't working for me on precise puppy, although it did get further ....

Code: Select all

gcc -g -O2 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_LIBZ=1 -o crayonizer main.c -lz  config_file.o help.o libUseful-2.0/libUseful-2.0.a 
In file included from libUseful-2.0/libUseful.h:26:0,
                 from common.h:6,
                 from main.c:21:
libUseful-2.0/ConnectManager.h:33:1: warning: useless storage class specifier in empty declaration [enabled by default]
In file included from main.c:21:0:
common.h:14:69: warning: useless storage class specifier in empty declaration [enabled by default]
main.c: In function ‘ColorSubstring’:
main.c:264:1: warning: passing argument 2 of ‘ListDestroy’ from incompatible pointer type [enabled by default]
libUseful-2.0/list.h:30:6: note: expected ‘LIST_ITEM_DESTROY_FUNC’ but argument is of type ‘char * (*)(char *)’
main.c: In function ‘CalledAsSelf’:
main.c:629:105: warning: useless storage class specifier in empty declaration [enabled by default]
main.c: In function ‘XTermReadValue’:
main.c:480:6: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
main.c: In function ‘OutputLineWithAttributes’:
main.c:290:6: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
main.c: In function ‘ApplySingleAction’:
main.c:188:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
main.c:197:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
libUseful-2.0/libUseful-2.0.a(DataProcessing.o): In function `zlibProcessorClose':
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:839: undefined reference to `inflateEnd'
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:840: undefined reference to `deflateEnd'
libUseful-2.0/libUseful-2.0.a(DataProcessing.o): In function `zlibProcessorRead':
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:766: [code]undefined reference to `inflate'
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:767: undefined reference to `inflate'
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:772: undefined reference to `inflateSync'
libUseful-2.0/libUseful-2.0.a(DataProcessing.o): In function `zlibProcessorWrite':
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:722: undefined reference to `deflate'
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:723: undefined reference to `deflate'
libUseful-2.0/libUseful-2.0.a(DataProcessing.o): In function `gzipProcessorInit':
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:674: undefined reference to `inflateInit2_'
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:678: undefined reference to `deflateInit2_'
libUseful-2.0/libUseful-2.0.a(DataProcessing.o): In function `zlibProcessorInit':
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:633: undefined reference to `inflateInit_'
/mnt/sda2/downloads/Crayonizer-0.4/libUseful-2.0/DataProcessing.c:637: undefined reference to `deflateInit_'
collect2: ld returned 1 exit status
make: *** [all] Error 1
#
[/code]


could you possibly upload the working binary for me?
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#4 Post by 666philb »

it compiled on wary ... so no need to upload the binary.

thanks again
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

ColumPaget
Posts: 2
Joined: Mon 19 Dec 2011, 17:44

#5 Post by ColumPaget »

Oh, darn it! I'll check the next release more carefully for compile errors before I post it!

Colum

Post Reply