Re: [Fink-devel] ftgl won't compile on Leopard

2007-12-19 Thread Hans-Christoph Steiner

Here's the answer, I think.  I don't currently have access to a  
Leopard machine, so feel free to beat me to fixing this.  :)

>
>> Leopard use the unix def
>> i change FTVectoriser.cpp like this
>>
>> #ifdef __APPLE_CC__
>> typedef GLvoid (*GLUTesselatorFunction)();
>> #elif defined( __mips ) || defined( __linux__ ) || defined 
>> ( __FreeBSD__
>> ) || defined( __OpenBSD__ ) || defined( __sun ) || defined  
>> (__CYGWIN__)
>> typedef GLvoid (*GLUTesselatorFunction)();
>>
>
>
> so what exactly is the difference between apple and the rest of  
> unix here?
> wouldn't it be easier to just add "|| defined (__APPLE__)"


.hc

On Dec 10, 2007, at 6:54 AM, Ben Willmore wrote:

> Hi,
>
> It seems the ftgl package is broken on Leopard. I have the updated
> Xquartz installed (the fink-specific variant), though I doubt that's
> relevant.
>
> Ben
>
> [EMAIL PROTECTED] ~] $ fink install ftgl
> Information about 6201 packages read in 1 seconds.
> The following package will be installed or updated:
>  ftgl
> Setting runtime build-lock...
> dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-ftgl-2.1.2-3
> /sw/src/fink.build
> dpkg-deb: building package `fink-buildlock-ftgl-2.1.2-3' in
> `/sw/src/fink.build/fink-buildlock- 
> ftgl-2.1.2-3_2007.12.10-14.51.22_darwin-i386.deb'.
> Installing build-lock package...
> /sw/bin/dpkg-lockwait -i
> /sw/src/fink.build/fink-buildlock- 
> ftgl-2.1.2-3_2007.12.10-14.51.22_darwin-i386.deb
> Selecting previously deselected package fink-buildlock-ftgl-2.1.2-3.
> (Reading database ... 8784 files and directories currently installed.)
> Unpacking fink-buildlock-ftgl-2.1.2-3 (from
> .../fink-buildlock-ftgl-2.1.2-3_2007.12.10-14.51.22_darwin-i386.deb)
> ...
> Setting up fink-buildlock-ftgl-2.1.2-3 (2007.12.10-14.51.22) ...
> gzip -dc /sw/src/ftgl-2.1.2.tar.gz | /sw/bin/tar -xf -
> --no-same-owner --no-same-permissions
> perl -pi -e 's,Libraries/libfreetype.a,/sw/lib/freetype219/lib/ 
> libfreetype.a,'
> mac/FTGL.xcode/project.pbxproj
> perl -pi -e 's,(../mac/Libraries),"/sw/lib/freetype219/lib \1",'
> mac/FTGL.xcode/project.pbxproj
> perl -pi -e 's,/usr/local,/sw,' mac/FTGL.xcode/project.pbxproj
> perl -pi -e 's,"(../mac/Includes),"/sw/lib/freetype219/include
> /sw/lib/freetype219/include/freetype2 \1,'
> mac/FTGL.xcode/project.pbxproj
> perl -pi -e 's,/Users/henry/Development/PROJECTS/FTGL,/sw/src/ 
> fink.build/ftgl-2.1.2-3/FTGL,'
> mac/FTGL.xcode/project.pbxproj
> perl -pi -e 's,(HEADER_SEARCH_PATHS =
> )(Includes),\1"/sw/lib/freetype219/include
> /sw/lib/freetype219/include/freetype2 \2",'
> mac/FTGL.xcode/project.pbxproj
> cd mac && xcodebuild
> (NOTE: project FTGL was written by an older Xcode version (39) --
> temporarily upgrading it (without modifying project file))
>
> === BUILDING NATIVE TARGET ftgl WITH THE DEFAULT CONFIGURATION  
> (Default) ===
>
> Checking Dependencies...
>
> CompileC build/FTGL.build/Default/ftgl.build/Objects-normal/i386/ 
> FTBitmapGlyph.o
> /sw/src/fink.build/ftgl-2.1.2-3/FTGL/src/FTBitmapGlyph.cpp normal i386
> c++ com.apple.compilers.gcc.4_0
> cd /sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac
> /Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs
> -fno-exceptions -fno-rtti -fasm-blocks -Os -fmessage-length=0
> -mmacosx-version-min=10.5 -gdwarf-2
> -I/sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/FTGL.build/Default/ 
> ftgl.build/ftgl.hmap
> -Wmost -Wno-four-char-constants -Wno-unknown-pragmas
> -F/sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/Default
> -I/sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/Default/include
> -I/sw/lib/freetype219/include -I/sw/lib/freetype219/include/freetype2
> -IIncludes -I/sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/ 
> FTGL.build/Default/ftgl.build/DerivedSources
> -c /sw/src/fink.build/ftgl-2.1.2-3/FTGL/src/FTBitmapGlyph.cpp -o
> /sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/FTGL.build/Default/ 
> ftgl.build/Objects-normal/i386/FTBitmapGlyph.o
>
> CompileC build/FTGL.build/Default/ftgl.build/Objects-normal/i386/ 
> FTCharmap.o
> /sw/src/fink.build/ftgl-2.1.2-3/FTGL/src/FTCharmap.cpp normal i386 c++
> com.apple.compilers.gcc.4_0
> cd /sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac
> /Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs
> -fno-exceptions -fno-rtti -fasm-blocks -Os -fmessage-length=0
> -mmacosx-version-min=10.5 -gdwarf-2
> -I/sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/FTGL.build/Default/ 
> ftgl.build/ftgl.hmap
> -Wmost -Wno-four-char-constants -Wno-unknown-pragmas
> -F/sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/Default
> -I/sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/Default/include
> -I/sw/lib/freetype219/include -I/sw/lib/freetype219/include/freetype2
> -IIncludes -I/sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/ 
> FTGL.build/Default/ftgl.build/DerivedSources
> -c /sw/src/fink.build/ftgl-2.1.2-3/FTGL/src/FTCharmap.cpp -o
> /sw/src/fink.build/ftgl-2.1.2-3/FTGL/mac/build/FTGL.build/Default/ 
> ftgl.build/Objects-normal/i386/FTCharmap.o
>
> CompileC build/FTGL.

Re: [Fink-devel] libnasl3-ssl-2.2.6-1 compile problem

2007-12-19 Thread Corey Halpin
On 2007-12-18, Kerem Yazici wrote:
> I am trying to compile this library file but I am getting error message as 
> below.
 
  Unfortunately, I don't have a 10.5 box to test on.
  The unitialized value errors are... odd.

  Unfortunately, right now I'm sitting with 707 hours to complete my thesis.  
So I don't have a lot of time to dig into this.

  For now I'll punt to fink-devel.

  Sorry I can't be of more help.

~crh

> dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-libnasl3-ssl-2.2.6-1 
> /sw/src/fink.build
> dpkg-deb: building package `fink-buildlock-libnasl3-ssl-2.2.6-1' in 
> `/sw/src/fink.build/fink-buildlock-libnasl3-ssl-2.2.6-1_2007.12.18-15.11.08_darwin-i386.deb'.
> Installing build-lock package...
> /sw/bin/dpkg-lockwait -i 
> /sw/src/fink.build/fink-buildlock-libnasl3-ssl-2.2.6-1_2007.12.18-15.11.08_darwin-i386.deb
> Selecting previously deselected package 
> fink-buildlock-libnasl3-ssl-2.2.6-1.
> (Reading database ... 29017 files and directories currently installed.)
> Unpacking fink-buildlock-libnasl3-ssl-2.2.6-1 (from 
> .../fink-buildlock-libnasl3-ssl-2.2.6-1_2007.12.18-15.11.08_darwin-i386.deb) 
> ...
> Setting up fink-buildlock-libnasl3-ssl-2.2.6-1 (2007.12.18-15.11.08) ...
> gzip -dc /sw/src/libnasl-2.2.6.tar.gz | /sw/bin/tar -xf -  --no-same-owner 
> --no-same-permissions
> Use of uninitialized value in list assignment at 
> /sw/lib/perl5/Fink/PkgVersion.pm line 4907,  line 1.
> Use of uninitialized value in list assignment at 
> /sw/lib/perl5/Fink/PkgVersion.pm line 4907,  line 1.
> Use of uninitialized value in list assignment at 
> /sw/lib/perl5/Fink/PkgVersion.pm line 4907,  line 1.
> Use of uninitialized value in list assignment at 
> /sw/lib/perl5/Fink/PkgVersion.pm line 4907,  line 1.
> ./configure --prefix=/sw --with-pic --enable-shared --enable-static 
> --mandir=/sw/share/man --infodir=/sw/share/info --libexecdir=/sw/lib 
> --with-ssl
> creating cache ./config.cache
> checking for gcc... gcc
> checking whether the C compiler (gcc  -L/sw/lib) works... yes
> checking whether the C compiler (gcc  -L/sw/lib) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for Cygwin environment... no
> checking for mingw32 environment... no
> checking how to run the C preprocessor... gcc -E
> checking host system type... i686-apple-darwin9.1.0
> checking build system type... i686-apple-darwin9.1.0
> checking for ld used by GCC... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
> checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) is 
> GNU ld... no
> checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to reload 
> object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -p
> checking whether ln -s works... yes
> checking how to recognise dependant libraries... file_magic Mach-O 
> dynamically linked shared library
> checking for object suffix... o
> checking for executable suffix... rm: conftest.dSYM: is a directory
> .dSYM
> checking command to parse /usr/bin/nm -p output... rm: conftest.dSYM: is a 
> directory
> rm: conftest.dSYM: is a directory
> rm: conftest.dSYM: is a directory
> rm: conftest.dSYM: is a directory
> failed
> checking for dlfcn.h... yes
> checking for ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for gcc option to produce PIC... -fno-common
> checking if gcc PIC flag -fno-common works... yes
> checking if gcc static flag -static works... no
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo... yes
> checking if gcc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) 
> supports shared libraries... yes
> checking how to hardcode library paths into programs... unsupported
> checking whether stripping libraries is possible... no
> checking dynamic linker characteristics... darwin9.1.0 dyld
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> creating libtool
> checking whether make sets ${MAKE}... yes
> checking for a BSD compatible install... /usr/bin/install -c
> checking if the compiler understands -pipe... yes
> checking for nessus-config... /sw/bin/nessus-config
> checking for openssl/md2.h... yes
> checking for openssl/md4.h... yes
> checking for openssl/md5.h... yes
> checking for bison... /sw/bin/bison
> checking for ANSI C header files... no
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking for dirent.h that defines DIR... yes
> checking for opendir in -ldir... no
> checking for -lrpcsvc... no
> checking for /usr/ucbinclude/fcntl.h... no
> checking for unistd.h... yes
> checking for getopt.h... yes
> checking for string.h... yes
> checking for strings.h... yes
> checking for sys/sockio.h... yes
> checking for sys/sock