failed building ltib with can4linux package

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

failed building ltib with can4linux package

2,450 Views
susan07
Contributor I
Hello everybody!
I have tried to install can4linux package with ltib and I found some errors. I have been looking for this error in Internet but I haven found anything. I would be very grateful if somebody could help me saying what I must look or do. thank you very much!!!

Those are the errors:

----------------------------------------------------------
Processing: can4linux
=======================

Cowardly refusing to clobber existing directory:
/home/traintic/Desktop/DISK/ltib-m520xevb-20060920/rpm/BUILD/can4linux-examples
Remove this by hand if you really want to rebuild this package from scratch

scbuild/scdeploy already unpacked package

Processing: can4linux
=======================
rpmbuild --dbpath /home/traintic/Desktop/DISK/ltib-m520xevb-20060920/rpmdb --define '_unpackaged_files_terminate_build 0' --define '_target_cpu m68knommu' --define '__strip strip' --define '_topdir /home/traintic/Desktop/DISK/ltib-m520xevb-20060920/rpm' --define '_prefix /usr' --define '_tmppath /home/traintic/Desktop/DISK/ltib-m520xevb-20060920/tmp' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/traintic/Desktop/DISK/ltib-m520xevb-20060920/dist/lfs-5.1/can4linux/can4linux.spec
Executing(%build): /bin/sh -e /home/traintic/Desktop/DISK/ltib-m520xevb-20060920/tmp/rpm-tmp.78032
+ umask 022
+ cd /home/traintic/Desktop/DISK/ltib-m520xevb-20060920/rpm/BUILD
+ cd can4linux-examples
+ make 'CFLAGS=-Wall -I../can4linux-3.3.3 -DUSE_RT_SCHEDULING'
gcc can_send.o -o can_send
can_send.o: In function `main':
can_send.c.text+0x428): undefined reference to `mlockall'
collect2: ld returned 1 exit status
make: *** [can_send] Error 1
error: Bad exit status from /home/traintic/Desktop/DISK/ltib-m520xevb-20060920/tmp/rpm-tmp.78032 (%build)


RPM build errors:
Bad exit status from /home/traintic/Desktop/DISK/ltib-m520xevb-20060920/tmp/rpm-tmp.78032 (%build)
Failed building can4linux


f_buildrpms() returned an error, exiting

Started: Sun Mar 30 09:51:53 2008
Ended: Sun Mar 30 09:52:02 2008
Elapsed: 9 seconds

These packages failed to build:
can4linux
Build Failed
0 Kudos
Reply
3 Replies

930 Views
admin
Specialist II
hi !

Code:
can_send.o: In function `main':can_send.c: (.text+0x428): undefined reference to `mlockall'collect2: ld returned 1 exit status

Hum, after some reflexion, this looks like some missing library !!!
The function "mlockall" should be a part of a library (sorry, i don't know which one), and this library might be missing...
I think you have to check where this function is from, and if this library is well cross compiled...
If all this conditions are ok, verify that the library is accessible by the cross compiler !!!!

Good luck !!

CimCim
0 Kudos
Reply

930 Views
admin
Specialist II
hi,
on you're log, I see that the package is already unpacked...
Do you made it yourself (with ltib -m prep -p can4linux), or it was unpacked on a previous complete build ?
If it's the second choice, try to delete this folder (rpm/BUILD/can4linux) before trying, once again...
The reason can be that you stop the compilation before it ends and, without luck, you stop it while it was unpacking this package... So the folder exists, but there's not all sources inside...

Good luck !

CimCim
0 Kudos
Reply

930 Views
susan07
Contributor I
thank you very much for your help!
I haven´t solved the problem,  but it´s nice to have people ready to help!
i have tried what you said but I always find the same problem, also when I try installing many other packages....
If you have any other idea...:smileyhappy:
Nevertheles, thank you very much!!!
0 Kudos
Reply