Thanks Tim. After finally installing the new compiler, I still got the
error above! Phew! I then tried your suggestion replacing __FUNCTION__
with
"unknown function" and the compile got slightly further:
Since you've installed a completely new compiler, you really should
reconfigure, from scratch.
Before you try that, you could try
cd rpmio; make clean; make
but I'm not hopeful that will fix the issue.
When you reconfigure, make sure that you've included
-D__FUNCTION__=__func__
in both CPPFLAGS and CFLAGS. Also, make sure that
-I/usr/local/include/beecrypt
is part of both CPPFLAGS and CFLAGS too, since that also caused you
problems.
I never ran into the particular problem you show, which makes me suspect
that it has something to do with the route you took to get to this point.
"rpmlua.c", line 63: undefined symbol: luaopen_loadlib
"rpmlua.c", line 63: warning: improper pointer/integer combination: op "="
"rpmlua.c", line 63: non-constant initializer: op "NAME"
Tim
--
I did reconfigure and got the same problem. I realised what it was though. I
was adding the new include paths on the end of DEFAULT_INCLUDES in the
Makefile instead of INCLUDES so now I have:
INCLUDES = -I. \
-I$(top_srcdir) \
\
\
-I${top_srcdir}/lua/include -I${top_srcdir}/lua/local \
-I${top_srcdir}/syck/lib \
-I${top_srcdir}/popt \
-I$(top_srcdir)/misc \
-I${top_srcdir}/zlib \
-I/usr/local/include/beecrypt -I/usr/local/include/neon
-I/usr/local/include
and then the compile in rpmio worked. I also had to do the same to the
Makefile in rpmdb, and add -D__FUNCTION__=__func__ to the CFLAGS and
CPPFLAGS. But after it failed at the link stage:
gmake[1]: Entering directory `/tmp/rpm-4.4.7/rpmdb'
/bin/bash ../libtool --mode=link --tag=CC cc -g -D__FUNCTION__=__func__
-L/opt/rpm/lib -L/opt/rpm/lib -o librpmdb.la -rpath /opt/rp
m/lib -no-undefined -release 4.4 ../rpmio/librpmio.la ../popt/libpopt.la
dbconfig.lo fprint.lo hdrNVR.lo header.lo header_internal.lo
legacy.lo merge.lo poptDB.lo rpmhash.lo rpmdb.lo tagname.lo tagtbl.lo db3.lo
.../db3/libdb.la
/usr/ccs/bin/ld -G -z text -h librpmdb-4.4.so -o .libs/librpmdb-4.4.so
..libs/dbconfig.o .libs/fprint.o .libs/hdrNVR.o .libs/header.o
..libs/header_internal.o .libs/legacy.o .libs/merge.o .libs/poptDB.o
..libs/rpmhash.o .libs/rpmdb.o .libs/tagname.o .libs/tagtbl.o .libs
/db3.o -z allextract ../db3/.libs/libdb-4.5.a -z defaultextract
-R/tmp/rpm-4.4.7/rpmio/.libs -R/tmp/rpm-4.4.7/popt/.libs -R/opt/rpm/l
ib -R/usr/ucblib -L/opt/rpm/lib ../rpmio/.libs/librpmio.so
.../popt/.libs/libpopt.so -L/usr/ucblib -lpthread -lnsl -lsocket -lrt -lc
Text relocation remains referenced
against symbol offset in file
<unknown> 0x328
.../db3/.libs/libdb-4.5.a(bt_compare.o)
<unknown> 0x32c
.../db3/.libs/libdb-4.5.a(bt_compare.o)
<unknown> 0x330
.../db3/.libs/libdb-4.5.a(bt_compare.o)
<unknown> 0x334
.../db3/.libs/libdb-4.5.a(bt_compare.o)
<unknown> 0x1000
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x1004
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x1008
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x100c
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x1010
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x1014
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x1018
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x101c
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x1020
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x1024
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a74
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a78
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a7c
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a80
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a84
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a88
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a8c
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a90
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a94
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a98
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2a9c
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2aa0
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2aa4
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2aa8
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2aac
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2ab0
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
<unknown> 0x2ab4
.../db3/.libs/libdb-4.5.a(bt_cursor.o)
:q
smpd328>ls -l ../db3/.libs/libdb-4.5.a
-rw-r--r-- 1 u752359 other 12218804 Jan 4 10:14
.../db3/.libs/libdb-4.5.a
I tried adding -L/usr/local/lib to the LDFLAGS but still got the same error.
_________________________________________________________________
Find Singles In Your Area This Christmas With Match.com! msnuk.match.com
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list