In regard to: Re: [rpm-list] problems compiling rpm on solaris, Edward...:
cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/beecrypt
-I/usr/local/include -I. -I.. -I../lua/include -I../lua/local -I../syck/lib
-I../popt -I../misc -I../zlib -D_REENTRANT -g -c macro.c -KPIC -DPIC -o
..libs/macro.o
"macro.c", line 1712: undefined symbol: LC_COLLATE
"macro.c", line 1712: warning: improper pointer/integer combination: op "="
"macro.c", line 1715: undefined symbol: LC_CTYPE
"macro.c", line 1715: warning: improper pointer/integer combination: op "="
Yup. I think that's a problem with the version of gettext that's included
with rpm (unlike most of the other included bits, that's pretty old).
"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
--
Tim Mooney mooney@xxxxxxxxxxxxxxxxxxxxxxxxx
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list