LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-10-2008, 07:22 AM   #1
eleanor
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Rep: Reputation: 0
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.
 
Old 02-10-2008, 08:07 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You need to install the imake utility from Xorg. Here are some build instructions --> http://cblfs.cross-lfs.org/index.php/Xorg7/Utilities
 
Old 02-10-2008, 08:32 AM   #3
eleanor
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 02-10-2008, 08:40 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.

Last edited by weibullguy; 02-10-2008 at 08:53 AM.
 
Old 02-10-2008, 08:48 AM   #5
eleanor
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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?

Last edited by eleanor; 02-10-2008 at 09:03 AM.
 
Old 02-10-2008, 09:39 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
When you execute
Code:
./configure --help
is there a switch that allows you to point to the Xorg proto headers?
 
Old 02-10-2008, 09:42 AM   #7
eleanor
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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?

Last edited by eleanor; 02-10-2008 at 09:44 AM.
 
Old 02-10-2008, 12:26 PM   #8
eleanor
LQ Newbie
 
Registered: Aug 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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?
 
Old 02-11-2008, 08:45 AM   #9
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.

Last edited by weibullguy; 02-11-2008 at 08:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem updating kdebase aprax Linux - Desktop 2 10-30-2006 12:58 AM
Problem with X after installing kdebase-dev, using kanotix, and xfree86 4.x Kronoz Linux - Software 0 12-16-2005 02:23 AM
kdebase-3.3.0 still won't build. craigs1987 Linux - Software 1 10-02-2004 07:26 AM
Why won't kdebase-3.3.0 build? craigs1987 Linux - Software 1 10-01-2004 05:07 PM
Apt and kdebase slewis1972 Linux - General 0 07-05-2003 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration