Red Hat RPM - RPM 4.2 source compilation problem

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat RPM > July 2005 > RPM 4.2 source compilation problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RPM 4.2 source compilation problem
knighttof3@yahoo.com

2005-07-12, 5:56 pm

Hi all,
I am facing the 'undefined reference to gzdio' problem while
compiling rpm 4.2. I found numerous references to this problem on the
web but no solution that works.
The line that fails is:
# gcc -D_GNU_SOURCE -D_REENTRANT -g -O2 -Wno-error -D_GNU_SOURCE
-D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -Wno-char-subscripts -o .libs/rpmdb_archive
.../db3/db_archive.o ../db3/util_sig.o -L/usr/local/lib64
../.libs/librpmdb.so /built/in/this/dir/rpm-4.2/rpmio/.libs/librpmio.so
-lrt -lpthread -L/built/in/this/dir/rpm-4.2/zlib -L/usr/local/lib
/built/in/this/dir/rpm-4.2/popt/.libs/libpopt.so -Wl,--rpath
-Wl,/usr/local/lib64
/built/in/this/dir/rpm-4.2/rpmio/.libs/librpmio.so: undefined reference
to `gzdFlush'
/built/in/this/dir/rpm-4.2/rpmio/.libs/librpmio.so: undefined reference
to `gzdFdopen'
/built/in/this/dir/rpm-4.2/rpmio/.libs/librpmio.so: undefined reference
to `gzdio'
collect2: ld returned 1 exit status

So I manually downloaded and compiled zlib-1.2.2 package and zlib.a
does NOT have this gzdio. Where the hell are these gzd* functions
supposed to be defined?

# nm zlib-1.2.2/libz.a | grep gz
gzio.o:
00002694 T gzclearerr
00002324 T gzclose
00000ca0 T gzdopen
000022dc T gzeof
00002518 T gzerror
00001c80 T gzflush
00001568 T gzgetc
0000163c T gzgets
00000000 r gz_magic
00000d18 T gzopen
00000934 t gz_open
00001848 T gzprintf
00001a1c T gzputc
00001b38 T gzputs
00000d20 T gzread
00001df0 T gzrewind
00001ebc T gzseek
00000000 T gzsetparams
000022d0 T gztell
000015b0 T gzungetc
0000170c T gzwrite

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com