I've had some issues in rpmxs.c with Sun Studio in Solaris 9 and 5.0a2.
The first prob was missing symbols in the build process:
"rpmxs.c", line 192: undefined symbol: rpmBuildFlags
"rpmxs.c", line 192: syntax error before or at: buildflags
"rpmxs.c", line 193: undefined symbol: buildflags
"rpmxs.c", line 193: undefined symbol: RPMBUILD_NONE
"rpmxs.c", line 194: warning: implicit function declaration: buildSpec
"rpmxs.c", line 194: undefined symbol: buildflags
"rpmxs.c", line 195: cannot recover from previous errors
This was solved with adding "rpmbuild.h" to the include in rpmxs.c. The
build process is able to move forward past this, but now I'm having perl
problems. Do you require a specific version of perl? It looks like the
version that is shipped with Solaris 9 is too old:
"rpmxs.c", line 129: warning: implicit function declaration: rpmdsN
"rpmxs.c", line 129: warning: improper pointer/integer combination: arg #2
"rpmxs.c", line 132: warning: implicit function declaration:
rpmdsNVRMatchesDep
"rpmxs.c", line 140: warning: implicit function declaration:
rpmdsAnyMatchesDep
"rpmxs.c", line 177: warning: implicit function declaration: rpmtsSetSpec
"rpmxs.c", line 177: warning: improper pointer/integer combination: op "="
/usr/local/bin/perl /usr/perl5/5.6.1/lib/ExtUtils/xsubpp -typemap
/usr/perl5/5.6.1/lib/ExtUtils/typemap -typemap typemap RPM.xs > RPM.xsc
&& mv RPM.xsc RPM.c
Error: 'const char *' not in typemap in RPM.xs, line 133
gmake[3]: *** [RPM.c] Error 1
I grepped in /usr/perl5/5.6.1/lib/ExtUtils/typemap and 'const char *' is
indeed missing. Is there a way around this?
Thanks,
-Dave
--
================================
David Halik
Systems Programmer
OSS/NBCS - OIT Rutgers
dhalik@jla.rutgers.edu
================================
Received on Tue Nov 20 06:38:35 2007