Re: slmodemd fails to compile under 2.6.33.1, make: *** [drivers] Error 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Antonio,

The compile is OK on my Ubuntu system, per below:

MarvS
----------
t/slmodem-2.9.11-20100303$ make
KERNEL_DIR=/usr/src/linux-headers-2.6.32-10-generic
make -C modem all
make[1]: Entering directory `/usr/src/pkg/smart/slmodem-2.9.11-20100303/modem'
rebuild profile...
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_main.o -c modem_main.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_cmdline.o -c modem_cmdline.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem.o -c modem.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_datafile.o -c
modem_datafile.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_at.o -c modem_at.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_timer.o -c modem_timer.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_pack.o -c modem_pack.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_ec.o -c modem_ec.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_comp.o -c modem_comp.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_param.o -c modem_param.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_debug.o -c modem_debug.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o homolog_data.o -c homolog_data.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o dp_sinus.o -c dp_sinus.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o dp_dummy.o -c dp_dummy.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o sysdep_common.o -c sysdep_common.c
gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o
modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o
modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o
dsplibs.o sysdep_common.o
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_test.o -c modem_test.c
modem_test.c: In function ‘modem_test_start’:
modem_test.c:110: warning: ignoring return value of ‘write’, declared
with attribute warn_unused_result
gcc -o modem_test modem_test.o modem_cmdline.o modem.o
modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o
modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o
dp_dummy.o dsplibs.o sysdep_common.o
make[1]: Leaving directory `/usr/src/pkg/smart/slmodem-2.9.11-20100303/modem'
make -C drivers KERNEL_DIR=/usr/src/linux-headers-2.6.32-10-generic
make[1]: Entering directory `/usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers'
doing kernel-ver::
cc -I/usr/src/linux-headers-2.6.32-10-generic/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.6.32-10-generic
make[2]: Entering directory `/usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers'
	obj-m=slamr.o
	slamr-objs=amrmo_init.o sysdep_amr.o amrlibs.o
make modules -C /usr/src/linux-headers-2.6.32-10-generic
SUBDIRS=/usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers
make[3]: Entering directory `/usr/src/linux-headers-2.6.32-10-generic'
  CC [M]  /usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers/amrmo_init.o
  CC [M]  /usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers/sysdep_amr.o
  LD [M]  /usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers/slamr.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find
/usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers/.amrlibs.o.cmd for
/usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers/amrlibs.o
  CC      /usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers/slamr.mod.o
  LD [M]  /usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers/slamr.ko
make[3]: Leaving directory `/usr/src/linux-headers-2.6.32-10-generic'
	finished all:
make[2]: Leaving directory `/usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers'
make[1]: Leaving directory `/usr/src/pkg/smart/slmodem-2.9.11-20100303/drivers'

marv@marvmac:/usr/src/pkg/smart/slmodem-2.9.11-20100303$ ls -lh drivers/*.ko
-rw-r--r-- 1 marv marv 549K 2010-03-20 17:07 drivers/slamr.ko


On Sat, Mar 20, 2010 at 11:42 AM, Antonio Olivares
<olivares14031@xxxxxxxxx> wrote:
> I downloaded 2.6.33 and patch 2.6.33.1 applied it ran make all and
> installed the kernel, also ram make modules_instlal.  I previously had
> compiled kernels before and not encountered this problem.  For the
> meantime, I deleted the kernel and am still running Fedora kernel
> 2.6.32.9-70.fc12.i686.  When they update to newer kernel, I will try
> this again :)
>
> Thanks for the help.
>
> Regards,
>
> Antonio
>
> On 3/20/10, Yair Elharrar <freezer.spam@xxxxxxxxx> wrote:
>> Hi Antonio,
>> utsrelease.h is a file which is generated during kernel compilation.
>> If it doesn't exist, try "make" in the kernel source tree, before
>> compiling slamr.
>>
>> -Yair
>>
>> On Sat, Mar 20, 2010 at 5:30 AM, Antonio Olivares
>> <olivares14031@xxxxxxxxx> wrote:
>>> I compile 2.6.33.1 on Fedora 12 and slmodem-2.9.11-20100303 code does
>>> not work :(
>>>
>>> [olivares@localhost slmodem-2.9.11-20100303]$ make clean
>>> make -C modem clean &&  make -C drivers clean &&  echo "done."
>>> make[1]: Entering directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/modem'
>>> rm -f slmodemd modem_test modem_main.o modem_cmdline.o modem_test.o
>>> modem.o modem_datafile.o modem_at.o modem_timer.o modem_pack.o
>>> modem_ec.o modem_comp.o modem_param.o modem_debug.o homolog_data.o
>>> dp_sinus.o dp_dummy.o sysdep_common.o
>>> rm -f *~ *.orig *.rej
>>> make[1]: Leaving directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/modem'
>>> make[1]: Entering directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/drivers'
>>> rm -f kernel-ver slamr.o  slamr.ko *st7554.o amrmo_init.o sysdep_amr.o
>>> *.mod.* .*.cmd *~ slusb.*
>>> rm -f -r .tmp_versions
>>> make[1]: Leaving directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/drivers'
>>> done.
>>> [olivares@localhost slmodem-2.9.11-20100303]$ make
>>> make -C modem all
>>> make[1]: Entering directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/modem'
>>> rebuild profile...
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_main.o -c modem_main.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_cmdline.o -c
>>> modem_cmdline.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem.o -c modem.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_datafile.o -c
>>> modem_datafile.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_at.o -c modem_at.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_timer.o -c
>>> modem_timer.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_pack.o -c modem_pack.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_ec.o -c modem_ec.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_comp.o -c modem_comp.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_param.o -c
>>> modem_param.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_debug.o -c
>>> modem_debug.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o homolog_data.o -c
>>> homolog_data.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o dp_sinus.o -c dp_sinus.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o dp_dummy.o -c dp_dummy.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o sysdep_common.o -c
>>> sysdep_common.c
>>> gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o
>>> modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o
>>> modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o
>>> dsplibs.o sysdep_common.o
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_test.o -c modem_test.c
>>> gcc -o modem_test modem_test.o modem_cmdline.o modem.o
>>> modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o
>>> modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o
>>> dp_dummy.o dsplibs.o sysdep_common.o
>>> make[1]: Leaving directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/modem'
>>> make -C drivers KERNEL_DIR=/lib/modules/2.6.33.1/build
>>> make[1]: Entering directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/drivers'
>>> doing kernel-ver::
>>> cc -I/lib/modules/2.6.33.1/build/include -o kernel-ver kernel-ver.c
>>> kernel-ver.c:9:30: error: linux/utsrelease.h: No such file or directory
>>> kernel-ver.c: In function ‘main’:
>>> kernel-ver.c:14: error: ‘UTS_RELEASE’ undeclared (first use in this
>>> function)
>>> kernel-ver.c:14: error: (Each undeclared identifier is reported only once
>>> kernel-ver.c:14: error: for each function it appears in.)
>>> make[1]: *** [kernel-ver] Error 1
>>> make[1]: Leaving directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/drivers'
>>> make: *** [drivers] Error 2
>>> [olivares@localhost slmodem-2.9.11-20100303]$ make clean
>>> make -C modem clean &&  make -C drivers clean &&  echo "done."
>>> make[1]: Entering directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/modem'
>>> rm -f slmodemd modem_test modem_main.o modem_cmdline.o modem_test.o
>>> modem.o modem_datafile.o modem_at.o modem_timer.o modem_pack.o
>>> modem_ec.o modem_comp.o modem_param.o modem_debug.o homolog_data.o
>>> dp_sinus.o dp_dummy.o sysdep_common.o
>>> rm -f *~ *.orig *.rej
>>> make[1]: Leaving directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/modem'
>>> make[1]: Entering directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/drivers'
>>> rm -f kernel-ver slamr.o  slamr.ko *st7554.o amrmo_init.o sysdep_amr.o
>>> *.mod.* .*.cmd *~ slusb.*
>>> rm -f -r .tmp_versions
>>> make[1]: Leaving directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/drivers'
>>> done.
>>> [olivares@localhost slmodem-2.9.11-20100303]$ make
>>> KERNEL_DIR=/lib/modules/2.6.33.1/build
>>> make -C modem all
>>> make[1]: Entering directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/modem'
>>> rebuild profile...
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_main.o -c modem_main.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_cmdline.o -c
>>> modem_cmdline.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem.o -c modem.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_datafile.o -c
>>> modem_datafile.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_at.o -c modem_at.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_timer.o -c
>>> modem_timer.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_pack.o -c modem_pack.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_ec.o -c modem_ec.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_comp.o -c modem_comp.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_param.o -c
>>> modem_param.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_debug.o -c
>>> modem_debug.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o homolog_data.o -c
>>> homolog_data.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o dp_sinus.o -c dp_sinus.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o dp_dummy.o -c dp_dummy.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o sysdep_common.o -c
>>> sysdep_common.c
>>> gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o
>>> modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o
>>> modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o
>>> dsplibs.o sysdep_common.o
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_test.o -c modem_test.c
>>> gcc -o modem_test modem_test.o modem_cmdline.o modem.o
>>> modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o
>>> modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o
>>> dp_dummy.o dsplibs.o sysdep_common.o
>>> make[1]: Leaving directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/modem'
>>> make -C drivers KERNEL_DIR=/lib/modules/2.6.33.1/build
>>> make[1]: Entering directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/drivers'
>>> doing kernel-ver::
>>> cc -I/lib/modules/2.6.33.1/build/include -o kernel-ver kernel-ver.c
>>> kernel-ver.c:9:30: error: linux/utsrelease.h: No such file or directory
>>> kernel-ver.c: In function ‘main’:
>>> kernel-ver.c:14: error: ‘UTS_RELEASE’ undeclared (first use in this
>>> function)
>>> kernel-ver.c:14: error: (Each undeclared identifier is reported only once
>>> kernel-ver.c:14: error: for each function it appears in.)
>>> make[1]: *** [kernel-ver] Error 1
>>> make[1]: Leaving directory
>>> `/home/olivares/Downloads/slmodem-2.9.11-20100303/drivers'
>>> make: *** [drivers] Error 2
>>> [olivares@localhost slmodem-2.9.11-20100303]$
>>>
>>>
>>>
>>> What can I be doing wrong?  I have compiled kernels from kernel.org
>>> before and have not gotten these kind of problems :(
>>>
>>> Thanks,
>>>
>>> Antonio
>>>
>>
>


[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux