Link to home
Start Free TrialLog in
Avatar of tuaris
tuaris

asked on

Upgrading to GNOME 2.6 using gnome_upgrade.sh

This is a FreeBSD System running Jabber 1.4.2, it started out aprox. 1 year ago as FreeBSD 5.1 with GNOME 2.2.  I wanted to upgrade it to GNOME 2.6 using the gnome_upgrade.sh script.

I did a Binary Upgrade to 5.2.1
Ran cvsup to update my ports
did a pkgdb -F
then portsdb Uu
and ran the gnome_upgrade.sh

I crash at step 2 with this:

/usr/local/sbin/portupgrade failed to run for the external GNOME
dependencies.  Please make sure that popt gettext* libiconv expat pkgconfig
freetype2 XFree86-libraries* Xft libXft XFree86-fontScalable*
XFree86-fontEncodings* png libaudiofile tiff jpeg libxml2 python libxslt
gnomehier scrollkeeper intltool p5-XML-Parser docbook-sk xmlcatmgr docbook-xsl
docbook-xml sdocbook-xml startup-notification gnome-icon-theme Hermes sox
libmpeg2 guile libltdl aspell gle cdrtools mkisofs bitstream-vera
openldap-client lcms libmng libtool ghostscript* gnomeuserdocs2 perl-5* are
up-to-date, then re-run this script.  The output of the failed portupgrade
can be found in /var/tmp/gnome_upgrade_log.rZXW6X.  If you require additional
help, please compress /var/tmp/gnome_upgrade_log.rZXW6X, and send it to
freebsd-gnome@FreeBSD.org.

The problem is in XFree86-fontScalable, something's wrong with the makefile, so it won't build

"Makefile", line 943: Missing dependency operator
make: fatal errors encountered -- cannot continue
making Makefiles in scaled/CID...
"Makefile", line 931: Missing dependency operator
"Makefile", line 941: Missing dependency operator
make: fatal errors encountered -- cannot continue
making Makefiles in scaled/TTF...
"Makefile", line 939: Missing dependency operator
make: fatal errors encountered -- cannot continue
including in ./scaled...
including in scaled/Speedo...
including in scaled/Type1...
"Makefile", line 943: Missing dependency operator
make: fatal errors encountered -- cannot continue
*** Error code 1

Stop in /usr/ports/x11-fonts/XFree86-4-fontScalable/work/xc/fonts/scaled.
*** Error code 1

Stop in /usr/ports/x11-fonts/XFree86-4-fontScalable/work/xc/fonts.
*** Error code 1

Their is no Information anywhere (googled as much as I could) on how to fix this. This same exact error occurs on a 4.10 system.

Now (on 5.2.1 system), my X server won't start:
/usr/libexec/ld-elf.so.1: Shared object "libpangoft2-1.0.so.200" not found
but I belive that was due to something else I did (I tried putting Gaim 0.80 on GNOME 2.2, a big mess that I (think) fixed with pkgdb -Fu)
X still runs on my 4.10 system since I did not attempt to install Gaim on it.

Please Help, I miss my GNOME Desktop :-(
Avatar of tuaris
tuaris

ASKER

This is a production server for my location's IM System, so I can't do anything too drastic...

Yeah, I know, you ask "why are you fooling around with it?"
I think you should check out the /usr/local/libexec folder where you should be able to local libpangoft2-1.0.so.400 or libpangoft2-1.0.so.600 or something like that.
Just do a "ln -s libpangoft2-1.0.so.400 libpangoft2-1.0.so.200"

It is because you have upgraded the libpangoft while the library is still referring to the old one.
Did you read the Xorg part from /usr/ports/UPDATING???
It deals with GNOME too( use X_WINDOW_SYSTEM=xfree86-4 instead of nothing or XFREE86_VERSION=4 in /etc/make.conf)
Avatar of tuaris

ASKER

None of those suggestions worked, i tried to do the "ln -s libpangoft2-1.0.so.400 libpangoft2-1.0.so.200", and did it to every file after that, but I'm stuck at "libgmodule-2.0.so.200"

I did exactly what the UPDATING files said to do, I get this:

cc -O -pipe -mcpu=pentiumpro -ansi -pedantic -Wno-system-headers -Dasm=__asm    -Wall -Wpointer-arith -Wundef   -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/freetype2/config -I/usr/ports/x11/xorg-clients/work/xc/exports/include/X11   -I/usr/ports/x11/xorg-clients/work/xc -I/usr/ports/x11/xorg-clients/work/xc/exports/include  -I/usr/X11R6/include -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO    -DMITSHM -DXFT -DXFREE86_FT2 -DXRENDER  -DXVENDORNAME='"The X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"' -c do_text.c
In file included from /usr/X11R6/include/X11/Xft/Xft.h:41,
                 from do_text.c:403:
/usr/local/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h' hasn't been included yet!"
/usr/local/include/freetype2/freetype/freetype.h:21:2: #error "Please always use macros to include FreeType header files."
/usr/local/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
/usr/local/include/freetype2/freetype/freetype.h:23:2: #error "  #include <ft2build.h>"
/usr/local/include/freetype2/freetype/freetype.h:24:2: #error "  #include FT_FREETYPE_H"
*** Error code 1

Stop in /usr/ports/x11/xorg-clients/work/xc/programs/x11perf.
*** Error code 1

Stop in /usr/ports/x11/xorg-clients/work/xc/programs.
*** Error code 1

Stop in /usr/ports/x11/xorg-clients.
*** Error code 1

Stop in /usr/ports/x11/xorg.
You should do the same ln for each of the not found library just like what you have done for libpangoft.
You have XFree86 v4 installed, but attempt to use its libraries as from x.org. (read my previous post for a fix)
Setting links for GNOME libraries may help but might be jus not enough (old libraries may not contain needed functionality)
Avatar of tuaris

ASKER

thats what I did, until a came acccross a library I did not find anything to link it to (I think it was libgdk or something)  Just for the record, most of the files where named .399 and where located in /usr/X11R6/lib.  

I probably messed things up even more by following the instrcutions on the /usr/ports/UPDATING file.

  20040723:
  AFFECTS: users of FreeBSD-current, users of xorg
  AUTHOR: anholt@FreeBSD.org

  The XFREE86_VERSION variable is deprecated and has been replaced by the
  X_WINDOW_SYSTEM variable. X_WINDOW_SYSTEM may be set to xorg, xfree86-4, or
  xfree86-3.  X_WINDOW_SYSTEM defaults to xorg on FreeBSD-current.  If you are
  switching to xorg, you should follow this set of commands to cleanly upgrade:

  pkg_delete -f /var/db/pkg/imake-4* /var/db/pkg/XFree86-*
  cd /usr/ports/x11/xorg && make install
  pkgdb -F

I set the X_WINDOWS_SYSTEM variable in /etc/make.conf set to "xorg"
did   "pkg_delete -f /var/db/pkg/imake-4* /var/db/pkg/XFree86-*"
and "cd /usr/ports/x11/xorg && make install"
which results in the error above.
Avatar of tuaris

ASKER

I decided to try something, I did

"pkg_add -r XFree86"

It looks like it reinstalled XFree86, and the gnome_upgrade.sh script is running at stage 4 of 5, So I think this worked.

I'm just wondering, on the other system, 4.10 (that did not have an X server problems), is it better to use xorg instead of XFree86? and still update to GNOME 2.6 without going through this mess?  What do you recomend? xorg or XFree86?
Avatar of tuaris

ASKER

Spoke too soon :-(


*** UPGRADE FAILED ***

===> /usr/local/sbin/portupgrade failed to run a recursive upgrade on glib-2*.
The output of the failed build is in /var/tmp/gnome_upgrade_log.FfIGGB.  If
you require additional help in figuring out why the upgrade failed, please
compress /var/tmp/gnome_upgrade_log.FfIGGB and send it to
freebsd-gnome@FreeBSD.org.

reinstall glib then (it breaks everything)
Avatar of tuaris

ASKER

How much is "everything" will it break the Jabber server?  There's got to be another way?
try pkg_delete -n glib-2.0.0 to see which packages depend on glib (-n means just do nothing, show what will be done when deleting package)
and ldd /usr/local/bin/jabberd , especially looking for glib dependency
Avatar of tuaris

ASKER

I tried nunning the upgrade script agian, this time glib built and installed, however I think thiere is still something wrong with XFree86.  I'm getting

/usr/libexec/ld-elf.so.1: Shared object "libgmodule-2.0.so.200" not found when trying to install /usr/ports/devel/gnomevfs2.
gmodule is part of glib, simply linker cache contains old version
ldconfig -m /usr/local/lib # usually fixes the problem
Avatar of tuaris

ASKER

What does that command do? (ldconfig -m /usr/local/lib)
It seems to have fixed the libgmodule problem.
ldconfig -m /some/path adjusts cache for rtld or ld.so - the dynamic linker, this helps sometimes, reboot rebuilds this cache completely, man ldconfig mand rtld for more explanations
Avatar of tuaris

ASKER

There is nothing I want to save in GNOME, can I just unistall the mess I have now and then reinstall the new version 2.6 and X.org 6.7?
pkg_delete -na ( remove -n for actual damage) removes all packages
or cd /usr/ports/x11/gnome2 ; make deinstall
Avatar of tuaris

ASKER

I was able to remove gnome2 with the pkg_deinstall utility, and was able to get GNOME 2.6 installed from packages.

Now, my problem is that I can't login using GDM.  After I enter my Username and password in GDM, I hear a 'beep' and it asks for my username agian.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
10/07/2004 03:43AM PDT was chasing asker at all times