On Feb 6, 2004, at 11:49 AM, Alexander K. Hansen wrote:



On Feb 6, 2004, at 1:32 PM, GoochRules! wrote:


Greetings,

`fink install freetype` fails to compile:

from the configure script:
checking for gcc... gcc3
checking whether the C compiler (gcc3 -no-cpp-precomp -I/sw/include -L/sw/lib) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

<AKH> This error usually means that your Developer Tools are the wrong version for your OS--or possibly you missed an optional package install. What OS and Dev Tools are you running?



OS X 10.3.2, Xcode 1.1 (IDE 300.0, Core: 300.0, ToolSupport: 300.0). I installed Xcode from the 20-some piece download, with no previous exisiting install. I may installed only the latest gcc.


### execution of ./configure failed, exit code 1
Failed: compiling freetype-1.3.1-7 failed

from config.log:
configure:711: checking for gcc
configure:824: checking whether the C compiler (gcc3 -no-cpp-precomp -I/sw/include -L/sw/lib) works
configure:840: gcc3 -o conftest -no-cpp-precomp -I/sw/include -no-cpp-precomp -I/sw/include -L/sw/lib conftest.c -L/sw/lib 1>&5
/configure: line 1: gcc3: command not found
configure: failed program was:


#line 835 "configure"
#include "confdefs.h"

main(){return(0);}


So, I tried `/usr/bin> ln -s gcc-3.3 gcc3`.

<AKH> It's not too surprising that this doesn't work.


As you can see, gcc3 and gcc3.3 are not identical (10.3.2 w/all Xcode updates in place):

$ gcc3 --version
gcc3 (GCC) 3.1 20021003 (prerelease)

$ gcc-3.3 --version
gcc-3.3 (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)

Well... I simply don't have gcc3, only gcc-3.3 and gcc (which points to gcc-3.3)


/usr/bin> gcc-3.3 --version
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)

So, I wouldn't say my tools are the wrong version for the OS, but that the package is not looking for the tools that I do have installed. I'm not saying I won't install gcc3, but it seems rather silly (in general) to tweak dev tools to accommodate source, rather than to tweak source to work with dev tools.


This got me past the configure script, but then I get errors during compilation:
gcc3 -c -I. -I/sw/src/freetype-hinting-1.3.1-8/freetype-1.3.1/test/arch/unix/../ .. -I.. -I/sw/src/freetype-hinting-1.3.1-8/freetype-1.3.1/test/arch/unix/../ .././lib -I/sw/src/freetype-hinting-1.3.1-8/freetype-1.3.1/test/arch/unix/../ .././lib/extend -no-cpp-precomp -I/sw/include -I/usr/X11R6/include -no-cpp-precomp -I/sw/include -DX11 -DLOCALEDIR='"/sw/share/locale"' ftdump.c
ftdump.c:172:29: pasting "." and "glyph_object" does not give a valid preprocessing token
ftdump.c:182:31: pasting "." and "first_instance" does not give a valid preprocessing token
ftdump.c:191:32: pasting "." and "second_instance" does not give a valid preprocessing token
ftdump.c:201:62: pasting "." and "face_object" does not give a valid preprocessing token
ftdump.c:202:62: pasting "." and "glyph_object" does not give a valid preprocessing token
ftdump.c:203:62: pasting "." and "second_instance" does not give a valid preprocessing token
ftdump.c:863:33: pasting "." and "initial_overhead" does not give a valid preprocessing token
ftdump.c:882:28: pasting "." and "face_object" does not give a valid preprocessing token
make[1]: *** [ftdump.o] Error 1
make: *** [tttest] Error 2



FYI, there are also a lot of linker warnings, for example:
ld: warning prebinding not disabled because (__TEXT segment (address = 0x0 size = 0x3d000) of /sw/lib/libttf.2.dylib overlaps with __LINKEDIT segment (address = 0x6000 size = 0xe000) of /sw/lib/libintl.1.dylib


All of these errors/warnings appear in both freetype and freetype-hinting. I ran both `fink selfupdate` and `fink update-all` (using CVS) just prior to `fink install freetype[-hinting]`.


--Matthew Peltzer





--
Alexander Hansen
Levitated Dipole Experiment
http://www.psfc.mit.edu/LDX





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to