Find the answer to your Linux question:
Results 1 to 3 of 3
Hello everyone. Since i was not able to find any solution to this little problem i thought i would go ask here. OS:PcLinuxOs I am trying to install xsel (turns ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! TinoY's Avatar
    Join Date
    May 2012
    Location
    Slovakia
    Posts
    9

    Post Error installing XSEL on PCLinuxOS


    Hello everyone. Since i was not able to find any solution to this little problem i thought i would go ask here.

    OS:PcLinuxOs

    I am trying to install xsel (turns selections from x windows into pipe-able arguments to programs)

    There is not apt-get package for pclinuxos as far as i looked, running apt-get update does not show it either.

    Steps i made.
    1. become root
    2. run ./configure in the extracted tarball
    3. run make (or make install, does almost the same error)

    Apparently i am missing a certain header file called
    X11/StringDefs.h
    And i am wondering how to get my hands on it.

    This is the output of the steps i took

    Code:
    [root$ xsel-1.2.0]# ./configure 
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for library containing strerror... none required
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking how to run the C preprocessor... gcc -E
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether make sets $(MAKE)... (cached) yes
    checking for X... no
    checking for XOpenDisplay in -lX11... no
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for unistd.h... (cached) yes
    checking for an ANSI C-conforming const... no
    checking for pid_t... yes
    checking for size_t... yes
    checking for struct stat.st_blksize... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for uid_t in sys/types.h... yes
    checking vfork.h usability... no
    checking vfork.h presence... no
    checking for vfork.h... no
    checking for fork... no
    checking for vfork... yes
    checking for working vfork... (cached) yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking return type of signal handlers... void
    checking for dup2... yes
    checking for select... yes
    checking for strdup... no
    checking for strerror... yes
    checking for strtol... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    [root$ xsel-1.2.0]# make
    make  all-am
    make[1]: Entering directory `/home/yaoay/Lab/XSEL/xsel-1.2.0'
    if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -fno-strict-aliasing -Wall -Werror -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused -MT xsel.o -MD -MP -MF ".deps/xsel.Tpo" -c -o xsel.o xsel.c; \
    	then mv -f ".deps/xsel.Tpo" ".deps/xsel.Po"; else rm -f ".deps/xsel.Tpo"; exit 1; fi
    xsel.c:32:28: fatal error: X11/StringDefs.h: No such file or directory
    compilation terminated.
    make[1]: *** [xsel.o] Error 1
    make[1]: Leaving directory `/home/yaoay/Lab/XSEL/xsel-1.2.0'
    make: *** [all] Error 2
    [root$ xsel-1.2.0]# make install
    if gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -fno-strict-aliasing -Wall -Werror -g -std=gnu99 -Wdeclaration-after-statement -Wno-unused -MT xsel.o -MD -MP -MF ".deps/xsel.Tpo" -c -o xsel.o xsel.c; \
    	then mv -f ".deps/xsel.Tpo" ".deps/xsel.Po"; else rm -f ".deps/xsel.Tpo"; exit 1; fi
    xsel.c:32:28: fatal error: X11/StringDefs.h: No such file or directory
    compilation terminated.
    make: *** [xsel.o] Error 1
    [root$ xsel-1.2.0]#
    On a side note: It is bothersome to post code output because the "AT" sign gets interpreted by the forum as links, so i had to change root "AT" hostname to something else in order to be able to post this thread...

    Thanks for any suggestions in advance

    EDIT: Forgot to mention, I am using LXDE and my window manager is OpenBox

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Apparently i am missing a certain header file called
    X11/StringDefs.h
    And i am wondering how to get my hands on it.
    It is I believe contained in the package libxt-dev. at least it is according to this Ubuntu filelist page:

    Ubuntu -- Filelist of package libxt-dev/hardy/i386

    you should be able to install it via apt-get.

    you can also search for which package contains a given file using the apt-file utility.

  3. #3
    Just Joined!
    Join Date
    Sep 2012
    Location
    Finland
    Posts
    96
    Is this what you are looking for:
    RPM resource /usr/X11R6/include/X11/StringDefs.h

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •