Compiling manually lib under Solaris x64 returns lots of warnings. Im using SunStudio 121
$ gmake -f Makefile.solaris
cc -m64 -Kpic -c -o MVA_Approx.o MVA_Approx.c
"MVA_Approx.c", line 54: warning: implicit function declaration: debug
"MVA_Approx.c", line 57: warning: implicit function declaration: errmsg
"MVA_Approx.c", line 67: warning: implicit function declaration: resets
cc -m64 -Kpic -c -o MVA_Canon.o MVA_Canon.c
"MVA_Canon.c", line 58: warning: implicit function declaration: debug
"MVA_Canon.c", line 72: warning: implicit function declaration: errmsg
"MVA_Canon.c", line 96: warning: implicit function declaration: getjob_name
"MVA_Canon.c", line 140: warning: implicit function declaration: typetostr
cc -m64 -Kpic -c -o MVA_Solve.o MVA_Solve.c
"MVA_Solve.c", line 52: warning: implicit function declaration: debug
"MVA_Solve.c", line 61: warning: implicit function declaration: typetostr
"MVA_Solve.c", line 66: warning: implicit function declaration: errmsg
"MVA_Solve.c", line 72: warning: implicit function declaration: exact
"MVA_Solve.c", line 91: warning: implicit function declaration: approx
"MVA_Solve.c", line 107: warning: implicit function declaration: canonical
"MVA_Solve.c", line 160: warning: implicit function declaration: getjob_name
cc -m64 -Kpic -c -o PDQ_Build.o PDQ_Build.c
"PDQ_Build.c", line 80: warning: implicit function declaration: debug
"PDQ_Build.c", line 83: warning: implicit function declaration: resets
"PDQ_Build.c", line 85: warning: implicit function declaration: errmsg
"PDQ_Build.c", line 221: warning: implicit function declaration: close
"PDQ_Build.c", line 250: warning: implicit function declaration: typetostr
"PDQ_Build.c", line 489: warning: implicit function declaration: getnode_index
"PDQ_Build.c", line 490: warning: implicit function declaration: getjob_index
cc -m64 -Kpic -c -o PDQ_Exact.o PDQ_Exact.c
"PDQ_Exact.c", line 72: warning: implicit function declaration: errmsg
cc -m64 -Kpic -c -o PDQ_Globals.o PDQ_Globals.c
cc -m64 -Kpic -c -o PDQ_MServer.o PDQ_MServer.c
"PDQ_MServer.c", line 57: warning: implicit function declaration: errmsg
cc -m64 -Kpic -c -o PDQ_Report.o PDQ_Report.c
"PDQ_Report.c", line 93: warning: implicit function declaration: resets
"PDQ_Report.c", line 104: warning: implicit function declaration: errmsg
"PDQ_Report.c", line 185: warning: implicit function declaration: typetostr
"PDQ_Report.c", line 236: warning: implicit function declaration: debug
"PDQ_Report.c", line 310: warning: implicit function declaration: getjob_name
cc -m64 -Kpic -c -o PDQ_Utils.o PDQ_Utils.c
"PDQ_Utils.c", line 131: warning: implicit function declaration: getjob_index
cc -m64 -Kpic -G -m64 *.o -o libpdq.so -lm
Lint tells us:
$ lint MVA_Approx.c
(54) warning: implicit function declaration: debug
(57) warning: implicit function declaration: errmsg
(67) warning: implicit function declaration: resets
declaration unused in block
(36) s3
(36) s4
(40) warning: static unused: version
name used but not defined
fabs MVA_Approx.c(293)
debug MVA_Approx.c(54)
errmsg MVA_Approx.c(57)
resets MVA_Approx.c(67)
getjob_name MVA_Approx.c(88)
typetostr MVA_Approx.c(149)
PDQ_DEBUG MVA_Approx.c(350)
iterations MVA_Approx.c(350)
streams MVA_Approx.c(350)
nodes MVA_Approx.c(350)
s1 MVA_Approx.c(350)
s2 MVA_Approx.c(350)
tolerance MVA_Approx.c(350)
job MVA_Approx.c(350)
node MVA_Approx.c(350)
name defined but never used
approx MVA_Approx.c(33)
name declared but never used or defined
acos math_iso.h(44)
asin math_iso.h(45)
atan math_iso.h(46)
atan2 math_iso.h(47)
cos math_iso.h(48)
sin math_iso.h(49)
tan math_iso.h(50)
cosh math_iso.h(52)
sinh math_iso.h(53)
tanh math_iso.h(54)
exp math_iso.h(56)
frexp math_iso.h(57)
ldexp math_iso.h(58)
log math_iso.h(59)
log10 math_iso.h(60)
modf math_iso.h(61)
pow math_iso.h(63)
sqrt math_iso.h(64)
ceil math_iso.h(66)
floor math_iso.h(68)
fmod math_iso.h(69)
acosh math_c99.h(113)
asinh math_c99.h(114)
atanh math_c99.h(115)
exp2 math_c99.h(117)
expm1 math_c99.h(118)
ilogb math_c99.h(119)
log1p math_c99.h(120)
log2 math_c99.h(121)
logb math_c99.h(122)
scalbn math_c99.h(123)
scalbln math_c99.h(124)
cbrt math_c99.h(126)
hypot math_c99.h(127)
erf math_c99.h(129)
erfc math_c99.h(130)
lgamma math_c99.h(131)
tgamma math_c99.h(132)
nearbyint math_c99.h(134)
rint math_c99.h(135)
lrint math_c99.h(136)
round math_c99.h(137)
lround math_c99.h(138)
trunc math_c99.h(139)
remainder math_c99.h(141)
remquo math_c99.h(142)
copysign math_c99.h(144)
nan math_c99.h(145)
nextafter math_c99.h(146)
nexttoward math_c99.h(147)
fdim math_c99.h(149)
fmax math_c99.h(150)
fmin math_c99.h(151)
fma math_c99.h(153)
acosf math_c99.h(155)
asinf math_c99.h(156)
atanf math_c99.h(157)
atan2f math_c99.h(158)
cosf math_c99.h(159)
sinf math_c99.h(160)
tanf math_c99.h(161)
acoshf math_c99.h(163)
asinhf math_c99.h(164)
atanhf math_c99.h(165)
coshf math_c99.h(166)
sinhf math_c99.h(167)
tanhf math_c99.h(168)
expf math_c99.h(170)
exp2f math_c99.h(171)
expm1f math_c99.h(172)
frexpf math_c99.h(173)
ilogbf math_c99.h(174)
ldexpf math_c99.h(175)
logf math_c99.h(176)
log10f math_c99.h(177)
log1pf math_c99.h(178)
log2f math_c99.h(179)
logbf math_c99.h(180)
modff math_c99.h(181)
scalbnf math_c99.h(182)
scalblnf math_c99.h(183)
cbrtf math_c99.h(185)
fabsf math_c99.h(186)
hypotf math_c99.h(187)
powf math_c99.h(188)
sqrtf math_c99.h(189)
erff math_c99.h(191)
erfcf math_c99.h(192)
lgammaf math_c99.h(193)
tgammaf math_c99.h(194)
ceilf math_c99.h(196)
floorf math_c99.h(197)
nearbyintf math_c99.h(198)
rintf math_c99.h(199)
lrintf math_c99.h(200)
roundf math_c99.h(201)
lroundf math_c99.h(202)
truncf math_c99.h(203)
fmodf math_c99.h(205)
remainderf math_c99.h(206)
remquof math_c99.h(207)
copysignf math_c99.h(209)
nanf math_c99.h(210)
nextafterf math_c99.h(211)
nexttowardf math_c99.h(212)
fdimf math_c99.h(214)
fmaxf math_c99.h(215)
fminf math_c99.h(216)
fmaf math_c99.h(218)
acosl math_c99.h(220)
asinl math_c99.h(221)
atanl math_c99.h(222)
atan2l math_c99.h(223)
cosl math_c99.h(224)
sinl math_c99.h(225)
tanl math_c99.h(226)
acoshl math_c99.h(228)
asinhl math_c99.h(229)
atanhl math_c99.h(230)
coshl math_c99.h(231)
sinhl math_c99.h(232)
tanhl math_c99.h(233)
expl math_c99.h(235)
exp2l math_c99.h(236)
expm1l math_c99.h(237)
frexpl math_c99.h(238)
ilogbl math_c99.h(239)
ldexpl math_c99.h(240)
logl math_c99.h(241)
log10l math_c99.h(242)
log1pl math_c99.h(243)
log2l math_c99.h(244)
logbl math_c99.h(245)
modfl math_c99.h(246)
scalbnl math_c99.h(247)
scalblnl math_c99.h(248)
cbrtl math_c99.h(250)
fabsl math_c99.h(251)
hypotl math_c99.h(252)
powl math_c99.h(253)
sqrtl math_c99.h(254)
erfl math_c99.h(256)
erfcl math_c99.h(257)
lgammal math_c99.h(258)
tgammal math_c99.h(259)
ceill math_c99.h(261)
floorl math_c99.h(262)
nearbyintl math_c99.h(263)
rintl math_c99.h(264)
lrintl math_c99.h(265)
roundl math_c99.h(266)
lroundl math_c99.h(267)
truncl math_c99.h(268)
fmodl math_c99.h(270)
remainderl math_c99.h(271)
remquol math_c99.h(272)
copysignl math_c99.h(274)
nanl math_c99.h(275)
nextafterl math_c99.h(276)
nexttowardl math_c99.h(277)
fdiml math_c99.h(279)
fmaxl math_c99.h(280)
fminl math_c99.h(281)
fmal math_c99.h(283)
llrint math_c99.h(287)
llround math_c99.h(288)
llrintf math_c99.h(290)
llroundf math_c99.h(291)
llrintl math_c99.h(293)
llroundl math_c99.h(294)
signgam math.h(75)
_lib_version math.h(86)
gamma math.h(150)
j0 math.h(152)
j1 math.h(153)
jn math.h(154)
y0 math.h(155)
y1 math.h(156)
yn math.h(157)
scalb math.h(170)
matherr math.h(213)
significand math.h(218)
signgamf math.h(226)
signgaml math.h(227)
isnanf math.h(229)
isnanl math.h(230)
gammaf math.h(231)
gammaf_r math.h(232)
j0f math.h(233)
j1f math.h(234)
jnf math.h(235)
lgammaf_r math.h(236)
scalbf math.h(237)
significandf math.h(238)
y0f math.h(239)
y1f math.h(240)
ynf math.h(241)
gammal math.h(242)
gammal_r math.h(243)
j0l math.h(244)
j1l math.h(245)
jnl math.h(246)
lgammal_r math.h(247)
scalbl math.h(248)
significandl math.h(249)
y0l math.h(250)
y1l math.h(251)
ynl math.h(252)
sincos math.h(275)
sincosf math.h(276)
sincosl math.h(277)
gamma_r math.h(301)
lgamma_r math.h(302)
PDQ_CreateClosed PDQ_Lib.h(162)
PDQ_CreateClosed_p PDQ_Lib.h(163)
PDQ_CreateOpen PDQ_Lib.h(166)
PDQ_CreateOpen_p PDQ_Lib.h(167)
PDQ_CreateNode PDQ_Lib.h(170)
PDQ_CreateMultiNode PDQ_Lib.h(174)
PDQ_GetStreamsCount PDQ_Lib.h(182)
PDQ_GetNodesCount PDQ_Lib.h(185)
PDQ_GetResponse PDQ_Lib.h(190)
PDQ_GetResidenceTime PDQ_Lib.h(193)
PDQ_GetThruput PDQ_Lib.h(196)
PDQ_GetLoadOpt PDQ_Lib.h(199)
PDQ_GetUtilization PDQ_Lib.h(202)
PDQ_GetQueueLength PDQ_Lib.h(206)
PDQ_GetThruMax PDQ_Lib.h(210)
PDQ_Init PDQ_Lib.h(216)
PDQ_Report PDQ_Lib.h(220)
PDQ_SetDebug PDQ_Lib.h(224)
PDQ_SetDemand PDQ_Lib.h(227)
PDQ_SetDemand_p PDQ_Lib.h(228)
PDQ_SetVisits PDQ_Lib.h(231)
PDQ_SetVisits_p PDQ_Lib.h(232)
PDQ_Solve PDQ_Lib.h(235)
PDQ_SetWUnit PDQ_Lib.h(238)
PDQ_SetTUnit PDQ_Lib.h(239)
PDQ_SetComment PDQ_Lib.h(241)
PDQ_GetComment PDQ_Lib.h(242)
print_nodes PDQ_Lib.h(246)
getnode PDQ_Lib.h(247)
getjob PDQ_Lib.h(248)
function returns value which is always ignored
printf sprintf
function argument ( number ) type inconsistent with format
sprintf (arg 3) int :: (format) char * MVA_Approx.c(255)
sprintf (arg 3) int :: (format) char * MVA_Approx.c(286)
declared global, could be static
sumQ MVA_Approx.c(331)