Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Macports, Leopard, atk

20 réponses
Avatar
Nina Popravka
Chez moi la compil se vautre.
Donc soit j'ai merdoyé qqch quelque part, soit il y a un pb sous
Leopard.
Donc, quelqu'un a-t-il réussi à installer atk-1.20.0 sous Leopard ?
(macports 1.5)
--
Nina

10 réponses

1 2
Avatar
Nina Popravka
On Thu, 1 Nov 2007 01:17:15 +0100 (CET), Matt
wrote:

Que dit port(1) avec l'option verbose et debug activées ?


Y dit ça :

milady:~ ninamac$ sudo port install -d -v atk
Password:
---> Building atk with target all
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_atk/work/atk-1.20.0"
&& make all " returned error 2
Command output: make all-recursive
Making all in atk
make all-am
/bin/sh ../libtool --tagÌ --mode=link gcc -O2 -funroll-loops
-fstrict-aliasing -Wall -L/opt/local/lib -no-undefined -o
libatk-1.0.la -rpath /opt/local/lib -version-info 2009:1:2009
atkaction.lo atkcomponent.lo atkdocument.lo atkeditabletext.lo
atkgobjectaccessible.lo atkhyperlink.lo atkhyperlinkimpl.lo
atkhypertext.lo atkimage.lo atknoopobject.lo atknoopobjectfactory.lo
atkobject.lo atkobjectfactory.lo atkregistry.lo atkrelation.lo
atkrelationset.lo atkselection.lo atkstate.lo atkstateset.lo
atkstreamablecontent.lo atktable.lo atktext.lo atkutil.lo atkmisc.lo
atkvalue.lo atk-enum-types.lo -L/opt/local/lib -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -lintl -liconv
gcc -dynamiclib -o .libs/libatk-1.0.0.2009.1.dylib .libs/atkaction.o
.libs/atkcomponent.o .libs/atkdocument.o .libs/atkeditabletext.o
.libs/atkgobjectaccessible.o .libs/atkhyperlink.o
.libs/atkhyperlinkimpl.o .libs/atkhypertext.o .libs/atkimage.o
.libs/atknoopobject.o .libs/atknoopobjectfactory.o .libs/atkobject.o
.libs/atkobjectfactory.o .libs/atkregistry.o .libs/atkrelation.o
.libs/atkrelationset.o .libs/atkselection.o .libs/atkstate.o
.libs/atkstateset.o .libs/atkstreamablecontent.o .libs/atktable.o
.libs/atktext.o .libs/atkutil.o .libs/atkmisc.o .libs/atkvalue.o
.libs/atk-enum-types.o -L/opt/local/lib
/opt/local/lib/libgobject-2.0.dylib
/opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libglib-2.0.dylib
/opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib
-install_name /opt/local/lib/libatk-1.0.0.dylib
-compatibility_version 2010 -current_version 2010.1
ld: duplicate symbol _g_bit_nth_lsf in .libs/atkcomponent.o and
.libs/atkaction.o

collect2: ld returned 1 exit status
make[3]: *** [libatk-1.0.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--
Nina

Avatar
laurent.pertois
Matt wrote:

On Thu, 01 Nov 2007 01:09:43 +0100,
Nina Popravka wrote:

Chez moi la compil se vautre.
Donc soit j'ai merdoyé qqch quelque part, soit il y a un pb sous
Leopard.


Que dit port(1) avec l'option verbose et debug activées ?


Alors, atk a quelque part dans ses dépendances directes ou indirectes
(je crois que c'est gettext) besoin d'expat que je n'arrive pas non plus
à installer :

$ sudo port -d -v install expat
DEBUG: Found port in
file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/
textproc/expat
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/textpro
c/expat
DEBUG: Requested variant powerpc is not provided by port expat.
DEBUG: Requested variant gtk2 is not provided by port expat.
DEBUG: Requested variant darwin is not provided by port expat.
DEBUG: Requested variant macosx is not provided by port expat.
DEBUG: Executing variant universal provides universal
DEBUG: Skipping completed org.macports.main (expat)
DEBUG: Skipping completed org.macports.fetch (expat)
DEBUG: Skipping completed org.macports.checksum (expat)
DEBUG: Skipping completed org.macports.extract (expat)
DEBUG: Skipping completed org.macports.patch (expat)
---> Configuring expat
DEBUG: Executing org.macports.configure (expat)
DEBUG: No compiler collection selected explicitly
DEBUG: Environment: CXXFLAGS='-O2 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc'
CPPFLAGS='-I/opt/local/include' CFLAGS='-O2 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc'
LDFLAGS='-L/opt/local/lib -arch i386 -arch ppc'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.mac
ports.org_release_ports_textproc_expat/work/expat-2.0.1" && ./configure
--prefix=/opt/local --mandir=/opt/local/share/man
--disable-dependency-tracking'
checking build system type... powerpc-apple-darwin9.0.0
checking host system type... powerpc-apple-darwin9.0.0
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
Error: Target org.macports.configure returned: configure failure: shell
command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.mac
ports.org_release_ports_textproc_expat/work/expat-2.0.1" && ./configure
--prefix=/opt/local --mandir=/opt/local/share/man
--disable-dependency-tracking " returned error 77
Command output: checking build system type... powerpc-apple-darwin9.0.0
checking host system type... powerpc-apple-darwin9.0.0
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

Warning: the following items did not execute (for expat):
org.macports.activate org.macports.configure org.macports.build
org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.


Il semble que le soucis soit connu :

<http://trac.macports.org/projects/macports/ticket/13005&gt;

Si j'ai bien suivi, faut attendre une maj...

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.


Avatar
Nina Popravka
On Thu, 1 Nov 2007 01:40:04 +0100,
(Laurent Pertois) wrote:

Alors, atk a quelque part dans ses dépendances directes ou indirectes
(je crois que c'est gettext) besoin d'expat que je n'arrive pas non plus
à installer :


Alors là, c'est surréaliste, parce que moi, je l'ai installé sans
aucun pb, expat... Ainsi que gettext, glib2, et libiconv
--
Nina

Avatar
laurent.pertois
Nina Popravka wrote:

On Thu, 1 Nov 2007 01:40:04 +0100,
(Laurent Pertois) wrote:

Alors, atk a quelque part dans ses dépendances directes ou indirectes
(je crois que c'est gettext) besoin d'expat que je n'arrive pas non plus
à installer :


Alors là, c'est surréaliste, parce que moi, je l'ai installé sans
aucun pb, expat... Ainsi que gettext, glib2, et libiconv


Pffff :-/

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.


Avatar
laurent.pertois
Matt wrote:

Si j'ai bien suivi, faut attendre une maj...


Cela n'a rien à voir.
Le ticket que tu as trouvé sur le trac de MacPorts parle d'un problème lié à
ginstall(1) hors toi tu n'as même pas dépassé le stade de la configuration
;)


Ah ben vi, ça m'apprendra à lire de travers et à pas d'heure :-)

L'erreur typique "... C compiler cannot create executables" provient dans
99% des cas à un problème de permissions dans l'arborescence où la
configuration/installation se fait. Le 1% restant peut provenir d'un
problème de paramètres dans la variable d'environnement $CFLAGS

Une autre idée très ingénieuse serait de regarder ce que dit le fichier
"config.log" comme conseillé par le script de configuration =)


Le voici :

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by expat configure 2.0.1, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure --prefix=/opt/local --mandir=/opt/local/share/man
--disable-dependency-tracking

## --------- ##
## Platform. ##
## --------- ##

hostname = rdaneel.local
uname -m = Power Macintosh
uname -r = 9.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 9.0.0: Tue Oct 9 21:37:58 PDT 2007;
root:xnu-1228~1/RELEASE_PPC

/usr/bin/uname -p = powerpc
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 9.0.0: Tue Oct 9 21:37:58 PDT 2007;
root:xnu-1228~1/RELEASE_PPC
Kernel configured for a single processor only.
1 processor is physically available.
1 processor is logically available.
Processor type: ppc7450 (PowerPC 7450)
Processor active: 0
Primary memory available: 1.50 gigabytes
Default processor set: 86 tasks, 279 threads, 1 processors
Load average: 3.55, Mach factor: 0.23
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/X11R6/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2092: checking build system type
configure:2110: result: powerpc-apple-darwin9.0.0
configure:2118: checking host system type
configure:2132: result: powerpc-apple-darwin9.0.0
configure:2186: checking for gcc
configure:2202: found /usr/bin/gcc
configure:2212: result: gcc
configure:2456: checking for C compiler version
configure:2459: gcc --version </dev/null >&5
powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

configure:2462: $? = 0
configure:2464: gcc -v </dev/null >&5
Using built-in specs.
Target: powerpc-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin9 --program-prefix --host=powerpc-apple-darwin9 --target=powerpc-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
configure:2467: $? = 0
configure:2469: gcc -V </dev/null >&5
gcc-4.0: argument to `-V' is missing
configure:2472: $? = 1
configure:2495: checking for C compiler default output file name
configure:2498: gcc -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
i386 -arch ppc -I/opt/local/include -L/opt/local/lib -arch i386 -arch
ppc conftest.c >&5
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccqt1XvS.out (No such file or
directory)
configure:2501: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "expat"
| #define PACKAGE_TARNAME "expat"
| #define PACKAGE_VERSION "2.0.1"
| #define PACKAGE_STRING "expat 2.0.1"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2540: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=powerpc-apple-darwin9.0.0
ac_cv_build_alias=powerpc-apple-darwin9.0.0
ac_cv_env_CC_set ac_cv_env_CC_value ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-arch i386 -arch ppc'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-I/opt/local/include
ac_cv_env_CPP_set ac_cv_env_CPP_value ac_cv_env_CXXCPP_set ac_cv_env_CXXCPP_value ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-arch i386 -arch ppc'
ac_cv_env_CXX_set ac_cv_env_CXX_value ac_cv_env_F77_set ac_cv_env_F77_value ac_cv_env_FFLAGS_set ac_cv_env_FFLAGS_value ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/opt/local/lib -arch i386 -arch ppc'
ac_cv_env_build_alias_set ac_cv_env_build_alias_value ac_cv_env_host_alias_set ac_cv_env_host_alias_value ac_cv_env_target_alias_set ac_cv_env_target_alias_value ac_cv_host=powerpc-apple-darwin9.0.0
ac_cv_host_alias=powerpc-apple-darwin9.0.0
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
AS=''
CC='gcc'
CFLAGS='-O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch
ppc'
CPP=''
CPPFLAGS='-I/opt/local/include'
CXX=''
CXXCPP=''
CXXFLAGS='-O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch
ppc'
DEFS=''
DLLTOOL=''
ECHO='/bin/echo'
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
FILEMAP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS='-L/opt/local/lib -arch i386 -arch ppc'
LIBAGE='5'
LIBCURRENT='6'
LIBOBJS=''
LIBREVISION='2'
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
OBJDUMP=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='expat'
PACKAGE_STRING='expat 2.0.1'
PACKAGE_TARNAME='expat'
PACKAGE_VERSION='2.0.1'
PATH_SEPARATOR=':'
RANLIB=''
SHELL='/bin/sh'
STRIP=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_F77=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
bindir='${exec_prefix}/bin'
build='powerpc-apple-darwin9.0.0'
build_alias=''
build_cpu='powerpc'
build_os='darwin9.0.0'
build_vendor='apple'
datadir='${prefix}/share'
exec_prefix='NONE'
host='powerpc-apple-darwin9.0.0'
host_alias=''
host_cpu='powerpc'
host_os='darwin9.0.0'
host_vendor='apple'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='/opt/local/share/man'
oldincludedir='/usr/include'
prefix='/opt/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "expat"
#define PACKAGE_STRING "expat 2.0.1"
#define PACKAGE_TARNAME "expat"
#define PACKAGE_VERSION "2.0.1"

configure: exit 77


--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.


Avatar
Nina Popravka
On Thu, 1 Nov 2007 13:06:27 +0100 (CET), Matt
wrote:

C'est un problème du linker de bibliothèque (c'est récurrent avec des
librairies tel que libglade2 ou glib(2) à chaque changement de version
majeure de Mac OS X qui arrive également sur d'autres systèmes[1]).


C'est bien ce que je craignais...
Et si j'essaie de faire un .pkg sous Tiger et que je l'installe sous
Leopard, ça va se vautrer comme une merde ?
--
Nina

Avatar
laurent.pertois
Matt wrote:

On Thu, 1 Nov 2007 13:24:46 +0100,
Laurent Pertois wrote:

configure: exit 77


À mon humble avis cela provient d'un problème de
"/Developer/SDKs/MacOSX10.4u.sdk".

Regarde si tu ne demandes pas à port(1) de compiler tes ports en Universal
Binaries (tu trouves cela dans "/opt/local/etc/macports/variants.conf").


Yep, j'ai ajouté +universal, je l'enlève avant d'aller plus loin...

Ca builde sans erreur sur la configuration.

Envlève le paramètre "-isysroot
/Developer/SDKs/MacOSX10.4u.sdk" de la variable d'environnement $CFLAGS


Tu enlèverais ça où ?

Teste ça sur le portfile d'expat (insère les lignes suivantes avant
"configure.args") :

configure.cflags "-O2"
configure.cxxflags "-O2"

Ensuite nettoie l'arbre du port expat :

$ sudo port clean --work expat



Ca, je le fais à chaque fois, de toutes façons, quand il y a échec,
enfin, je fais un clean --all, au cas où.

Et relance la configuration (juste la configuration car c'est à ce stade où
tu es bloqué) :

$ sudo port -dv configure expat


Bon, en enlevant le universal, ça fonctionne parfaitement. Dommage,
j'attendais cette option depuis pas mal de temps, tant pis, je vais
encore patienter ou j'essaierais avec une machine Intel.

Merci pour tout.

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.


Avatar
Nina Popravka
On Thu, 1 Nov 2007 14:26:12 +0100,
(Laurent Pertois) wrote:

Bon, en enlevant le universal, ça fonctionne parfaitement.


Formidable.
Tu peux essayer atk, maintenant, steup ? :-)
(je commence à être chaude, là, je vais reprendre mon LFS...)
--
Nina

Avatar
Nina Popravka
On Thu, 1 Nov 2007 14:18:00 +0100 (CET), Matt
wrote:

C'est bien ce que je craignais...
Et si j'essaie de faire un .pkg sous Tiger et que je l'installe sous
Leopard, ça va se vautrer comme une merde ?


Faut juste voir si atk-1.20 n'utilise pas de librairies spécifiques à Mac OS
X 10.5 (tu peux utiliser otool(1) pour ça) ce dont je doute (à part la
libSystem, ce qui est normal).


'tain... Sous Tiger ça se vautre avec port pkg sur glib2.
Je vais me tirer une balle...
Oui, ok, j'enquête...
--
Nina


Avatar
Nina Popravka
On Thu, 1 Nov 2007 23:29:14 +0100 (CET), Matt
wrote:

Ici le pkg pour glib2-2.14.2 s'est frait en 1min27


Ici c'est plus long parce que c'est un misérable G4 867, mais j'avais
oublié que c'était un Tiger neuf et 10.4.pas grand chose. Après mise à
jour en 10.4.10, ça passe...
--
Nina

1 2