Tobias Gasser | 1 May 20:17 2010
Picon

console settings to be compatible with ubuntu

up to yesterday, i never had problems with the charsets, but now i 
finally could convince one of my customers to use linux on a new desktop 
machine. up to now, i just use linux for servers, mostly lfs and the 
desktops are running windows. most customers require one or another 
proprietary software which requires windows, and wine is usually not 
build for those special products. but that's not the question today, i 
just wanted to introduce the envrionment i'm useing.

as mentionned, i never had any problems with this setup, but now i'm 
stuck with codepages!!

i never had any problems to access the server from any windows. but with 
ubuntu i just get garbage with the filename and even with plain textfiles!!

same with samba and nfs.

i tried for hours to get a working configuration, but got no running result!

as i'm from CH, i use

KEYMAP="de_CH-latin1"
FONT="lat9w-16 -m 8859-15"

in /etc/sysconfig/console

and

dos charset = cp850
unix charset = ISO8859-1

(Continue reading)

xinglp | 3 May 12:11 2010
Picon

Is there anything like chkconfig.

That can manage the /etc/rc.d/rcX.d/   /etc/rc.d/rcsysinit.d/
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

gaurav k | 4 May 04:24 2010
Picon

Make error in glibc

Hey Guys,

This is my first mail to the list- I'm a relative newbie- though not a complete Linux noob who is clueless about what is happening.


I am using Ubuntu 10.04- Lucid Lynx and I'm following LFS version 6.6.


My Host System Requirements output is as follows:

bash, version 4.1.5(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303
bison (GNU Bison) 2.4.1
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  7.4
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.2
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7) stable release version 2.11.1
GNU grep 2.5.4
gzip 1.3.12
Linux version 2.6.32-21-generic (buildd <at> rothera) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
m4 (GNU M4) 1.4.13
GNU Make 3.81
Perl version='5.10.1';
GNU sed version 4.2.1
tar (GNU tar) 1.22
Texinfo:
Compilation OK



I am getting errors while trying to 'make' glibc (SECTION 5.7):

make[4]: Leaving directory `/mnt/lfs/glibc-build/glibc-2.11.1/time'
make[3]: Leaving directory `/mnt/lfs/glibc-build/glibc-2.11.1/elf'
make[2]: Leaving directory `/mnt/lfs/glibc-build/glibc-2.11.1/elf'
i686-lfs-linux-gnu-gcc -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -B/mnt/lfs/glibc-build/csu/ -Wl,--version-script=/mnt/lfs/glibc-build/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -L/mnt/lfs/glibc-build -L/mnt/lfs/glibc-build/math -L/mnt/lfs/glibc-build/elf -L/mnt/lfs/glibc-build/dlfcn -L/mnt/lfs/glibc-build/nss -L/mnt/lfs/glibc-build/nis -L/mnt/lfs/glibc-build/rt -L/mnt/lfs/glibc-build/resolv -L/mnt/lfs/glibc-build/crypt -L/mnt/lfs/glibc-build/nptl -Wl,-rpath-link=/mnt/lfs/glibc-build:/mnt/lfs/glibc-build/math:/mnt/lfs/glibc-build/elf:/mnt/lfs/glibc-build/dlfcn:/mnt/lfs/glibc-build/nss:/mnt/lfs/glibc-build/nis:/mnt/lfs/glibc-build/rt:/mnt/lfs/glibc-build/resolv:/mnt/lfs/glibc-build/crypt:/mnt/lfs/glibc-build/nptl -o /mnt/lfs/glibc-build/libc.so -T /mnt/lfs/glibc-build/shlib.lds /mnt/lfs/glibc-build/csu/abi-note.o /mnt/lfs/glibc-build/elf/soinit.os /mnt/lfs/glibc-build/libc_pic.os /mnt/lfs/glibc-build/elf/sofini.os /mnt/lfs/glibc-build/elf/interp.os /mnt/lfs/glibc-build/elf/ld.so -lgcc
/mnt/lfs/glibc-build/libc_pic.os: In function `__libc_fork':
/mnt/lfs/glibc-build/glibc-2.11.1/posix/../nptl/sysdeps/unix/sysv/linux/i386/../fork.c:79: undefined reference to `__sync_bool_compare_and_swap_4'
/mnt/lfs/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/mnt/lfs/glibc-build/libc_pic.os: In function `nscd_getpw_r':
/mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd_getpw_r.c:233: undefined reference to `__sync_fetch_and_add_4'
/mnt/lfs/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/mnt/lfs/glibc-build/libc_pic.os: In function `nscd_getgr_r':
/mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd_getgr_r.c:322: undefined reference to `__sync_fetch_and_add_4'
/mnt/lfs/glibc-build/libc_pic.os: In function `__nscd_drop_map_ref':
/mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd-client.h:320: undefined reference to `__sync_fetch_and_add_4'
/mnt/lfs/glibc-build/libc_pic.os:/mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd_gethst_r.c:415: more undefined references to `__sync_fetch_and_add_4' follow
/mnt/lfs/glibc-build/libc_pic.os: In function `__nscd_get_map_ref':
/mnt/lfs/glibc-build/glibc-2.11.1/nscd/nscd_helper.c:433: undefined reference to `__sync_val_compare_and_swap_4'
/mnt/lfs/glibc-build/libc_pic.os: In function `*__GI___libc_freeres':
/mnt/lfs/glibc-build/glibc-2.11.1/malloc/set-freeres.c:39: undefined reference to `__sync_bool_compare_and_swap_4'
collect2: ld returned 1 exit status
make[1]: *** [/mnt/lfs/glibc-build/libc.so] Error 1
make[1]: Leaving directory `/mnt/lfs/glibc-build/glibc-2.11.1'
make: *** [all] Error 2


I hope this excerpt of the make output is enough.



I have not deviated from the book at all, the only possible difference might be any differences in the host system requirement. For example, /bin/sh  is not a symlink to bash, but I've only used bash throughout.


I went through a few of the mail archives, and I realized that I had made a mistake in the configparams file - I have rectified it.

$ cat configparams
CFLAGS += -march=i486 -mtune=native



My extracted glibc is a subfolder of an independent folder glibc-build.


I removed glibc-2.11.1 & downloaded & tried to install glibc version 2.5.1 & 2.8.1.  But, I got errors saying that these packages are too outdated.

How do I proceed further? 


Thank you so much!
 
Gaurav K
"There is a place. Like no place on Earth. A land full of wonder,mystery, and danger! Some say to survive it: You need to be as mad as a hatter..."


--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Bruce Dubbs | 4 May 04:49 2010
Picon

Re: Make error in glibc

gaurav k wrote:
> Hey Guys, 
> 
> This is my first mail to the list- I'm a relative newbie- though not a complete Linux noob who is clueless
about what is happening.
> 
> 
> I am using Ubuntu 10.04- Lucid Lynx and I'm following LFS version 6.6. 
> 
> 
> My Host System Requirements output is as follows:
> 
> bash, version 4.1.5(1)-release
> /bin/sh -> /bin/dash

Change to bash.

> Binutils: (GNU Binutils for Ubuntu) 2.20.1-system.20100303
> bison (GNU Bison) 2.4.1
> /usr/bin/yacc -> /usr/bin/bison.yacc

Is this a wrapper script pointing to GNU Bison?  If so, it's OK.

> bzip2,  Version 1.0.5, 10-Dec-2007.
> Coreutils:  7.4
> diff (GNU diffutils) 2.8.1
> find (GNU findutils) 4.4.2
> GNU Awk 3.1.6
> /usr/bin/awk -> /usr/bin/gawk
> gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
> GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7) stable release version 2.11.1

I don't know if this will cause a problem or not.

   -- Bruce
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Chris Staub | 4 May 05:40 2010

Re: Make error in glibc

On 05/03/2010 10:24 PM, gaurav k wrote:
> Hey Guys,
>
> This is my first mail to the list- I'm a relative newbie- though not a
> complete Linux noob who is clueless about what is happening.
>
> I have not deviated from the book at all, the only possible difference
> might be any differences in the host system requirement. For example,
> /bin/sh is not a symlink to bash, but I've only used bash throughout.
>

Yeah, that's not a problem.
>
> I went through a few of the mail archives, and I realized that I had
> made a mistake in the configparams file - I have rectified it.
>
> $ cat configparams
> CFLAGS += -march=i486 -mtune=native

The problem with configparms would definitely be the cause of the errors 
you got, so they should have gone away once you redid it. Did you remove 
the source/build directories before trying again?

>
> My extracted glibc is a subfolder of an independent folder glibc-build.

This is incorrect. Please see page 5.3, particularly in this case the 
last "Note" box. It says that for each package, you must unpack the 
package tarball, cd into the source dir, *then* follow instructions on 
the installation page. Therefore, you should already be in Glibc's 
source directory when you create the build dir.

Also, if you have managed to create /mnt/lfs/glibc-build, you had to 
have either chowned/chmodded /mnt/lfs, or created glibc-build as root 
(or using sudo), neither of which the book says to do. If you did use 
chown or chmod on /mnt/lfs, you should change it back (owned by root, 
755 perms).
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Bill Brown | 5 May 00:28 2010
Picon

6.21 E2fsprogs-1.41.10 101 Tests failured -make check

I have spend a good day trying to figure out the cause of all tests 
failing except for the first two and last two when issuing the 'make 
check' command;

I am using the 6.6 version of the LFS book.  Running on Ubuntu desktop 
9.10.  Which in turn is a virtual machine on VMware ESXi 4.0 free.  I am 
new to Linux development but have considerable console programming 
experience in C, C++, Java and earlier languages.  I am wanting to begin 
an open source development project to run on Linux so looking to broaden 
my foundation via this LFS process.

So I am looking for help in this specific problem but also want to 
understand what were the key observations that lead to the solution.  
Below is the test results section listed on the terminal during 'make 
check' with the middle 97 failed tests snipped out of the middle:

Creating test_script...
Running e2fsprogs test suite...

d_loaddump: debugfs load/dump test: cmp: test.verify: No such file or 
directory
failed
e_brel_bma: block relocation table using the memory array 
implementation: skipped
e_icount_normal: inode counting abstraction optimized for storing inode 
counts: ok
e_icount_opt: inode counting abstraction optimized for counting: ok
e_irel_ima: inode relocation table using the memory array 
implementation: skipped
f_16384_block: 16384 byte blocksize: failed
f_8192_block: 8192 byte blocksize: failed
<SNIP -97 other failed tests>
r_inline_xattr: shrinking filesystem with in-inode extended attributes: 
failed
r_move_itable: filesystem resize which requires moving the inode table: 
failed
r_resize_inode: filesystem resize with a resize_inode present: failed
u_mke2fs: e2undo with mke2fs: ok
u_tune2fs: e2undo with tune2fs: ok
4 tests succeeded    101 tests failed
make[1]: *** [check] Error 1
make[1]: Leaving directory `/sources/e2fsprogs-1.41.10/build/tests'
make: *** [check-recursive] Error 1

I used the standard config command from the book:
../configure --prefix=/usr --with-root-prefix="" \
--enable-elf-shlibs --disable-libblkid --disable-libuuid \
--disable-uuidd --disable-fsck

Thanks for any insights...  Bill
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Chris Staub | 5 May 00:57 2010

Re: 6.21 E2fsprogs-1.41.10 101 Tests failured -make check

On 05/04/2010 06:28 PM, Bill Brown wrote:
> I have spend a good day trying to figure out the cause of all tests
> failing except for the first two and last two when issuing the 'make
> check' command;
>
> I am using the 6.6 version of the LFS book.  Running on Ubuntu desktop
> 9.10.  Which in turn is a virtual machine on VMware ESXi 4.0 free.  I am
> new to Linux development but have considerable console programming
> experience in C, C++, Java and earlier languages.  I am wanting to begin
> an open source development project to run on Linux so looking to broaden
> my foundation via this LFS process.
>
>
> Thanks for any insights...  Bill

That many failing tests likely indicates some kind of serious problems, 
though the output given doesn't really provide any info outside of 
saying that tests failed. There are likely clues in the log files for 
each test - check in the "tests" directory (inside the "build" dir) for 
.log files - inspect the log for each test and see if any provide useful 
information.
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Bill Brown | 5 May 02:36 2010
Picon

Re: 6.21 E2fsprogs-1.41.10 101 Tests failured -make check

Chris, thanks for the prompt response.  I have spent a good chunk of 
time looking at the tests\*.log & .failed files.  If like the DOS world, 
anything but exit status 0 is an error, I suspect the Exit status 127's 
are failures.  Here is a snippet from r_move_itable.failed that points 
to "super-block" issues:
root:/sources/e2fsprogs-1.41.10/build/tests# more r_move_itable.failed
--- ../../tests/r_move_itable/expect    2009-08-13 01:39:58.000000000 +0000
+++ r_move_itable.log    2010-05-05 15:22:33.000000000 +0000
 <at>  <at>  -1,2622 +1,28  <at>  <at> 
  mke2fs -q -F -o Linux -b 1024 -g 256 test.img 1024
  resize2fs -p test.img 10000
-Resizing the filesystem on ./test.img to 10000 (1k) blocks.
-Begin pass 1 (max = 35)
-Extending the inode table     XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-The filesystem on ./test.img is now 9985 blocks long.
-
-Pass 1: Checking inodes, blocks, and sizes
-Pass 2: Checking directory structure
-Pass 3: Checking directory connectivity
-Pass 4: Checking reference counts
-Pass 5: Checking group summary information
-test_filesys: 11/1248 files (0.0% non-contiguous), 1281/9985 blocks
-Exit status is 0
+../resize/resize2fs: Bad magic number in super-block while trying to 
open ./tes
t.img
+Couldn't find valid filesystem superblock.
+Exit status is 127
----------------------
Looking at the test script if I understand it correctly,  it creates a 
test file system, resizes it and then checks the resulting fs.  It looks 
like the fsck completes OK it is not clear at what open of ./test.img is 
resulting in the magic number error.  At this point I do not have an 
/etc/fstab file in chroot environment.  There is an empty /etc/mtab 
file.  I do have the libmagic link libraries in /usr/lib Does this point 
anyone to the problem causing the 101 e2fsprogs test failures?

Again thanks for any clarity...
On 5/4/2010 3:57 PM, Chris Staub wrote:
> On 05/04/2010 06:28 PM, Bill Brown wrote:
>    
>> I have spend a good day trying to figure out the cause of all tests
>> failing except for the first two and last two when issuing the 'make
>> check' command;
>>
>> I am using the 6.6 version of the LFS book.  Running on Ubuntu desktop
>> 9.10.  Which in turn is a virtual machine on VMware ESXi 4.0 free.  I am
>> new to Linux development but have considerable console programming
>> experience in C, C++, Java and earlier languages.  I am wanting to begin
>> an open source development project to run on Linux so looking to broaden
>> my foundation via this LFS process.
>>
>>
>> Thanks for any insights...  Bill
>>      
> That many failing tests likely indicates some kind of serious problems,
> though the output given doesn't really provide any info outside of
> saying that tests failed. There are likely clues in the log files for
> each test - check in the "tests" directory (inside the "build" dir) for
> .log files - inspect the log for each test and see if any provide useful
> information.
>    
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Zhiyu Ren | 5 May 04:16 2010
Picon

Invitation to connect on LinkedIn

LinkedIn

Zhiyu Ren requested to add you as a connection on LinkedIn:

Mohamed,

I'd like to add you to my professional network on LinkedIn.

- Zhiyu

 
Accept View invitation from Zhiyu Ren

 

DID YOU KNOW that LinkedIn can find the answers to your most difficult questions?
Post those vexing questions on LinkedIn Answers to tap into the knowledge of the world's foremost business experts.

 

© 2010, LinkedIn Corporation

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
Bruce Dubbs | 5 May 06:19 2010
Picon

Re: Invitation to connect on LinkedIn

Zhiyu Ren wrote:
> LinkedIn

User blocked.  I sent a message to LinkedIn to try to get them to not 
send invitations to the linuxfromscratch.org domain.

   -- Bruce
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Gmane