List Info

Thread: 5-0.REL under FC4




5-0.REL under FC4
user name
2006-05-10 10:51:00
On Wed, 10 May 2006 00:22:28 +0100, Peter Flynn
<petersilmaril.ie> wrote:

> so I copied md5.h from /usr/include/pppd to
/usr/include
> and downloaded a copy of des.h from 
> http://www.ussrback.com/crypto/cracking-des/cr
acking-des/ch5/des.h

I should have RTF mail archive  To fix
this, install openssl-devel
(this needs documenting in the INSTALL file as openssl-devel
is not 
installed by default.)

Then to make it xmake, in lib/defs.h, <md5.h> and
<des.h> must be 
<openssl/md5.h> and <openssl/des.h> 

There appears to be a typo in dreaderd/main.c
   Prototype struct vserver VServerConfig[];
must be capitalized to
   Prototype struct Vserver VServerConfig[];

Then it xmakes nearly all the way through, except for
linking:
in XMakefile.inc:
   Add -lssl to LFLAGS in line 23
   Add -lssl to LFLAGS in the #ifdef block for __linux__

The -lssl resolves the missing dependencies except for one
reference
to MD5Data in dreaderd/post.c which I don't know how to
fix:

>     (cd dreaderd; xmake all)
>     gcc -g -O2 -Wall -Wstrict-prototypes -I../
'-DVERS="5.0"' 
> '-DSUBREV="REL"' -D_FILE_OFFSET_BITS=64
../obj/dr_main.o ../obj/dr_thread.o 
> ../obj/dr_reader.o ../obj/dr_dns.o ../obj/dr_mbuf.o
../obj/dr_subs.o 
> ../obj/dr_list.o ../obj/dr_feed.o ../obj/dr_xover.o
../obj/dr_nntp.o 
> ../obj/dr_misc.o ../obj/dr_post.o ../obj/dr_server.o
../obj/dr_group.o 
> ../obj/dr_spool.o ../obj/dr_cache.o
../obj/dr_rtstatus.o ../obj/dr_control.o 
> ../obj/dr_wildorcmp.o ../obj/dr_cancel.o
../obj/dr_post-addr-ck.o 
> ../obj/dr_cleanfrom.o ../obj/dr_msg.o ../obj/dr_dfa.o
-o ../dbin/dreaderd 
> -L../obj -lfilter -ldiablo -lm -lz -lrt -lcrypto -lssl
> ../obj/dr_post.o(.text+0x89): In function
`NNPHMangle':
> /tmp/diablo-5.0-REL/dreaderd/post.c:67: undefined
reference to `MD5Data'
> collect2: ld returned 1 exit status
> (all : ../dbin/dreaderd) failed code 1.
> xmake Exit 1
> xmake Exit 1

Can someone point me at a solution for this. My C ain't
good enough.

///Peter

_______________________________________________
Diablo-users mailing list
Diablo-usersopenusenet.org
htt
p://www.plig.net/mailman/listinfo/diablo-users
5-0.REL under FC4
user name
2006-05-10 11:29:46
> On Wed, 10 May 2006 00:22:28 +0100, Peter Flynn
<petersilmaril.ie> wrote:
> 
> > so I copied md5.h from /usr/include/pppd to
/usr/include
> > and downloaded a copy of des.h from 
> > http://www.ussrback.com/crypto/cracking-des/cr
acking-des/ch5/des.h
> 
> I should have RTF mail archive  To fix
this, install openssl-devel
> (this needs documenting in the INSTALL file as
openssl-devel is not 
> installed by default.)
> 
> Then to make it xmake, in lib/defs.h, <md5.h> and
<des.h> must be 
> <openssl/md5.h> and <openssl/des.h> 
> 
> There appears to be a typo in dreaderd/main.c
>    Prototype struct vserver VServerConfig[];
> must be capitalized to
>    Prototype struct Vserver VServerConfig[];
> 
> Then it xmakes nearly all the way through, except for
linking:
> in XMakefile.inc:
>    Add -lssl to LFLAGS in line 23
>    Add -lssl to LFLAGS in the #ifdef block for
__linux__
> 
> The -lssl resolves the missing dependencies except for
one reference
> to MD5Data in dreaderd/post.c which I don't know how
to fix:
> 
> >     (cd dreaderd; xmake all)
> >     gcc -g -O2 -Wall -Wstrict-prototypes -I../
'-DVERS="5.0"' 
> > '-DSUBREV="REL"'
-D_FILE_OFFSET_BITS=64 ../obj/dr_main.o ../obj/dr_thread.o 
> > ../obj/dr_reader.o ../obj/dr_dns.o
../obj/dr_mbuf.o ../obj/dr_subs.o 
> > ../obj/dr_list.o ../obj/dr_feed.o
../obj/dr_xover.o ../obj/dr_nntp.o 
> > ../obj/dr_misc.o ../obj/dr_post.o
../obj/dr_server.o ../obj/dr_group.o 
> > ../obj/dr_spool.o ../obj/dr_cache.o
../obj/dr_rtstatus.o ../obj/dr_control.o 
> > ../obj/dr_wildorcmp.o ../obj/dr_cancel.o
../obj/dr_post-addr-ck.o 
> > ../obj/dr_cleanfrom.o ../obj/dr_msg.o
../obj/dr_dfa.o -o ../dbin/dreaderd 
> > -L../obj -lfilter -ldiablo -lm -lz -lrt -lcrypto
-lssl

							   ^^^ -lmd

> > ../obj/dr_post.o(.text+0x89): In function
`NNPHMangle':
> > /tmp/diablo-5.0-REL/dreaderd/post.c:67: undefined
reference to `MD5Data'
> > collect2: ld returned 1 exit status
> > (all : ../dbin/dreaderd) failed code 1.
> > xmake Exit 1
> > xmake Exit 1
> 
> Can someone point me at a solution for this. My C
ain't good enough.

Need to have -lmd in there to link the MD5 functions...

... JG
-- 
Joe Greco - sol.net Network Services - Milwaukee, WI - http://www.sol.net
"We call it the 'one bite at the apple' rule. Give
me one chance [and] then I
won't contact you again." - Direct Marketing Ass'n
position on e-mail spam(CNN)
With 24 million small businesses in the US alone, that's
way too many apples.
_______________________________________________
Diablo-users mailing list
Diablo-usersopenusenet.org
htt
p://www.plig.net/mailman/listinfo/diablo-users
5-0.REL under FC4
user name
2006-05-11 08:49:01
* peter (petersilmaril.ie) wrote:
>On Wed, 10 May 2006 00:22:28 +0100, Peter Flynn
<petersilmaril.ie> wrote:
>
> > so I copied md5.h from /usr/include/pppd to
/usr/include
> > and downloaded a copy of des.h from 
> > http://www.ussrback.com/crypto/cracking-des/cr
acking-des/ch5/des.h
>
>I should have RTF mail archive  To fix
this, install openssl-devel
>(this needs documenting in the INSTALL file as
openssl-devel is not 
>installed by default.)
>
>Then to make it xmake, in lib/defs.h, <md5.h> and
<des.h> must be 
><openssl/md5.h> and <openssl/des.h> 
>
>There appears to be a typo in dreaderd/main.c
>   Prototype struct vserver VServerConfig[];
>must be capitalized to
>   Prototype struct Vserver VServerConfig[];

I sent a patch for this ages ago in 
<20051205130241.GS17609samizdat.noc.clara.net>;
it'd be nice to get it 
applied.
-Thom
_______________________________________________
Diablo-users mailing list
Diablo-usersopenusenet.org
htt
p://www.plig.net/mailman/listinfo/diablo-users
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )