LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 06-10-2005, 02:49 PM   #1
flyeater
LQ Newbie
 
Registered: Jun 2005
Location: Somewhere in America
Distribution: SuSE 9.3-9.1, K-Ubuntu, Sarge, MacOSX
Posts: 7

Rep: Reputation: 0
Thumbs down Really, really Weird trouble with make (make error 2)


Hello,
This thread may be a little long, ... but it is this way,... 'cause of I think this may help you to clarify the trouble.
Anyway Thank You for the reading of this thread, and get a nice day.
_________________________________________________________________________
INTRODUCTION :
I once had a modem Intel 536ep and SuSE 9.1 Pro Installed, but ratter than upgrade to 9.3;
I decded to backup and start a fresh install,... well many thinks I like, another I were disapointed, but I still keep SuSE installed,.. anyway this time I done the same stuf to get work my modem the last time,... 1) Install SuSE's RPM driver for this modem. 2) Install the driver from Intel. 3) Configure wvdial and YaST.
But this time, at the time type " make 536 " at the Intel's driver... I get a REALLY confussing and weird error " error 2 " ?????? what ?, and the script does not say anything helpfull about the problem, and the documentation for "make" is to say kindly... "skiny" I didn't found ANY helpfull in the hole Internet, I even asked a friend who knows lots about Linux (I am not a newbe, but he knows more than me). Well as you can see bellow the output... I hope you to bring some light over my head.
__________________________________________________________________________

iNSTALLING THE DRIVER INTEL 536ep. Output with the command:make
____________________________________________________________________________________________________ ________________________________________________________________________

minerva:/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP # make
usage: make [536]
or [clean] or
or [install]
minerva:/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP # make 536
Module precompile check
Current running kernel is: 2.6.11.4-20a-smp
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
uname -r|grep "2.6" && \
cd coredrv && make 536core_26 && \
cp Intel536.ko .. && cd .. && \
strip --strip-debug Intel536.ko && \
exit; \
ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \
if [ ]; then \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
else \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
fi ; \
cp Intel536.o .. ; \
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\
fi
2.6.11.4-20a-smp
make[1]: Entering directory `/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv'
make -C /lib/modules/2.6.11.4-20a-smp/build SUBDIRS=/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv modules
make[2]: Entering directory `/usr/src/linux-2.6.11.4-20a-obj/i386/smp'
make -C ../../../linux-2.6.11.4-20a O=../linux-2.6.11.4-20a-obj/i386/smp modules
CC [M] /home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.o
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:70: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL_NOVERS'
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:70: warning: parameter names (without types) in function declaration
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:70: warning: data definition has no type or storage class
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In function `power_callback':
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:295: error: `PM_SAVE_STATE' undeclared (first use in this function)
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:295: error: (Each undeclared identifier is reported only once
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:295: error: for each function it appears in.)
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In function `softcore_init_struct':
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:337: warning: assignment from incompatible pointer type
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In function `close':
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:418: warning: `pm_unregister' is deprecated (declared at /usr/src/linux-2.6.11.4-20a/include/linux/pm.h:111)
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: At top level:
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:756: warning: initialization from incompatible pointer type
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:757: warning: initialization from incompatible pointer type
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In function `kScheduleDPC':
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:863: warning: implicit declaration of function `pm_access'
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c: In function `dspdrv_CommRamISR':
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:879: warning: function declaration isn't a prototype
/usr/src/linux-2.6.11.4-20a/include/linux/module.h: At top level:
/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.c:286: warning: `power_callback' defined but not used
make[5]: *** [/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.o] Error 1
make[4]: *** [_module_/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv] Error 2
make[3]: *** [modules] Error 2
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.11.4-20a-obj/i386/smp'
make[1]: *** [536core_26] Error 2
make[1]: Leaving directory `/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP/coredrv'
2.6.11.4-20a-smp
Failed to build driver
minerva:/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP #
_____________________________________________________________________

Output with command:unsermake
_____________________________________________________________________

no file Makefile present
minerva:/home/scx/tmp/intel-536EP-2.56.76.0-suse91-UP #
_____________________________________________________________________
I ALSO TRY WITH BAGHIRA, AND THIS IS THE LOG: Output with comand:make
_____________________________________________________________________

minerva:/home/scx/tmp/baghira-0.6c # make
make all-recursive
make[1]: Entering directory `/home/scx/tmp/baghira-0.6c'
Making all in bab
make[2]: Entering directory `/home/scx/tmp/baghira-0.6c/bab'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/scx/tmp/baghira-0.6c/bab'
Making all in colorscheme
make[2]: Entering directory `/home/scx/tmp/baghira-0.6c/colorscheme'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/scx/tmp/baghira-0.6c/colorscheme'
Making all in config
make[2]: Entering directory `/home/scx/tmp/baghira-0.6c/config'
source='kstyle_baghira_config.cpp' object='kstyle_baghira_config.lo' libtool=yes \
depfile='.deps/kstyle_baghira_config.Plo' tmpdepfile='.deps/kstyle_baghira_config.TPlo' \
depmode=gcc3 /bin/sh /home/scx/tmp/baghira-0.6c/admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I/home/scx/tmp/baghira-0.6c/config -I.. -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o kstyle_baghira_config.lo `test -f 'kstyle_baghira_config.cpp' || echo '/home/scx/tmp/baghira-0.6c/config/'`kstyle_baghira_config.cpp
In file included from kstyle_baghira_config.cpp:50:
kstyle_baghira_config.h:28:26: configdialog.h: No such file or directory
kstyle_baghira_config.h:29:18: help.h: No such file or directory
kstyle_baghira_config.h:30:19: about.h: No such file or directory
In file included from kstyle_baghira_config.cpp:50:
kstyle_baghira_config.h:73: error: syntax error before `*' token
kstyle_baghira_config.h:74: error: syntax error before `*' token
kstyle_baghira_config.h:75: error: syntax error before `*' token
kstyle_baghira_config.cpp:97: error: syntax error before `{' token
kstyle_baghira_config.cpp: In member function `void
kstyle_baghira_config::sliderButtonRedChanged(int)':
kstyle_baghira_config.cpp:200: error: `dialog_' undeclared (first use this
function)
kstyle_baghira_config.cpp:200: error: (Each undeclared identifier is reported
only once for each function it appears in.)
kstyle_baghira_config.cpp: In constructor `
kstyle_baghira_config::kstyle_baghira_config(QWidget*, const char*, const
QStringList&)':
kstyle_baghira_config.cpp:262: error: syntax error before `(' token
kstyle_baghira_config.cpp:300: error: `help_' undeclared (first use this
function)
kstyle_baghira_config.cpp:300: error: syntax error before `(' token
kstyle_baghira_config.cpp:301: error: `about_' undeclared (first use this
function)
kstyle_baghira_config.cpp:301: error: syntax error before `(' token
kstyle_baghira_config.cpp: In member function `void
kstyle_baghira_config::save(QString&)':
kstyle_baghira_config.cpp:672: warning: deprecated conversion from string
constant to `char*'
kstyle_baghira_config.cpp: In member function `void
kstyle_baghira_config::enableMenuColorStuff(int)':
kstyle_baghira_config.cpp:763: warning: unused parameter `int d'
make[2]: *** [kstyle_baghira_config.lo] Error 1
make[2]: Leaving directory `/home/scx/tmp/baghira-0.6c/config'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/scx/tmp/baghira-0.6c'
make: *** [all] Error 2
minerva:/home/scx/tmp/baghira-0.6c #

Output with comand:unsermake
_____________________________________________________________________
minerva:/home/scx/tmp/baghira-0.6c # unsermake
ERROR:Makefile: target '' marked PHONY but isn't present
ERROR:Makefile: target 'dvi-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'info-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'install-data-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'install-exec-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'install-info-am' marked PHONY but isn't present
ERROR:Makefile: target 'install-info-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'install-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'installdirs-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'maintainer-clean-recursive' marked PHONY but isn't prese nt
ERROR:Makefile: target 'uninstall-info-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'uninstall-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'info-recursive dvi-recursive install-info-recursive unin stall-info-recursive all-recursive install-data-recursive install-exec-recursive installdirs-recursive install-recursive uninstall-recursive check-recursive ins tallcheck-recursive nmcheck-recursive bcheck-recursive' marked PHONY but isn't p resent
ERROR:Makefile: target 'dvi-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'info-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'install-data-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'install-exec-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'install-info-am' marked PHONY but isn't present
ERROR:Makefile: target 'install-info-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'install-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'installdirs-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'maintainer-clean-recursive' marked PHONY but isn't prese nt
ERROR:Makefile: target 'uninstall-info-recursive' marked PHONY but isn't present
ERROR:Makefile: target 'uninstall-recursive' marked PHONY but isn't present
['cd . && perl admin/am_edit -padmin', 'cd . && unsermake -f admin/Makefile.comm on subdirs']
['cd $(top_distdir) && perl admin/am_edit -padmin', 'cd $(top_distdir) && $(MAKE ) -f admin/Makefile.common subdirs']
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 1302, in ?

File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 1158, in main

File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 775, in setup_to p_makefile

File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 161, in merged_m akefiles

File "amfile.py", line 57, in addTarget
File "target.py", line 86, in merge
two targets named 'dist-hook' define rules!
minerva:/home/scx/tmp/baghira-0.6c #
_____________________________________________________________________
 
Old 06-12-2005, 01:31 AM   #2
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 32
Sorry I don't know Suse, but those messages make me think you don't have automake installed or all of the development headers you need. Check your system to see if you have autoconf, automake, kernel headers installed on your system.
 
Old 06-12-2005, 01:58 PM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Quote:
make[2]: Entering directory `/usr/src/linux-2.6.11.4-20a-obj/i386/smp'
I get the impression that make expects the kernel sources to be in /usr/src/linux-2.6.11.4-20a-obj. I think this directory is some kind of 'fake' sources directory. If you are sure you have the correct sources installed, you could check if the link /lib/modules/<uname -r>/build points to the sources directory (the one without 'obj'). Otherwise check is the correct sources are installed with:
Code:
rpm -q kernel-smp
rpm -q kernel-source
uname -r
All three command should return the same version number.

Last edited by abisko00; 06-12-2005 at 01:59 PM.
 
Old 06-15-2005, 06:34 PM   #4
flyeater
LQ Newbie
 
Registered: Jun 2005
Location: Somewhere in America
Distribution: SuSE 9.3-9.1, K-Ubuntu, Sarge, MacOSX
Posts: 7

Original Poster
Rep: Reputation: 0

Thanks to:
--------- abisko00
and
--------- noxvb
for your help.

Well noxvb I have all the necesary stuff in my SuSE.

As abisko00 said
rpm -q kernel-default
kernel-default-2.6.11.4.20a
rpm -q kernel-source
kernel-source-2.6.11.4.20a
uname -r
2.6.11.4.20a-smp
______________________________________________________________________________
well now I have a step ahead...
now I know where is the trouble... but... How do I fix it ???
I am going to compile a custom kernel, and see what happens,... but if that fails... what should I do ?
( Apart from feeling regreat )
And the trouble is not only on my home computer... it is on my work comp.
______________________________________________________________________________
 
Old 06-16-2005, 02:46 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Quote:
rpm -q kernel-default
kernel-default-2.6.11.4.20a
rpm -q kernel-source
kernel-source-2.6.11.4.20a
uname -r
2.6.11.4.20a-smp
I wonder why you have the smp kernel in memory (uname -r) and the rpm of the default kernel installed. Did you reboot, after the last kernel installation (e.g. YOU)? If not, try to reboot and check again. The sources should work with both kernel (it is just a difference in configuration).

There is not much you can mess-up with a custom kernel, as long as you keep the old kernel as option in your bootloader (don't overwrite the old kernel, just install the new one aside to it). However, make backups of your data before you reboot. As a beginner you may do stupid things when you panic
 
Old 06-20-2005, 12:05 PM   #6
flyeater
LQ Newbie
 
Registered: Jun 2005
Location: Somewhere in America
Distribution: SuSE 9.3-9.1, K-Ubuntu, Sarge, MacOSX
Posts: 7

Original Poster
Rep: Reputation: 0
Je Je
____________________________________________________
As a beginner you may do stupid things when you panic
____________________________________________________

Well well, I did a new kernel and it works fine.... but... it still sais the same ... ???
and now uname has my custom kernel. !
I desperate (I have a backup CD) and reinstalled again.... oh surprise !
This time
uname -r is default as has to...
but it still sais the same ...
I did installed
gcc
kernel source
make
automake
and all refering to headers. (I didn foun any kernel headers rpm ... does SuSe do not use'em directly ,...right ?)
at the begining, and then the most packages found on cd's, it reminds equal.
oh by the way... I check if "/usr/src/linux-2.6.11.4-20a-obj/default/ " points to: /usr/src/linux/
and... no it does no diference at all.
also I did realize that the make stands a little while reaches this point: ( )
______________________________________________________________________
sphinx:/home/caffe/Documents/computer/intel-536EP-2.56.76.0-suse91-UP # make 536
Module precompile check
Current running kernel is: 2.6.11.4-20a-default
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
uname -r|grep "2.6" && \
cd coredrv && make 536core_26 && \
cp Intel536.ko .. && cd .. && \
strip --strip-debug Intel536.ko && \
exit; \
ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \
if [ ]; then \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
else \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
fi ; \
cp Intel536.o .. ; \
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\
fi
2.6.11.4-20a-default
make[1]: Entering directory `/home/caffe/Documents/computer/intel-536EP-2.56.76.0-suse91-UP/coredrv'
make -C /lib/modules/2.6.11.4-20a-default/build SUBDIRS=/home/caffe/Documents/computer/intel-536EP-2.56.76.0-suse91-UP/coredrv modules
make[2]: Entering directory `/usr/src/linux-2.6.11.4-20a'
Makefile:494: .config: No such file or directory

WARNING: Symbol version dump /usr/src/linux-2.6.11.4-20a/Module.symvers is missing; modules will have no modversions.

CC [M] /home/caffe/Documents/computer/intel-536EP-2.56.76.0-suse91-UP/coredrv/coredrv.o
-------------->
__________________________________________________________
I suspect this is a modules trouble, don't you ?
But what exactly, and how to solve it ?
As you may note... I did this same thing in 3 Computers !
I try to install 9.1 Pro and upgrade, but the computer became REALLY slow.
I have not an specially powerfull machine at this time. doing so ... OpenOffice took 12min. to run !!!!
and worst, unusefull !!!! ( anyway I use StarOffice instead ).
O.k. now... what ???
I'll remain reading and investigating....
Oh ... I have been really busy by this time... but I am a little more free now.. so I can investigate hardly and respond to this thread faster.
Greetings!
____________________________________________________________________
 
  


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
Gentoo make & make.conf & emerge Trouble geagon Linux - Newbie 5 10-28-2005 06:33 PM
Trying to make mod_ssl work - virtualhosts make trouble Belize Linux - Software 0 02-26-2005 08:30 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make failing to make with this error. Help needed? vdemuth Linux - Software 4 06-20-2004 03:08 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM


All times are GMT -5. The time now is 12:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration