-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/27/11 7:39 AM, Alexander Hansen wrote:
> On 10/26/11 9:57 PM, David Dieno wrote:
>> Hello,
> 
>> I'm having a problem installing gettext-tools  0.17-18 with
>> xcode 4.2 as a dependency of tesseract.
> 
>> Interestingly enough, I can install the latest gettext-0.18.1.1, 
>> but I don't know enough about fink to force it to use a manually 
>> installed version as a dependency for another package.
> 
> 
> Simple answer:  Fink doesn't work that way.  You would need to
> update the gettext-tools package description it uses..
> 
>> Thanks, Dave
> 
> 
>> Here's the issue:
> 
> 
>> fink install gettext-tools
> 
>> gcc -std=gnu99 -g -O2 -o .libs/xgettext xgettext-xgettext.o 
>> xgettext-x-c.o xgettext-x-po.o xgettext-x-sh.o
>> xgettext-x-python.o xgettext-x-lisp.o xgettext-x-elisp.o
>> xgettext-x-librep.o xgettext-x-scheme.o xgettext-x-smalltalk.o
>> xgettext-x-java.o xgettext-x-csharp.o xgettext-x-awk.o
>> xgettext-x-ycp.o xgettext-x-tcl.o xgettext-x-perl.o
>> xgettext-x-php.o xgettext-x-rst.o xgettext-x-glade.o
>> -Wl,-framework -Wl,CoreFoundation  -L/sw/lib
>> ./.libs/libgettextsrc.dylib 
>> /sw/src/fink.build/gettext-tools-0.17-18/gettext-0.17/gettext-tools/gnulib-lib/.libs/libgettextlib.dylib
>>
>> 
- -lncurses
>> /sw/src/fink.build/gettext-tools-0.17-18/gettext-0.17/gettext-tools/intl/.libs/libintl.dylib
>>
>> 
/sw/lib/libiconv.dylib -lc /sw/lib/libexpat.dylib ld: in
>> xgettext-xgettext.o, could not parse object file 
>> xgettext-xgettext.o: Malformed metadata record for architecture 
>> i386 collect2: ld returned 1 exit status make[3]: *** [xgettext] 
>> Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] 
>> Error 1 make: *** [all] Error 2 ### execution of cd failed, exit 
>> code 2 Removing runtime build-lock... Removing build-lock 
>> package... /sw/bin/dpkg-lockwait -r 
>> fink-buildlock-gettext-tools-0.17-18 (Reading database ... 5109 
>> files and directories currently installed.) Removing 
>> fink-buildlock-gettext-tools-0.17-18 ... Failed: phase
>> compiling: gettext-tools-0.17-18 failed
> 
>> Before reporting any errors, please run "fink selfupdate" and
>> try again. If you continue to have issues, please check to see if
>> the FAQ on Fink's website solves the problem.  If not, ask on one
>> of these mailing lists:
> 
>> The Fink Users List <[email protected]> The Fink 
>> Beginners List <[email protected]>.
> 
>> Please try to include the complete error message in your report. 
>> This generally consists of a compiler line starting with e.g.
>> "gcc" or "g++" followed by the actual error output from the
>> compiler.
> 
>> Also include the following system information: Package manager 
>> version: 0.31.3 Distribution version: selfupdate-rsync Wed Oct
>> 26 17:39:00 2011, 10.6, i386 Trees: local/main stable/main 
>> unstable/main Xcode: 4.2
> 
> 
> 
> The issue here is that changes in Xcode 4.2 have changed the
> compiler that the fink tool defaults to.
> 
> We'll push an update out shortly.

"Shortly" has succumbed to technical difficulties. Here's how to work
around this issue:

1)  Edit /sw/var/lib/fink/path-prefix-10.6/compiler_wrapper as a super
user and change

export PATH="$newpath"
exec $compiler -arch i386 "$@"

- --to--

export PATH="$newpath"
# use Apple gcc-4.2 compilers on SL
case `uname -r` in
10.*)
        case $compiler in
        cc|gcc)
                compiler="gcc-4.2"
                ;;
        c++|g++)
                compiler="g++-4.2"
                ;;
        esac
        ;;
esac
exec $compiler -arch i386 "$@"

2)  Edit /sw/lib/perl5/Fink/PkgVersion.pm as a superuser and change:

                print GPP <<EOF;
#!/bin/sh
compiler=\${0##*/}
save_IFS="\$IFS"
IFS=:
newpath=
for dir in \$PATH ; do
  case \$dir in
    *var/lib/fink/path-prefix*) ;;
    *) newpath="\${newpath:+\${newpath}:}\$dir" ;;
  esac
done
IFS="\$save_IFS"
export PATH="\$newpath"
exec \$compiler "-arch" "$arch" "\$@"
EOF
                close GPP;
                chmod 0755, $gpp or die "Path-prefix file $gpp cannot
be made executable!\n";

- --to--

                print GPP <<EOF;
#!/bin/sh
compiler=\${0##*/}
save_IFS="\$IFS"
IFS=:
newpath=
for dir in \$PATH ; do
  case \$dir in
    *var/lib/fink/path-prefix*) ;;
    *) newpath="\${newpath:+\${newpath}:}\$dir" ;;
  esac
done
IFS="\$save_IFS"
export PATH="\$newpath"
# use Apple gcc-4.2 compilers on SL
case `uname -r` in10.*)
        case \$compiler in
        cc|gcc)
                compiler="gcc-4.2"
       c++|g++)
                compiler="g++-4.2"
                ;;
        esac
        ;;
esac
exec \$compiler "-arch" "$arch" "\$@"
EOF
                close GPP;
                chmod 0755, $gpp or die "Path-prefix file $gpp cannot
be made executable!\n";

- -- 
Alexander Hansen
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6q37cACgkQB8UpO3rKjQ8IxACeIxOUus+/PpX2L5nEr5buKWNu
rTQAn0nuvA98P+CDPO9tXDZYA6Dr2qvS
=/G11
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to