WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Compiling Unclutter for TinyCore 5.1 x86_64  (Read 3106 times)

Offline fodder

  • Newbie
  • *
  • Posts: 45
[SOLVED] Compiling Unclutter for TinyCore 5.1 x86_64
« on: January 15, 2014, 10:24:11 AM »
I have been trying to compile unclutter for Corepure64 5.1 for some time now with no luck.

Here is my current process:

Results of xmkmf:
Code: [Select]
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/local/lib/X11/config

Results of make:
Code: [Select]
gcc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/local/include    -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L                            -D_POSIX_SOURCE -D_XOPEN_SOURCE                                 -D_BSD_SOURCE -D_SVID_SOURCE                                 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64                                                                 -DFUNCPROTO=15 -DNARROWPROTO       -c -o unclutter.o unclutter.c
unclutter.c: In function 'pexit':
unclutter.c:45:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
rm -f unclutter
gcc -o unclutter -O2 -fno-strength-reduce -fno-strict-aliasing      -L/usr/local/lib64   unclutter.o -lXext -lX11     
rm -f unclutter._man
if test -z "" ; then \
   cd `dirname unclutter` && \
   ln -s `basename unclutter.man` `basename unclutter._man`; \
else \
             cpp -undef -traditional  -D__apploaddir__=/usr/local/lib/X11/app-defaults -D__appmansuffix__=1x -D__filemansuffix__=5x -D__libmansuffix__=3x -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr/local -D__xconfigfile__=xorg.conf -D__xconfigdir__=/usr/local/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'` X.Org"  \
     < unclutter.man | sed -e '/^#  *[0-9][0-9]*  *.*$/d'                       -e '/^#line  *[0-9][0-9]*  *.*$/d'                      -e '/^[         ]*XCOMM$/s/XCOMM/#/'                    -e '/^[         ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/'                        -e '/^[         ]*XHASH/s/XHASH/#/'     -e '/\@\@$/s/\@\@$/\\/' >unclutter._man; \
fi

Results of make install:
Code: [Select]
+ mkdir -p /tmp/unclutter/opt/csw/bin
install -c   unclutter /tmp/unclutter/opt/csw/bin/unclutter
install in . done

Unclutter appears to install correctly:
Code: [Select]
/etc/sysconfig/tcedir/optional/unclutter.tcz: OK
But trying to run it gives with no parameters or something like, "unclutter -idle 30 -root", results in:
Code: [Select]
sh: unclutter: not found
The only dependencies that I can find are libX11, and xproto, both of which are loaded.

I'm probably missing something obvious, but am at a loss.

Any ideas? Am I missing a dependency or make flag?

Thanks for any help,

fodder
« Last Edit: January 15, 2014, 12:58:44 PM by fodder »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Compiling Unclutter for TinyCore 5.1 x86_64
« Reply #1 on: January 15, 2014, 11:50:55 AM »
The "not found" is a standard error for missing an interpreter. Double-check your unclutter binary, open it in nano, try file, ldd, strace on it, etc.
The only barriers that can stop you are the ones you create yourself.

Offline fodder

  • Newbie
  • *
  • Posts: 45
Re: Compiling Unclutter for TinyCore 5.1 x86_64
« Reply #2 on: January 15, 2014, 12:58:31 PM »
The "not found" is a standard error for missing an interpreter. Double-check your unclutter binary, open it in nano, try file, ldd, strace on it, etc.

This is one of the many reasons I love the Tiny Core distro.  The community is genuinely helpful and responsive.

Thanks so much, curaga - it hadn't crossed my mind that the source I downloaded form SourceForge could be the issue.  But sure enough, I tried the older version (1.08) instead and it works like a charm.  (I did try downloading 1.09 again, in case corruption was introduced during the download, but it still didn't work.)

Again, thanks so much for your help.