[Apt-Rpm] 0.5.15lorg3.93 Solaris build issue
David Halik
dhalik at jla.rutgers.edu
Tue Sep 18 17:08:21 PDT 2007
Hello all,
We've been migrating from a very old apt-rpm setup on our Solaris 9
machines to the latest stable and there are a few stubborn files that
refuse to build. It seems that anywhere __attribute__ is coded SunCC
trips up because of lack of support. So far I've seen a couple of
workarounds on the web, but they've only partially alleviated the
problem. Its still fails and I' worried that I'm breaking functionality
by defining __attribute__ falsely. Here's the error:
CC -DHAVE_CONFIG_H -I. -I../include -I../include/apt-pkg
-DLIBDIR=\"/usr/local/lib\" -DPKGDATADIR=\"/usr/local/share/apt\"
-DLOCALEDIR=\"/usr/local/share/locale\" -DAPT_DOMAIN=\"apt\"
-I../lua/include -I../lua/local -I/usr/local/include/libxml2
-I/usr/local/include -I/usr/local/include -I/usr/include/rpm -g -c
contrib/hashes.cc -KPIC -DPIC -o contrib/.libs/hashes.o
"../include/apt-pkg/sha1.h", line 51: Error: "," expected instead of
"__attribute__".
"../include/apt-pkg/sha1.h", line 52: Error: Use ";" to terminate
declarations.
"../include/apt-pkg/sha1.h", line 52: Error: "," expected instead of
"__attribute__".
"../include/apt-pkg/sha1.h", line 53: Error: Use ";" to terminate
declarations.
"../include/apt-pkg/sha1.h", line 53: Error: "," expected instead of
"__attribute__".
"../include/apt-pkg/sha1.h", line 54: Error: Use ";" to terminate
declarations.
6 Error(s) detected.
gmake[1]: *** [contrib/hashes.lo] Error 1
I noticed that __attribute__ is located in:
apt-pkg/contrib/error.h
apt-pkg/contrib/strutl.h
apt-pkg/contrib/sha1.h
include/apt-pkg/error.h
include/apt-pkg/sha1.h
include/apt-pkg/strutl.h
I tried this quick hack that I saw in a few places but I still received
the "Error: Use ";" to terminate declarations." errors. This also
probably breaks whatever it is trying to create:
+#ifndef __GNUC__
+#define *__attribute__*(X)
+#endif
Is there a possible workaround for this? We'd love to be able to
upgrade, but are stuck here at the moment. Any help would be greatly
appreciated.
Thank you,
-Dave
--
================================
David Halik
Systems Programmer
OSS/NBCS - OIT Rutgers University
dhalik at jla.rutgers.edu
================================
More information about the Apt-Rpm
mailing list