LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cannot compile programs in -current w/ 2.6.x (https://www.linuxquestions.org/questions/slackware-14/cannot-compile-programs-in-current-w-2-6-x-439316/)

zefo 04-27-2006 06:22 AM

cannot compile programs in -current w/ 2.6.x
 
hello,

first i installed slackware 10.2. then because of missing pcmcia support for my old acer notebook i installed 2.6.x kernel from testing/ (-current). i ommited kernel headers as was recommended in warning file. a day after i upgraded the rest packages to -current. now the current status is that i cannot compile any program since all of them complain about missing .h files (linux.h for example). interestingly enough the files actually *are* present on the system. tried reinstalling 2.4.x kernel headers w/ no luck at all.

please, help me if you can.

thanks. cheers, joe

Alien Bob 04-27-2006 06:33 AM

Did you install the "kernel-source" package?
You were correct not installing the "kernel-headers" package btw.

Eric

zefo 04-27-2006 06:36 AM

Quote:

Originally Posted by Alien Bob
Did you install the "kernel-source" package?
You were correct not installing the "kernel-headers" package btw.

Eric

no, i did not. but do i really need it? the programs i intend to compile does nothing w/ the kernel (console mp3 player, xmms plugin).

dennisk 04-27-2006 01:13 PM

Highmem causes a reduction in performance?!
 
Quote:

Highmem causes a reduction in performance
Under what conditions?

Dennisk

Alien Bob 04-27-2006 02:07 PM

Quote:

Originally Posted by zefo
all of them complain about missing .h files (linux.h for example).

By the way, the only "linux.h" file on my box belongs to the "parted" package, so that can hardly count as an important system file. Maybe you can post more precise error messages...

Eric

kodon 04-27-2006 04:10 PM

what packages were upgraded?
did you read and follow UPGRADE.TXT?

zefo 04-28-2006 02:40 AM

Quote:

Originally Posted by kodon
what packages were upgraded?
did you read and follow UPGRADE.TXT?

i upgraded ALL packages on my somewhat stripped Slackware box. as for the UPGRADE.TXT: yes I read it and followed it step by step.
here come more details about what i am trying to do and what error messages i am getting. invoking make on dd_rescue 1.11 sources.
Code:

/usr/include/asm/signal.h:27: error: conflicting types for 'sigset_t'
/usr/include/sys/select.h:38: error: previous declaration of 'sigset_t' was here

the signal.h file (5197 B) comes from kernel-headers-2.4.32-i386-1, the other one (4156 B) from glibc-2.3.6-i486-3. now, i'll try to run moc (moc.daper.net).
Code:

checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h:    check for missing prerequisite headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h:    section "Present But Cannot Be Compiled"
configure: WARNING: fcntl.h: proceeding with the preprocessor's result
configure: WARNING: fcntl.h: in the future, the compiler will take precedence
configure: WARNING:    ## ------------------------------ ##
configure: WARNING:    ## Report this to daper@daper.net ##
configure: WARNING:    ## ------------------------------ ##
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/param.h usability... no
checking sys/param.h presence... no
checking for sys/param.h... no
configure: error: Can't find required header files.

strange cause /usr/include/sys/param.h does exist (in glibc-2.3.6-i486-3). let's try some luck w/ xmms-crossfade:
Code:

checking for glib-config... /usr/bin/glib-config
checking for GLIB - version >= 1.2.7... no
*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
*** If you have a RedHat 5.0 system, you should remove the GTK package that
*** came with the system with the command
***
***    rpm --erase --nodeps gtk gtk-devel
configure: error: *** GLIB >= 1.2.7 not installed - please install first ***

oh no, no way. and what does glib-config --version get me? 1.2.10 .. :(
now i don't get all this. thanks for the hints.

zefo 04-29-2006 03:32 AM

problem resolved
 
from an unknown reason files from glibc and kernel-headers package were not upgrade even when the packages were located in /var/log/packages. reinstalled, now works fine. thanks to everybody for the suggestions.


All times are GMT -5. The time now is 01:10 PM.