View previous topic :: View next topic |
Author |
Message |
GertThiel@web.de n00b
Joined: 03 Oct 2002 Posts: 7
|
Posted: Thu Oct 03, 2002 10:28 am Post subject: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzgets' |
|
|
Hi,
when I try to compile kdelibs of both KDE 3.1 beta 2 and KDE cvs it fails with:
make_driver_db_cups.o: In function `parsePpdFile':
make_driver_db_cups.o(.text+0x6a7): undefined reference to `gzgets'
collect2: ld returned 1 exit status
make[4]: *** [make_driver_db_cups] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8'
make: *** [all] Error 2
Can someone help? TIA.
Gert. |
|
Back to top |
|
|
Roptaty Apprentice
Joined: 12 May 2002 Posts: 184 Location: Norway
|
Posted: Thu Oct 03, 2002 10:35 am Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge |
|
|
GertThiel@web.de wrote: | Hi,
when I try to compile kdelibs of both KDE 3.1 beta 2 and KDE cvs it fails with:
make_driver_db_cups.o: In function `parsePpdFile':
make_driver_db_cups.o(.text+0x6a7): undefined reference to `gzgets'
collect2: ld returned 1 exit status
make[4]: *** [make_driver_db_cups] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8'
make: *** [all] Error 2
Can someone help? TIA.
Gert. |
Make sure you have installed zlib. (gzgets is defined in the zlib.h header)
_________________ This signature will selfdestruct in ten seconds...
ten - nine - eight - seven - six - five - four - three - two - one - BSOD (System crashed, please restart the self-destruct sequence) |
|
Back to top |
|
|
GertThiel@web.de n00b
Joined: 03 Oct 2002 Posts: 7
|
Posted: Thu Oct 03, 2002 6:55 pm Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge |
|
|
OZzl wrote: | GertThiel@web.de wrote: | Hi,
when I try to compile kdelibs of both KDE 3.1 beta 2 and KDE cvs it fails with:
make_driver_db_cups.o: In function `parsePpdFile':
make_driver_db_cups.o(.text+0x6a7): undefined reference to `gzgets'
collect2: ld returned 1 exit status
make[4]: *** [make_driver_db_cups] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8'
make: *** [all] Error 2
Can someone help? TIA.
Gert. |
Make sure you have installed zlib. (gzgets is defined in the zlib.h header)
|
I have zlib 1.1.4 installed.
Gert. |
|
Back to top |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Thu Oct 03, 2002 7:14 pm Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge |
|
|
GertThiel@web.de wrote: | OZzl wrote: | GertThiel@web.de wrote: | Hi,
when I try to compile kdelibs of both KDE 3.1 beta 2 and KDE cvs it fails with:
make_driver_db_cups.o: In function `parsePpdFile':
make_driver_db_cups.o(.text+0x6a7): undefined reference to `gzgets'
collect2: ld returned 1 exit status
make[4]: *** [make_driver_db_cups] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8'
make: *** [all] Error 2
Can someone help? TIA.
Gert. |
Make sure you have installed zlib. (gzgets is defined in the zlib.h header)
|
I have zlib 1.1.4 installed.
Gert. |
Ok, here is what I did to get around the issue. It is missing a library reference to /usr/lib:
1. Cd to the directory:
cd /var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8
2. Run make until it fails.
3. Copy the command that fails: /bin/sh ../../libtools ....
4. Find the entries that starts with -L/usr/X11R6/lib and add -L/usr/lib
5. cd /var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8
6. Run make
This will continue the make process. When it is done, run:
ebuild /usr/portage/kde-base/kdelibs/kdelibs-3.1_beta2.ebuild install
ebuild /usr/portage/kde-base/kdelibs/kdelibs-3.1_beta2.ebuild qmerge
then continue with:
emerge kde
This should take care of the issue. You can also edit the makefiles to add the -L/usr/lib if you want to.
Erik |
|
Back to top |
|
|
GertThiel@web.de n00b
Joined: 03 Oct 2002 Posts: 7
|
Posted: Fri Oct 04, 2002 8:23 am Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge |
|
|
ebrostig wrote: | GertThiel@web.de wrote: | OZzl wrote: | GertThiel@web.de wrote: | Hi,
when I try to compile kdelibs of both KDE 3.1 beta 2 and KDE cvs it fails with:
make_driver_db_cups.o: In function `parsePpdFile':
make_driver_db_cups.o(.text+0x6a7): undefined reference to `gzgets'
collect2: ld returned 1 exit status
make[4]: *** [make_driver_db_cups] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint/cups'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8/kdeprint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8'
make: *** [all] Error 2
Can someone help? TIA.
Gert. |
Make sure you have installed zlib. (gzgets is defined in the zlib.h header)
|
I have zlib 1.1.4 installed.
Gert. |
Ok, here is what I did to get around the issue. It is missing a library reference to /usr/lib:
1. Cd to the directory:
cd /var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8
2. Run make until it fails.
3. Copy the command that fails: /bin/sh ../../libtools ....
4. Find the entries that starts with -L/usr/X11R6/lib and add -L/usr/lib
5. cd /var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8
6. Run make
This will continue the make process. When it is done, run:
ebuild /usr/portage/kde-base/kdelibs/kdelibs-3.1_beta2.ebuild install
ebuild /usr/portage/kde-base/kdelibs/kdelibs-3.1_beta2.ebuild qmerge
then continue with:
emerge kde
This should take care of the issue. You can also edit the makefiles to add the -L/usr/lib if you want to.
Erik |
I did not understand step 3. So I helped myself and created a link to libz.so.1.1.4 from /usr/lib. Thanks Erik.
Gert. |
|
Back to top |
|
|
justus n00b
Joined: 16 Apr 2002 Posts: 48
|
Posted: Fri Oct 04, 2002 11:02 am Post subject: Heya... |
|
|
I was having a similar problem with a different program. I noticed that "/usr/lib" was no longer listed in the "/etc/ld.so.conf" file anymore.
I updated "/etc/env.d/00basic" to look like the following:
Code: | LDPATH=/usr/lib:/usr/local/lib |
and then ran an "env-update". This then added /usr/lib files to the ld.so.cache and fixed my problem.
Not sure if this would work for anyone else...
Justin T |
|
Back to top |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Fri Oct 04, 2002 6:34 pm Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge |
|
|
Quote: | Quote: | Ok, here is what I did to get around the issue. It is missing a library reference to /usr/lib:
1. Cd to the directory:
cd /var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8
2. Run make until it fails.
3. Copy the command that fails: /bin/sh ../../libtools ....
|
I did not understand step 3. So I helped myself and created a link to libz.so.1.1.4 from /usr/lib. Thanks Erik.
Gert. |
I'm sorry. I should have been a little bit more detailed.
Step 3 involves copying the command that failed.
The command starts with: /bin/sh ../../libtool ...
I had already gone past the step so I didn't remember the whole command, but you will see the command when you run the make manually.
I just copied the whole command and added -L/usr/lib in front of -L/usr/X11R6/lib which is a part of the original command. The I executed the modifed command which completed without error.
Then you could go on with the rest of the steps in order to successfully emerge kdelibs.
If anyones still have problems, please paste in the last 30-40 lines and I will modify the libtool command and paste it back in corrected.
You can also make a symbolic link, as the previous post indicated to a library directory which is included in the libtool command, i.e /usr/X11R6/lib:
as root do this:
ln -s /usr/lib/libz.so.1.1.4 /usr/X11R6/lib/libz.so.1.1.4
Erik |
|
Back to top |
|
|
boludo n00b
Joined: 07 Jun 2002 Posts: 12
|
Posted: Fri Oct 04, 2002 6:46 pm Post subject: xfree 4.2.1 ebuild is the culprit |
|
|
In the ebuild for xfree 4.2.1 there was a small change, which is documented in the changelog, ...
I have just checked and it has changed again, but the ebuild revision stayed the same.
The change was the option of using the zlib on the system, or build one with xfree. The problem is the xfree's zlib has a few missing functions, at least the gzgets.
Two solutions:
Longest: re-emerge xfree
Shortest: just remove libz.* from /usr/X11R6/lib/, and don't worry, since you still have the one which will be used in its place, /usr/lib/libz.* |
|
Back to top |
|
|
GertThiel@web.de n00b
Joined: 03 Oct 2002 Posts: 7
|
Posted: Fri Oct 04, 2002 11:55 pm Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge |
|
|
ebrostig wrote: | Quote: | Quote: | Ok, here is what I did to get around the issue. It is missing a library reference to /usr/lib:
1. Cd to the directory:
cd /var/tmp/portage/kdelibs-3.1_beta2/work/kdelibs-3.0.8
2. Run make until it fails.
3. Copy the command that fails: /bin/sh ../../libtools ....
|
I did not understand step 3. So I helped myself and created a link to libz.so.1.1.4 from /usr/lib. Thanks Erik.
Gert. |
I'm sorry. I should have been a little bit more detailed.
Step 3 involves copying the command that failed.
The command starts with: /bin/sh ../../libtool ...
I had already gone past the step so I didn't remember the whole command, but you will see the command when you run the make manually.
I just copied the whole command and added -L/usr/lib in front of -L/usr/X11R6/lib which is a part of the original command. The I executed the modifed command which completed without error.
Then you could go on with the rest of the steps in order to successfully emerge kdelibs.
If anyones still have problems, please paste in the last 30-40 lines and I will modify the libtool command and paste it back in corrected.
You can also make a symbolic link, as the previous post indicated to a library directory which is included in the libtool command, i.e /usr/X11R6/lib:
as root do this:
ln -s /usr/lib/libz.so.1.1.4 /usr/X11R6/lib/libz.so.1.1.4
Erik |
I did exactly that "ln -s ..." stuff. Thanks.
Gert. |
|
Back to top |
|
|
GertThiel@web.de n00b
Joined: 03 Oct 2002 Posts: 7
|
Posted: Fri Oct 04, 2002 11:57 pm Post subject: Re: Heya... |
|
|
justus wrote: | I was having a similar problem with a different program. I noticed that "/usr/lib" was no longer listed in the "/etc/ld.so.conf" file anymore.
I updated "/etc/env.d/00basic" to look like the following:
Code: | LDPATH=/usr/lib:/usr/local/lib |
and then ran an "env-update". This then added /usr/lib files to the ld.so.cache and fixed my problem.
Not sure if this would work for anyone else...
Justin T |
Maybe I should consider this hint. It seems to be a more generic solution for even yet unknown problems and may aviod troubles in advance.
Whether we should add this stuff to Gentoo's Bugzilla?
Gert. |
|
Back to top |
|
|
|