View Single Post
Old 14-04-2005, 14:31   #2
ilsensine
Senior Member
 
L'Avatar di ilsensine
 
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
Br0ken configure script.

Dopo il configure, modifica config.h e commenta le righe
#define const
#define inline
(ovvero mettici un "//" all'inizio).
In più, applica questa patch:
Codice:
diff -ur npadmin-0.8.4.org/npahelpers.C npadmin-0.8.4/npahelpers.C
--- npadmin-0.8.4.org/npahelpers.C	2000-02-08 21:44:24.000000000 +0100
+++ npadmin-0.8.4/npahelpers.C	2005-04-14 15:38:54.000000000 +0200
@@ -159,7 +159,7 @@
   if(CK_UPDATEFIRM_FLAG){
     //    fprintf(stderr,"debug: %s \n",optparam[UPDATEFIRM_PARAM]);
     hpprivsets.append(HPICFDOWNLOADSTATUS,INT_TAG,4); // create and go
-    hpprivsets.append(HPICFDOWNLOADTDOMAIN,OID_TAG,"1.3.6.1.6.1.1",13);
+    hpprivsets.append(HPICFDOWNLOADTDOMAIN,OID_TAG,(void *)"1.3.6.1.6.1.1",13);
     
     char *server,*filename;
     //  fprintf(stderr, "debug: %s \n",optparam[UPDATEFIRM_PARAM]);
diff -ur npadmin-0.8.4.org/snmpsock.C npadmin-0.8.4/snmpsock.C
--- npadmin-0.8.4.org/snmpsock.C	1999-01-19 03:26:05.000000000 +0100
+++ npadmin-0.8.4/snmpsock.C	2005-04-14 15:39:58.000000000 +0200
@@ -4,6 +4,7 @@
 #include <sys/socket.h>
 #include <string.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <sys/time.h>
 #include <netinet/in.h>
Fatto questo dovresti riuscire a compilare.
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al
andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12
ilsensine è offline   Rispondi citando il messaggio o parte di esso