Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzgets'
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
GertThiel@web.de
n00b
n00b


Joined: 03 Oct 2002
Posts: 7

PostPosted: Thu Oct 03, 2002 10:28 am    Post subject: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzgets' Reply with quote

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
View user's profile Send private message
Roptaty
Apprentice
Apprentice


Joined: 12 May 2002
Posts: 184
Location: Norway

PostPosted: Thu Oct 03, 2002 10:35 am    Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge Reply with quote

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)

8O
_________________
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
View user's profile Send private message
GertThiel@web.de
n00b
n00b


Joined: 03 Oct 2002
Posts: 7

PostPosted: Thu Oct 03, 2002 6:55 pm    Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge Reply with quote

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)

8O


I have zlib 1.1.4 installed.

Gert.
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Thu Oct 03, 2002 7:14 pm    Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge Reply with quote

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)

8O


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
View user's profile Send private message
GertThiel@web.de
n00b
n00b


Joined: 03 Oct 2002
Posts: 7

PostPosted: Fri Oct 04, 2002 8:23 am    Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge Reply with quote

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)

8O


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
View user's profile Send private message
justus
n00b
n00b


Joined: 16 Apr 2002
Posts: 48

PostPosted: Fri Oct 04, 2002 11:02 am    Post subject: Heya... Reply with quote

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
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Fri Oct 04, 2002 6:34 pm    Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge Reply with quote

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
View user's profile Send private message
boludo
n00b
n00b


Joined: 07 Jun 2002
Posts: 12

PostPosted: Fri Oct 04, 2002 6:46 pm    Post subject: xfree 4.2.1 ebuild is the culprit Reply with quote

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
View user's profile Send private message
GertThiel@web.de
n00b
n00b


Joined: 03 Oct 2002
Posts: 7

PostPosted: Fri Oct 04, 2002 11:55 pm    Post subject: Re: KDE 3.1 beta 2 and KDE cvs: undefined reference to `gzge Reply with quote

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
View user's profile Send private message
GertThiel@web.de
n00b
n00b


Joined: 03 Oct 2002
Posts: 7

PostPosted: Fri Oct 04, 2002 11:57 pm    Post subject: Re: Heya... Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum