Closed Bug 136194 Opened 23 years ago Closed 23 years ago

Configure complains about Freetype, hence it is installed correctly

Categories

(SeaMonkey :: Build Config, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bootsy52, Assigned: netscape)

Details

Attachments

(1 file)

The Configure Script complains about not finding Freetype, but it definitley finds freetype-config. The output of freetype-config points to the correct locations of freetype, and Freetype is installed correctly. Configure complains: checking for freetype-config... (cached) /usr/bin/freetype-config checking for FreeType - version >= 6.1.0... no *** The FreeType test program failed to run. If your system uses *** shared libraries and they are installed outside the normal *** system library path, make sure the variable LD_LIBRARY_PATH *** (or whatever is appropiate for your system) is correctly set. checking for freetype-config... (cached) /usr/bin/freetype-config checking for FreeType - version >= 8.0.2... no Output of freetype-config: freetype-config --version 6.1.0 freetype-config --cflags -I/usr/X11R6/include/freetype2 freetype-config --libs -L/usr/X11R6/lib -lfreetype freetype-config --prefix /usr/X11R6 I remarked this first on yesterdays build (April 7th 2002), probably it has been there for a longer time don't know.
The test for FreeType2 is done by freetype2.m4 which came from the FreeType2 distribution: http://lxr.mozilla.org/seamonkey/source/build/autoconf/freetype2.m4 Could you add some diagnostic (echo) statements to that and see what is happening? Note: When debugging the config system a full rebuild is not necessary. Just do an 'autoconf' and a './configure' and see what the config.* files report. Also, would you kindly add info on the OS?
OS is Linux Mandrake 8.0 with freetype2.0.2, gcc-2.95.3, glib-2.2.2, gtk-1.2.10, kernel-2.4.8-ac7 I have done autoconf and then ./configure. But I don't understand what exactly I should echo of the freetype2.m4 The file seems to be the same then the one of lxr.
It's a little strange that mozilla is using the _cached_ /usr/bin/freetype-config which is not the same as `freetype-config --prefix`/bin/freetype-config Perhaps there is more than one freetype-config on the system. Try "which freetype-config". There may also be a stale config.cache or even an old config.site lying around.
I had a Mandrake user with a very similar problem (bug 127674). Is /usr/X11R6/lib in your LD_LIBRARY_PATH environment variable or in /etc/ld.so.conf? If not, could you add /usr/X11R6/lib to /etc/ld.so.conf and run 'ldconfig' (as root) and try again. ================ Other thoughts: > The file seems to be the same then the one of lxr. Yes, it should be the same. This is the code (from FreeType) that checks if FreeType2 is available on the (your) development system. > checking for FreeType - version >= 6.1.0... no > *** The FreeType test program failed to run. If your system uses This message comes from line 125 of freetype2.m4 http://lxr.mozilla.org/seamonkey/source/build/autoconf/freetype2.m4#125 > what exactly I should echo of the freetype2.m4 Starting at the failure report line I'm hoping you can to "back up" to the failure point and see exactly what is failing. Perhaps you could extract the embedded test program and look in the config.* files to find the compile and link lines to build it manually.
@tenthumbs I have only one freetype-config, due to another problem I pulled a fresh tree so there should be no other cached files lying around. The _cached_ may be come from that I build not the first time with this tree, hence I always run: make -f cient.mk distclean @Brian I was the user with that problem, and since then I changed nothing. Probably I didn't remark that error, before. @All Ok, then I will go thru freetype2.m4 and see if I can get the test program to compile manually.
Can you attach the config.log from the busted configure run?
Attached file Config.log
I think I found the error myself now, it's in Row 480. This is funny, I installed freetype2 from source with just the prefix /usr/X11R6 and it is not getting the files placed correctly. The file ft2build.h is there it is under: /usr/X11R6/include/ft2build.h
OK, Problem solved. Really strange thing, however I installed freetype-2.0.2 from source and added --prefix=/usr/X11R6 it put ft2build.h under /usr/X11R6/include but expects to see it under /usr/X11R6/include/freetype2 I symlinked it now: ln -s /usr/X11R6/include/freetype2/ft2build.h /usr/X11R6/include/ft2build.h freetype gets found and the problem seems to be gone, will add this also to the other bug.
Marking as fixed
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: