From: Anon S. <ano...@sc...> - 2004-01-08 11:25:28
|
On Wed, 7 Jan 2004 mcn...@au... wrote: > Hi Anon, > > I don't have a machine easily available to rebuild this old code, but > I do have a guess as to what is going wrong. > > Build order is very important with this code. > I think something got built out of sequence. I have tried building using the command like, $ PATH="/usr/linux/bin:$PATH" rpm --rebuild gnome-core*.src.rpm The result is still the same, it ends up with capplet-widget.h error. > > It looks like one of the *-config scripts may not be outputting the correct > -I compiler flag to find the capplet include files because the capplet > package was not available on the system when the script was created. I have checked my capplet installation, bash-2.05a$ gnome-config --cflags capplet -I/opt/freeware/include/libcapplet1 -I/opt/freeware/include -DNEED_GNOMESUPPORT_H -I/opt/freeware/lib/gnome-libs/include -I/opt/freeware/include/glib-1.2 -I/opt/freeware/lib/glib/include -I/opt/freeware/include/orbit-1.0 -I/opt/freeware/include/gtk-1.2 bash-2.05a$ rpm -qf `which gnome-config` gnome-libs-devel-1.4.1.2-1 The result is ok, "-I/opt/freeware/include/libcapplet1", because capplet-widget.h is placed there. bash-2.05a$ rpm -qla | grep capplet-widget /opt/freeware/include/libcapplet1/capplet-widget.h bash-2.05a$ rpm -qf `rpm -qla | grep capplet-widget.h` control-center-devel-1.4.0.4-1 But it seems that the "configure" script doesn't invoke any command to get the "capplet" include path. So, I wonder and want to know how the following binary packages (bundled with AIX 5.1.0.0) be built by IBM maintainer. ans@ans:/mnt/cdrom$ find . -name 'gnome-core*' ./RPMS/ppc/gnome-core-1.4.0.4-1.aix4.3.ppc.rpm ./RPMS/ppc/gnome-core-devel-1.4.0.4-1.aix4.3.ppc.rpm ./RPMS/ppc-4.3.3/gnome-core-1.4.0.4-1.aix4.3.ppc.rpm ./RPMS/ppc-4.3.3/gnome-core-devel-1.4.0.4-1.aix4.3.ppc.rpm ./RPMS.bygroup/ppc/Development/Libraries/gnome-core-devel-1.4.0.4-1.aix4.3.ppc.rpm ./RPMS.bygroup/ppc/User_Interface/Desktops/gnome-core-1.4.0.4-1.aix4.3.ppc.rpm ./ezinstall/ppc/gnome.base/gnome-core-1.4.0.4-1.aix4.3.ppc.rpm How the file, "capplet-widget.h", be installed or placed on the maintainer machine? By the way, the following is the parts and the only parts from "configure" that have something about "capplet", if test -n "capplet"; then n="capplet" for i in $n; do echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6 echo "configure:1250: checking extra library \"$i\"" >&5 case $i in applets) GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets` echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;; docklets) GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets` echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;; capplet) GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet` echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;; *) echo "$ac_t""unknown library" 1>&6 esac done fi <--cut--> ... <--cut--> echo $ac_n "checking for CApplet library""... $ac_c" 1>&6 echo "configure:5576: checking for CApplet library" >&5 vers=`$GNOME_CONFIG --modversion capplet` case "x$vers" in xcapplet-*) echo "$ac_t""found" 1>&6 ;; *) { echo "configure: error: Did not find CApplet library" 1>&2; exit 1; } ;; esac And the corresponding parts from "configure.in", GNOME_INIT(capplet) <--cut--> ... <--cut--> dnl dnl CApplet, Note that the libs and all that is set up in gnome_init, dnl but gnome_init is truly dumb and doesn't require it, so we need to dnl do a separate check dnl AC_MSG_CHECKING(for CApplet library) vers=`$GNOME_CONFIG --modversion capplet` case "x$vers" in xcapplet-*) AC_MSG_RESULT(found) ;; *) AC_MSG_ERROR(Did not find CApplet library, you probably need to install control-center first) ;; esac It appears that, there's no anything like, "$GNOME_CONFIG --cflags capplet", to get the include path. > > Dan > > > > From: Anon Sricharoenchai <ano...@sc...> > > To: <aix...@ww...> > > Subject: [tbox-l] I wonder how can the maintainer build gnome-core-1.4.0.4-1 package, > on AIX 5.0.1 > > Date: Tue, 6 Jan 2004 12:48:58 +0700 (ICT) > > > > I've tried to build the gnome-core-1.4.0.4-1 by invoking the command like this, > > > > bash-2.05a$ PATH="/usr/linux/bin/:$PATH" rpm --short-circuit -bc SPECS/gnome-core.spec > > Executing(%build): /bin/sh -e /var/opt/freeware/tmp/ans/rpm-tmp/rpm-tmp.30612 > > + umask 022 > > + cd /home/ans/rpm/building/BUILD > > + cd gnome-core-1.4.0.4 > > + [[ -z ]] > > + whence -v cc > > + 2> /dev/null > > + test X != X > > + export CC=gcc > > + test Xgcc != Xgcc > > + libtoolize --force > > You should update your `aclocal.m4' by running aclocal. > > + ./configure --prefix=/opt/freeware --with-window-manager=sawfish --sysconfdir=/opt/freeware/etc > > + CFLAGS=-DHAVE_CONTROL_CENTER -O2 -fsigned-char LDFLAGS=-Wl,-brtl > > loading cache ./config.cache > > checking for a BSD compatible install... (cached) /usr/linux/bin//install -c > > checking whether build environment is sane... yes > > checking whether make sets ${MAKE}... (cached) yes > > checking for working aclocal... found > > <--cut--> > > ... > > <--cut--> > > /bin/sh ../libtool --mode=link gcc -DHAVE_CONTROL_CENTER -O2 -fsigned-char -Wall -Wunused -Wl,-brtl -o gnome-libice-check gnome-libice-check.o -Wl,-brtl -L/opt/freeware/lib -Wl,-brtl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lintl -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb-3 -lglib -lintl > > gcc -DHAVE_CONTROL_CENTER -O2 -fsigned-char -Wall -Wunused -Wl,-brtl -o gnome-libice-check gnome-libice-check.o -Wl,-brtl -Wl,-brtl -L/opt/freeware/lib -lgnomeui -lart_lgpl /opt/freeware/lib/libgdk_imlib.so -lm -lSM -lICE -lgtk -lgdk /opt/freeware/lib/libgmodule.so -lXext -lX11 -lgnome -lgnomesupport /opt/freeware/lib/libesd.a -lm -lm -laudiofile -lm -ldb-3 /opt/freeware/lib/libglib.so /opt/freeware/lib/libintl.a -liconv > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/freeware/include -I/opt/freeware/include -DNEED_GNOMESUPPORT_H -I/opt/freeware/lib/gnome-libs/include -I/opt/freeware/include/glib-1.2 -I/opt/freeware/lib/glib/include -I/opt/freeware/include/orbit-1.0 -I/opt/freeware/include/gtk-1.2 -I../intl -I../intl > > -DGNOMELOCALEDIR=\""/opt/freeware/share/locale\"" -DDEFAULTDIR="\"/opt/freeware/share/gnome\"" -I/opt/freeware/include -I/opt/freeware/include/gtk-1.2 -I/opt/freeware/include/glib-1.2 -I/opt/freeware/lib/glib/include -I/opt/freeware/include/gtk-1.2 -I/opt/freeware/include/glib-1.2 -I/opt/freeware/lib/glib/include -DHAVE_CONTROL_CENTER -O2 -fsigned-char -Wall -Wunused -c session-properties-capplet.c > > session-properties-capplet.c:29: capplet-widget.h: A file or directory in the path name does not exist. > > <--cut--> > > ... > > <--cut--> > > > > But it has the above error, capplet-widget.h can't be found in the included > > path. In fact, capplet-widget.h is installed in /opt/freeware/include/libcapplet1/, > > > > bash-2.05a$ rpm -qla | grep capplet-widget > > /opt/freeware/include/libcapplet1/capplet-widget.h > > > > But I wonder that the configure script doesn't add that path to be included. I > > also wonder how can IBM maintainer build this gnome-core package using their > > provided spec file, which should be exactly the same as the one I got. > > Are there any environment variables set (such as CFLAGS) before building their > > package? > > ________________________________________________________________ DISCLAIMER: This e-mail is intended solely for the recipient(s) name above. If you are not the intended recipient, any type of your use is prohibited. Any information, comment or statement contained in this e-mail, including any attachments (if any) are those of the author and are not necessarily endorsed by the Bank. The Bank shall, therefore, not be liable or responsible for any of such contents, including damages resulting from any virus transmitted by this e-mail. |