LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   kdebase compile problem (https://www.linuxquestions.org/questions/linux-from-scratch-13/kdebase-compile-problem-620077/)

eleanor 02-10-2008 07:22 AM

kdebase compile problem
 
Hi, I just installed kdelibs without any problems, but when installing kdebase I get this error:

Code:

checking for GL... (cached) yes
checking for glXChooseVisual in -lGL... (cached) yes
checking "struct ucred"... yes
checking nogroup... nogroup
checking for getpeereid... no
checking for xmkmf... /usr/bin/xmkmf
checking X paths... failed
configure: error: /usr/bin/xmkmf (imake) failed.
Make sure you have all necessary X development packages installed.
On some systems a missing /lib/cpp symlink is at fault.

the end of config.log is:

Code:

sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
supports_i8k_FALSE=''
supports_i8k_TRUE=''
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
unsermake_enable_pch_FALSE=''
unsermake_enable_pch_TRUE='#'
x_includes='.'
x_libraries='/usr/lib'
xdg_appsdir='${datadir}/applications/kde'
xdg_directorydir='${datadir}/desktop-directories'
xdg_menudir='${sysconfdir}/xdg/menus'

configure: exit 1

I really appreciate any suggestions that might fix my problem.

weibullguy 02-10-2008 08:07 AM

You need to install the imake utility from Xorg. Here are some build instructions --> http://cblfs.cross-lfs.org/index.php/Xorg7/Utilities

eleanor 02-10-2008 08:32 AM

I have it compiled:

Code:

bash-3.2# whereis imake
imake: /usr/bin/imake /usr/man/man1/imake.1x /usr/share/man/man1/imake.1x

I also have:

Code:

bash-3.2# whereis xmkmf
xmkmf: /usr/bin/xmkmf /usr/man/man1/xmkmf.1x /usr/share/man/man1/xmkmf.1x


weibullguy 02-10-2008 08:40 AM

Oops, guess I should have read everything. Sorry.

Did you install X11 into the /usr hierarchy? Since imake is in /usr/bin, I presume that you did. Kdebase has /usr/X11R6 hardcoded as the search path for X headers. Try replacing this with /usr
Code:

sed -i "s@/usr/X11R6@/usr@g" $(grep -lr /usr/X11R6 *)
This is for version 3 of KDE, not version 4.

Also, did you check into this --> On some systems a missing /lib/cpp symlink is at fault.

eleanor 02-10-2008 08:48 AM

Yes I installed X in /usr...

I did what you suggested, and the same error appears.

Here:
lrwxrwxrwx 1 root root 14 2008-02-01 13:43 cpp -> ../usr/bin/cpp

Any other suggestion?

weibullguy 02-10-2008 09:39 AM

When you execute
Code:

./configure --help
is there a switch that allows you to point to the Xorg proto headers?

eleanor 02-10-2008 09:42 AM

Fine tuning of the installation directories:
Code:

  --bindir=DIR          user executables [EPREFIX/bin]
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
  --libexecdir=DIR      program executables [EPREFIX/libexec]
  --sysconfdir=DIR      read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR  modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  --libdir=DIR          object code libraries [EPREFIX/lib]
  --includedir=DIR      C header files [PREFIX/include]
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR          info documentation [DATAROOTDIR/info]
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR          man documentation [DATAROOTDIR/man]
  --docdir=DIR          documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR          html documentation [DOCDIR]
  --dvidir=DIR          dvi documentation [DOCDIR]
  --pdfdir=DIR          pdf documentation [DOCDIR]
  --psdir=DIR            ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM  run sed PROGRAM on installed program names

System types:
  --build=BUILD    configure for building on BUILD [guessed]
  --host=HOST      cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET  configure for building compilers for TARGET [HOST]

Optional Features:
  --disable-FEATURE      do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-fast-perl    disable fast Makefile generation (needs perl)
  --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
  --disable-debug        disables debug output and debug symbols default=no
  --enable-strict        compiles with strict compiler options (may not
                          work!)
  --disable-warnings      disables compilation with -Wall and similar
  --enable-profile        creates profiling infos default=no
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking  do not reject slow dependency extractors
  --enable-pch            enables precompiled header support (currently only
                          KCC or gcc >=3.4+unsermake) default=no
  --enable-coverage      use gcc coverage testing
  --enable-new-ldflags    enable the new linker flags
  --enable-final          build size optimized apps (experimental - needs lots
                          of memory)
  --enable-closure        delay template instantiation
  --enable-nmcheck        enable automatic namespace cleanness check
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=no]
  --enable-libsuffix      /lib directory suffix (64,32,none,auto=default)
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-pie            platform supports PIE linking default=detect
  --enable-embedded      link to Qt-embedded, don't use X
  --enable-qtopia        link to Qt-embedded, link to the Qtopia Environment
  --enable-mac            link to Qt/Mac (don't use X)
  --disable-mt            link to non-threaded Qt (deprecated)
  --disable-threading    disables threading even if libpthread found
  --disable-rpath        do not use the rpath feature of ld
  --disable-path-check    don't try to find out, where to install
  --enable-gcc-hidden-visibility
                          toolchain hidden visibility default=no
  --disable-largefile    omit support for large files
  --disable-openpty      disable openpty (UNIX98 terminals) support
                          default=enabled
  --disable-dnssd    don't require libdns_sd (browsing and publishing DNS-SD services will not be possible)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE      do not use PACKAGE (same as --with-PACKAGE=no)
  --with-gnu-ld          assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]      include additional configurations [automatic]
  --with-extra-includes=DIR
                          adds non standard include paths
  --with-extra-libs=DIR  adds non standard library paths
  --with-qt-dir=DIR      where the root of Qt is installed
  --with-qt-includes=DIR  where the Qt includes are.
  --with-qt-libraries=DIR where the Qt library is installed.
  --without-arts          build without aRts default=no
  --with-pam=ARG          enable support for PAM: ARG=yes|no|service, name
  --with-shadow          If you want shadow password support
  --with-kdm-pam=val      override PAM service from --with-pam for kdm
  --with-kcp-pam=val      override PAM service from --with-pam for kcheckpass
  --with-kss-pam=val      override PAM service from --with-pam for
                          kscreensaver
  --with-java=javadir    use java installed in javadir, --without-java
                          disables
  --without-composite    Disable Xcomposite support (default: check)
  --with-ssl-dir=DIR      where the root of OpenSSL is installed
  --without-ssl          disable SSL checks
  --without-dpms          disable DPMS power saving
  --without-gl            disable 3D GL modes
  --with-libusb          enable control of some mouse models through libusb
                          [default=check]
  --with-usbids=PATH      Use the usb.ids file at the specified path, instead
                          of the local copy
  --with-libraw1394      enable visualization of ieee1394 devices through
                          libraw1394 [default=check]
  --without-xscreensaver  Disable XScreenSaver support (default: check)
  --with-sudo-kdesu-backend
                          use sudo as backend for kdesu (default is su)
  --without-xdmcp        build kdm without xdmcp support
                          default=with, xdmcp
  --with-krb4=PATH        Compile in Kerberos v4 support
  --with-afs              Compile in AFS support (requires KTH krb4)
  --with-krb5auth=PATH    Use Kerberos5 for Xauth cookies in kdm
  --with-rpcauth          Use Sun's secure RPC for Xauth cookies in kdm.
  --with-kdm-xconsole    build kdm with built-in xconsole default=no
  --with-ldap=PATH        Set path for LDAP files default=check
  --with-hal              Enable HAL support default=check
  --with-samba            enable the samba ioslave [default=check]
  --with-openexr          enable support for OpenEXR [default=check]
  --without-xinerama      Disable xinerama extension support (default: check)
  --with-sensors          enable support for lm_sensors [default=check]


I think this is the one to go:

Code:

  --includedir=DIR      C header files [PREFIX/include]

  --with-extra-includes=DIR
                          adds non standard include paths
  --with-extra-libs=DIR  adds non standard library path

just don't know what to pass to them?

eleanor 02-10-2008 12:26 PM

When I tried to recompile the imake I got this error:

Code:

bash-3.2# ./configure $XORG_CONFIG &&
> make
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 whether to enable maintainer-specific portions of Makefiles... no
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for sed... /bin/sed
checking for cpp... /usr/bin/cpp
checking if /usr/bin/cpp requires -undef... yes
checking if /usr/bin/cpp requires -traditional... yes
checking for perl... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XPROTO... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: creating ./config.status
config.status: creating Makefile
sed: file ./confstat3tioBo/subs-2.sed line 11: unterminated `s' command
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make: *** No targets.  Stop.
bash-3.2#

Any ideas?

weibullguy 02-11-2008 08:45 AM

Quote:

config.status: config.h is unchanged
Try deleting the imake source tree and unpack the tarball again so you're starting clean.

Quote:

--includedir=DIR C header files [PREFIX/include]

--with-extra-includes=DIR
adds non standard include paths
--with-extra-libs=DIR adds non standard library path
No. The first one is where you want the kdebase header files to be installed. You would only pass that if you didn't want them in the default location. The second and third ones are for finding headers and libraries somewhere odd such as your home directory. Since you installed Xorg in the /usr hierarchy, the headers and libraries are in standard locations. I was wondering (not being a KDE user myself) if there was a --with-x-includes=DIR switch.


All times are GMT -5. The time now is 06:44 AM.