"rpmdav.c", line 382: undefined symbol: __func__
"rpmdav.c", line 382: warning: improper pointer/integer combination: arg
#2
"rpmdav.c", line 473: undefined symbol: __func__
"rpmdav.c", line 473: warning: improper pointer/integer combination: arg
#2
"rpmdav.c", line 497: undefined symbol: __func__
That's probably because you're using my suggested CFLAGS, which include
-D__FUNCTION__=__func__
__func__ is the C99 version of __FUNCTION__, which is a gcc-ism. The
thing is, the compiler you're using isn't a C99 compiler, so it doesn't
support either __FUNCTION__ or __func__. You wouldn't be having this
particular problem if you were using Workshop 11.
In the mean time, all you really need to do is replace instances of
__FUNCTION__
in the source with the quoted name of the function that it occurs in, or,
if you just want to make a quick edit, something like
"unknown function"
Tim
--
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:
cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include
-I/usr/local/include/beecrypt -I/usr/local/include/neon -I. -I..
-I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib
-D_REENTRANT -g -c rpmlog.c -KPIC -DPIC -o .libs/rpmlog.o
cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include
-I/usr/local/include/beecrypt -I/usr/local/include/neon -I. -I..
-I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib
-D_REENTRANT -g -c rpmlog.c -o rpmlog.o >/dev/null 2>&1
source='rpmlua.c' object='rpmlua.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile --tag=CC cc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/include -I/usr/local/include/beecrypt -I/usr/local/include/neon
-I. -I.. -I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc
-I../zlib -D_REENTRANT -g -c -o rpmlua.lo rpmlua.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include
-I/usr/local/include/beecrypt -I/usr/local/include/neon -I. -I..
-I../lua/include -I../lua/local -I../syck/lib -I../popt -I../misc -I../zlib
-D_REENTRANT -g -c rpmlua.c -KPIC -DPIC -o .libs/rpmlua.o
"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"
cc: acomp failed for rpmlua.c
gmake: *** [rpmlua.lo] Error 1
Sorry to keep dumping these on you but I do really appreciate your help!
Thanks alot,
Ed.
_________________________________________________________________
MSN Hotmail is evolving ? check out the new Windows Live Mail
http://ideas.live.com
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list