LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Missing Rules (https://www.linuxquestions.org/questions/linux-software-2/missing-rules-50226/)

Fermat 03-17-2003 02:20 AM

Missing Rules
 
I've been trying to install DevHelp and along the way I'm having to take into account a lot of dependencies - quite a lot! The last dependency I tried to install was 'glibc-linuxthreads-2.3.tar.gz'.
I opened the tarball and then cd'd into the directory 'glibc-linuxthreads-2.3'. I did ./configure, but when I did make I got two error messages,

Makefile:53: ../Makeconfig: No such file or directory
Makefile:77: ../Rules: No such file or directory

I looked inside Makefile and found these two lines,

include ../Makeconfig
...
include ../Rules

Now that means that make was looking for the files Makeconfig and Rules in the parent directory. I checked and found that there no such files there. There was a file Makeconfig in the current directory, i.e.'glibc-linuxthreads-2.3' but no Rules.

1) Shouldn't they both be in the current directory?
2) Makefile creates Makeconfig but what creates Rules?

Since I was inside Makefile I adjusted 'include ../Makeconfig' to 'include Makeconfig' and commented out the line 'include ../Rules'. Then the error message was,

make: *** No rule to make target `crti.o', needed by `libpthread.so'. Stop.

3) How can I get past this problem?

TIA

niknah 03-17-2003 06:30 AM

where does it say you need glibc-linuxthreads?
If it's the rpm, then you may already have it, it maybe included in glibc.

glibc-linuxthreads usually comes with glibc, you need the rest of glibc to compile it, the Makeconfig,Rules files come from glibc.

Dark_Helmet 03-17-2003 11:01 AM

Don't quote me on this, but I believe the linuxthreads source code is supposed to be unpacked inside the source code for the kernel. At least, I believe that's what the LFS book has you do. I would imagine that both the files it's looking for are either included in the kernel source, or created once you configure it.

It may mention something about that in the INSTALL file...

Fermat 03-17-2003 11:14 AM

Hi, I think I messed up again :(. I just noticed, you suggested gtk+2-devel-2.0.6 and I have been working with gtk2-devel-2.0.6. Here's how I got to the linuxthreads thing.

I downloaded gtk2-devel-2.0.6-10.i386.rpm. It had dependencies,
gtk2
pango-devel
atk-devel

I downloaded pango-devel-1.1.1-1.i386.rpm. It had dependencies,
libfontconfig.so.1
libXft.so.2

I downloaded fontconfig-2.0.3-3.i386.rpm. It had dependencies,
freetype
libc.so.6(GLIB_2.3)

and libc.so.6(GLIB_2.3) is found in glibc-2.3.tar.gz. I downloaded and 'detarred' this and ran ./configure in the source directory and got this final message. (I'm not sure if the first two lines are relevant)

running configure fragment for ./sysdeps/i386/elf
running configure fragment for ./sysdeps/unix/sysv/linux
checking installed Linux kernel header files... 2.0.10 or later
*** On GNU/Linux systems it is normal to compile GNU libc with the
*** `linuxthreads' add-on. Without that, the library will be
*** incompatible with normal GNU/Linux systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter `--disable-sanity-checks'.

Now I ran make and got these error messages,

[root@localhost glibc-2.3]# make
Makeconfig:84: sysdeps/../config.make: No such file or directory
Makerules:694: no file name for `include'
The GNU C library has not been configured.
Run `configure' to configure it before building.
Try `configure --help' for more details.
make: *** [sysdeps/../config.status] Error 1

So, I thought the final message from ./configure was some kind of error, so I thought I might get rid of it if I installed the linuxthreads thing. Besides it was on the same web page that I downloaded glibc-2.3.tar.gz.from.

Well. that's how I got where I am, but now I see I should have got gtk+2-devel, so I'll go and get that and try again.

Fermat 03-17-2003 11:21 AM

>>It may mention something about that in the INSTALL file...

I found this in the README file,

INSTALLATION:

- Edit the Makefile, set the variables in the "Configuration" section.

- Do "make".

- Do "make install"

I edited Makefile, as I explained, but I've no idea what variables I should set, how to set them (what to), or even how to recognise them.

niknah 03-18-2003 05:59 AM

find a glibc rpm, glibc is a big program, it's going to take the whole day to compile it.

Fermat 03-19-2003 01:46 AM

Thanks, I'll go hunt it out.


All times are GMT -5. The time now is 02:59 PM.