Olá novamente pessoal!

Pedro fiz as alterações no Makefile desta forma:

de:
EXTRA_LIBS = -lpcre


para:



EXTRA_LIBS = -L/usr/local/lib/libpcre.so.2.1 ---> pois quando eu colocava 
-lpcre continuava o erro.

Após fazer isto recebi o seguinte erro:

route_bns.o -pthread -dl -L/usr/local/lib/libpcre.so.2.1  -rdynamic
engine/parse_config.o(.text+0x7e1): In function `ParsePidFile':
engine/parse_config.c:241: warning: strcpy() is almost always misused, please 
use strlcpy()
engine/num_list.o(.text+0x708): In function `ReplaceAliases':
engine/num_list.c:248: warning: sprintf() is often misused, please use 
snprintf()
engine/parse_rules.o(.text+0x818): In function `ParseRules':
engine/parse_rules.c:236: warning: strcat() is almost always misused, please 
use strlcat()
engine/regex.o(.text+0x52): In function `RegexCompile':
engine/regex.c:21: undefined reference to `pcre_compile'
engine/regex.o(.text+0x87):engine/regex.c:26: undefined reference to 
`pcre_study'
engine/regex.o(.text+0xfc): In function `RegexExec':
engine/regex.c:40: undefined reference to `pcre_exec'
engine/regex.o(.text+0x146): In function `RegexExecDebug':
engine/regex.c:55: undefined reference to `pcre_exec'
engine/regex.o(.text+0x1f7):engine/regex.c:63: undefined reference to 
`pcre_exec'
collect2: ld returned 1 exit status
gmake: *** [hlbr] Error 1

Alguma idéia?


Abraços,
Anibal.
--- Em ter, 12/8/08, pedroarthur.jedi <[EMAIL PROTECTED]> escreveu:
De: pedroarthur.jedi <[EMAIL PROTECTED]>
Assunto: [hlbr] Re: HLBR no OpenBSD 4.3
Para: [email protected]
Data: Terça-feira, 12 de Agosto de 2008, 21:48










    
            > routes/route_ arp.o routes/route_ interface. o routes/route_ bns.o

-pthread -dl -lpcre -rdynamic

> /usr/bin/ld: cannot find -lpcre

> collect2: ld returned 1 exit status

> gmake: *** [hlbr] Error 1



Aparentemente sua libpcre não está no diretório padrão das bibliotecas

do seu sistema... Tente fazer:



$ ./configure



abra o aquivo Makefile com seu editor de texto preferido. Procure por:



EXTRA_LIBS = -lpcre



e substitua por



EXTRA_LIBS = -L/caminho/da/ lib/pcre -lpcre



onde /caminho/da/ lib/pcre representa o caminho absoluto da libpcre no

seu sistema.



salve...



$ gmake




      

    
    
        
         
        
        








        


        
        

--- Em ter, 12/8/08, pedroarthur.jedi <[EMAIL PROTECTED]> escreveu:
De: pedroarthur.jedi <[EMAIL PROTECTED]>
Assunto: [hlbr] Re: HLBR no OpenBSD 4.3
Para: [email protected]
Data: Terça-feira, 12 de Agosto de 2008, 21:48










    
            > routes/route_ arp.o routes/route_ interface. o routes/route_ bns.o

-pthread -dl -lpcre -rdynamic

> /usr/bin/ld: cannot find -lpcre

> collect2: ld returned 1 exit status

> gmake: *** [hlbr] Error 1



Aparentemente sua libpcre não está no diretório padrão das bibliotecas

do seu sistema... Tente fazer:



$ ./configure



abra o aquivo Makefile com seu editor de texto preferido. Procure por:



EXTRA_LIBS = -lpcre



e substitua por



EXTRA_LIBS = -L/caminho/da/ lib/pcre -lpcre



onde /caminho/da/ lib/pcre representa o caminho absoluto da libpcre no

seu sistema.



salve...



$ gmake




      

    
    
        
         
        
        








        


        
        


      Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua 
cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses

Responder a