Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 01 Sep 2014, 20:18
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Crayonizer: "make" fails "SOLVED"
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
666philb


Joined: 07 Feb 2010
Posts: 1663
Location: wales

PostPosted: Wed 29 May 2013, 13:55    Post subject:  Crayonizer: "make" fails "SOLVED"  

hello,

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

Code:
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

_________________
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
LÖVE2d, a collection of 27 lua gameshttp://www.murga-linux.com/puppy/viewtopic.php?t=76739

Last edited by 666philb on Thu 06 Jun 2013, 11:26; edited 1 time in total
Back to top
View user's profile Send private message 
WillM

Joined: 30 Dec 2009
Posts: 139
Location: Oakland, California

PostPosted: Thu 30 May 2013, 12:02    Post subject:  

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:
#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.
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 1663
Location: wales

PostPosted: Thu 30 May 2013, 12:30    Post subject:  

hi WillM

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

Code:
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'[/code]
/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
#



could you possibly upload the working binary for me?

_________________
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
LÖVE2d, a collection of 27 lua gameshttp://www.murga-linux.com/puppy/viewtopic.php?t=76739
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 1663
Location: wales

PostPosted: Thu 30 May 2013, 12:40    Post subject:  

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

thanks again

_________________
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
LÖVE2d, a collection of 27 lua gameshttp://www.murga-linux.com/puppy/viewtopic.php?t=76739
Back to top
View user's profile Send private message 
ColumPaget

Joined: 19 Dec 2011
Posts: 2

PostPosted: Fri 31 May 2013, 05:25    Post subject:    

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

Colum
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1009s ][ Queries: 11 (0.0231s) ][ GZIP on ]