[Netkit.users] Problem when trying to create my own fs

Julien Iguchi-Cartigny julien.cartigny at unilim.fr
Sun Aug 8 20:29:21 CEST 2010


OK, I stop to use sid distribution, too buggy from debian side (not very
well maintened). I've more chance with lenny but I've a few questions
about the building process.

I want to remove all MPLS code, so i change
fs-build/tools-src/Makefile.devel to do nothing. Furthemore, I remove
all diversions from fs-build/netkit-tweaks/diversions/ . But maybe it is
not a good idea to remove all diversions because I found reference to
uml-utilities and nfs-kernel-server. What do I have to remove / change /
keep in order to remove all MPLS part ?

Cheers,

Julien.

On 08/07/2010 04:00 PM, Julien Iguchi-Cartigny wrote:
> I've succeeded to create my own FS, but i've to get rid of the MPLS
> support because of the following error during building;
> 
> \e[1m\e[32m===== Installing additional tools... =====\e[0m
> make[1]: Entering directory
> `/home/kartoch/opt/netkit/fs/fs-build/tools-src/tools-build'
> wget
> http://downloads.sourceforge.net/ebtables/ebtables-v2.0.8-1.tar.gz?download
> --2010-08-07 15:58:03--
> http://downloads.sourceforge.net/ebtables/ebtables-v2.0.8-1.tar.gz?download
> Resolving downloads.sourceforge.net... 216.34.181.59
> Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location:
> http://downloads.sourceforge.net/project/ebtables/ebtables/ebtables-2-0-8-1/ebtables-v2.0.8-1.tar.gz
> [following]
> --2010-08-07 15:58:04--
> http://downloads.sourceforge.net/project/ebtables/ebtables/ebtables-2-0-8-1/ebtables-v2.0.8-1.tar.gz
> Reusing existing connection to downloads.sourceforge.net:80.
> HTTP request sent, awaiting response... 302 Found
> Location:
> http://ignum.dl.sourceforge.net/project/ebtables/ebtables/ebtables-2-0-8-1/ebtables-v2.0.8-1.tar.gz
> [following]
> --2010-08-07 15:58:04--
> http://ignum.dl.sourceforge.net/project/ebtables/ebtables/ebtables-2-0-8-1/ebtables-v2.0.8-1.tar.gz
> Resolving ignum.dl.sourceforge.net... 62.109.128.5
> Connecting to ignum.dl.sourceforge.net|62.109.128.5|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 96681 (94K) [application/x-gzip]
> Saving to: `ebtables-v2.0.8-1.tar.gz'
> 
> 100%[========================================================================>]
> 96,681       224K/s   in 0.4s
> 
> 2010-08-07 15:58:05 (224 KB/s) - `ebtables-v2.0.8-1.tar.gz' saved
> [96681/96681]
> 
> tar xzf ebtables-v2.0.8-1.tar.gz
> cd ebtables-v2.0.8-1; patch -p1 < ../../ebtables-mpls.diff
> patching file extensions/ebt_mpls.c
> patching file extensions/Makefile
> patching file include/linux/if_ether.h
> patching file include/linux/mpls.h
> patching file include/linux/netfilter/xt_mpls.h
> patching file Makefile
> Compiling ebtables...
> communication.o: In function `store_counters_in_file':
> communication.c:(.text+0xa06): undefined reference to
> `__stack_chk_fail_local'
> communication.o: In function `ebt_deliver_counters':
> communication.c:(.text+0x104f): undefined reference to
> `__stack_chk_fail_local'
> communication.o: In function `ebt_get_table':
> communication.c:(.text+0x239d): undefined reference to
> `__stack_chk_fail_local'
> useful_functions.o: In function `undot_ip':
> useful_functions.c:(.text+0x749): undefined reference to
> `__stack_chk_fail_local'
> ld: libebtc.so: hidden symbol `__stack_chk_fail_local' isn't defined
> ld: final link failed: Nonrepresentable section on output
> make[2]: *** [libebtc] Error 1
> make[1]: *** [ebtables-mpls] Error 2
> make[1]: Leaving directory
> `/home/kartoch/opt/netkit/fs/fs-build/tools-src/tools-build'
> make: *** [.installed_src_tools] Error 2
> 
> Cheer,
> 
> Julien.
> 
> PS: i will write a post about compiling your own fs soon.
> 
> On 08/07/2010 02:27 PM, Julien Iguchi-Cartigny wrote:
>> About libept0, i found the problem: libept is now version 1.0 on sid, so
>> you must replace libept0 by libept1 in Mafefile.devel in the fs
>> directory of netkit.
>>
>> But I've still the problem with the previous error:
>>
>> W: Failure trying to run: chroot /home/kartoch/opt/netkit/fs/mounted_fs
>> dpkg --force-depends --install
>> /var/cache/apt/archives/base-files_5.9_i386.deb
>> /var/cache/apt/archives/base-passwd_3.5.22_i386.deb
>> make: *** [.base_system_installed] Error 1
>>
>> A more precise message error is available when running alone the command
>> above:
>>
>> root at kartoch-laptop:/home/kartoch/opt/netkit/fs# chroot
>> /home/kartoch/opt/netkit/fs/mounted_fs dpkg --force-depends --install
>> /var/cache/apt/archives/base-files_5.9_i386.deb
>> /var/cache/apt/archives/base-passwd_3.5.22_i386.deb
>> dpkg-deb: error while loading shared libraries: libbz2.so.1.0: cannot
>> open shared object file: No such file or directory
>> dpkg: error processing /var/cache/apt/archives/base-files_5.9_i386.deb
>> (--install):
>>  subprocess dpkg-deb --control returned error exit status 127
>> dpkg-deb: error while loading shared libraries: libbz2.so.1.0: cannot
>> open shared object file: No such file or directory
>> dpkg: error processing
>> /var/cache/apt/archives/base-passwd_3.5.22_i386.deb (--install):
>>  subprocess dpkg-deb --control returned error exit status 127
>> Errors were encountered while processing:
>>  /var/cache/apt/archives/base-files_5.9_i386.deb
>>  /var/cache/apt/archives/base-passwd_3.5.22_i386.deb
>>
>> If I look for libbz2 need to be installed, but you can install it only
>> using dpkg, but this program requires libbz2 ! So whatever is the
>> solution (dpkg-deb or dpkg) you have always the error message from the
>> dynamic linker:
>>
>> error while loading shared libraries: libbz2.so.1.0: cannot open shared
>> object file: No such file or directory
>>
>> Any solutions ?
>>
>> Julien.
>>
>> On 08/07/2010 01:59 PM, Julien Iguchi-Cartigny wrote:
>>> Dear Massimo,
>>>
>>> I've tried today to build my own FS but i've a new error:
>>>
>>> root at kartoch-laptop:/home/kartoch/opt/netkit/fs# make -f Makefile.devel
>>> filesystem
>>> -e
>>> \e[1m\e[33m======= Downloading base packages... =====\e[0m
>>> I: Retrieving Release
>>> I: Retrieving Packages
>>> I: Validating Packages
>>> I: Resolving dependencies of required packages...
>>> I: Resolving dependencies of base packages...
>>> I: Found additional required dependencies: insserv libbz2-1.0 libdb4.8
>>> I: Found additional base dependencies: libnfnetlink0 libsqlite3-0 libudev0
>>> I: Checking component main on http://ftp.fr.debian.org/debian...
>>> E: Couldn't find these debs: libept0
>>> make: *** [debian-base-packages-sid-i386.tgz] Error 1
>>>
>>> I've tried the italian and french debian mirrors but the problem is
>>> still here. Have you any idea how to resolve it ?
>>>
>>> Cheers,
>>>
>>> Julien.
>>>
>>> On 05/31/2010 11:09 AM, Massimo Rimondini wrote:
>>>> Dear Julien,
>>>>
>>>> mmm... the fact that the package has been downloaded seems to suggest
>>>> that the apt system was already going to install it to satisfy
>>>> dependencies. And, in fact, the package is listed in the log which you
>>>> have sent me some time ago.
>>>>
>>>> I would suggest doing the following:
>>>> 1) Since lots of packages and dependencies have likely been updated in
>>>> the meantime, you may try to build again from scratch and hope that the
>>>> error has just gone away (we too have experienced this sometime...). I
>>>> would really give this a try.
>>>>
>>>> 2) If you really want to force installation, you can mount the partially
>>>> built filesystem image and then run a command like "sudo chroot
>>>> mounted_fs/var/cache/apt/archives/libbz2-1.0_1.0.5-4_i386.deb dpkg -i
>>>> /var/cache/apt/archives/libbz2-1.0_1.0.5-4_i386.deb". In case the
>>>> installation still fails, you may attempt to simply decompress the files
>>>> inside the archive: "sudo chroot
>>>> mounted_fs/var/cache/apt/archives/libbz2-1.0_1.0.5-4_i386.deb dpkg-deb
>>>> -x /var/cache/apt/archives/libbz2-1.0_1.0.5-4_i386.deb /"
>>>>
>>>> Regards,
>>>> Massimo.
>>>>
>>>>
>>>>
>>>>
>>>> On 05/29/2010 01:53 PM, Julien Iguchi-Cartigny wrote:
>>>>> Hello Massimo,
>>>>>
>>>>> [...snip...]
>>>>>
>>>>>   
>>>>>> What I can suggest for the moment is to attempt to manually download and
>>>>>> install the .deb file for libbz2-1.0, then try again to continue with the
>>>>>> filesystem build.
>>>>>>     
>>>>> How do you do this ? The libbz2 is downloaded:
>>>>>
>>>>> mounted_fs/var/cache/apt/archives/libbz2-1.0_1.0.5-4_i386.deb
>>>>>
>>>>> how can i manually install it during the image building process ?
>>>>>
>>>>> Thank you.
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Julien.
>>>>>   
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Netkit.users mailing list
>>>>> Netkit.users at list.dia.uniroma3.it
>>>>> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>>>>>   
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Netkit.users mailing list
>>>> Netkit.users at list.dia.uniroma3.it
>>>> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>>>
>>>
>>>
>>> _______________________________________________
>>> Netkit.users mailing list
>>> Netkit.users at list.dia.uniroma3.it
>>> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>>
>>
>>
>> _______________________________________________
>> Netkit.users mailing list
>> Netkit.users at list.dia.uniroma3.it
>> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
> 
> 
> 
> _______________________________________________
> Netkit.users mailing list
> Netkit.users at list.dia.uniroma3.it
> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: julien_cartigny.vcf
Type: text/x-vcard
Size: 328 bytes
Desc: not available
Url : http://list.dia.uniroma3.it/pipermail/netkit.users/attachments/20100808/45f80b18/attachment.vcf 


More information about the Netkit.users mailing list