»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 05-03-2004, 02:38 PM   #1 (permalink)
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 8
ahel is on a distinguished road
Send a message via AIM to ahel Send a message via Yahoo to ahel
make error =(

problem w/ ezmlm make


./compile fmt_uint0.c
./compile fmt_ulong.c
./compile scan_ulong.c
./compile scan_8long.c
./makelib fs.a fmt_str.o fmt_uint.o fmt_uint0.o \
fmt_ulong.o scan_ulong.o scan_8long.o
./compile getconf.c
./compile makehash.c
./compile surf.c
./load ezmlm-idx \
mime.a slurp.o slurpclose.o wait.a getln.a strerr.a sig.a open.a \
lock.a mime.a substdio.a stralloc.a alloc.a error.a str.a fd.a \
getopt.a case.a fs.a getconf.o makehash.o surf.o
ezmlm-idx.o(.text+0xeff): In function `main':
: undefined reference to `errno'
ezmlm-idx.o(.text+0xf83): In function `main':
: undefined reference to `errno'
slurp.o(.text+0x3b): In function `slurp':
: undefined reference to `errno'
slurpclose.o(.text+0x42): In function `slurpclose':
: undefined reference to `errno'
strerr.a(strerr_sys.o)(.text+0x8): In function `strerr_sysinit':
: undefined reference to `errno'
substdio.a(substdi.o)(.text+0x2c): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [ezmlm-idx] Error 1
[root@kappa ezmlm-0.53]#



any ideas what this means???

__________________
~Thomas
ahel is offline   Reply With Quote
Old 05-03-2004, 05:27 PM   #2 (permalink)
Registered User
 
Join Date: Aug 2002
Posts: 63
soulware is on a distinguished road
try adding
Code:
#include <errno.h>
to the source files that won't compile
soulware is offline   Reply With Quote
Old 05-04-2004, 09:00 AM   #3 (permalink)
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 8
ahel is on a distinguished road
Send a message via AIM to ahel Send a message via Yahoo to ahel
./compile surf.c
./load ezmlm-idx \
mime.a slurp.o slurpclose.o wait.a getln.a strerr.a sig.a open.a \
lock.a mime.a substdio.a stralloc.a alloc.a error.a str.a fd.a \
getopt.a case.a fs.a getconf.o makehash.o surf.o
ezmlm-idx.o(.text+0xeff): In function `main':
: undefined reference to `errno'
ezmlm-idx.o(.text+0xf83): In function `main':
: undefined reference to `errno'
slurp.o(.text+0x3b): In function `slurp':
: undefined reference to `errno'
slurpclose.o(.text+0x42): In function `slurpclose':
: undefined reference to `errno'
strerr.a(strerr_sys.o)(.text+0x8): In function `strerr_sysinit':
: undefined reference to `errno'
substdio.a(substdi.o)(.text+0x2c): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [ezmlm-idx] Error 1



I added


#include "errno.h"


which did not fix the problem.


[root@kappa ezmlm-0.53]# make
./compile surf.c
./load ezmlm-idx \
mime.a slurp.o slurpclose.o wait.a getln.a strerr.a sig.a open.a \
lock.a mime.a substdio.a stralloc.a alloc.a error.a str.a fd.a \
getopt.a case.a fs.a getconf.o makehash.o surf.o
ezmlm-idx.o(.text+0xeff): In function `main':
: undefined reference to `errno'
ezmlm-idx.o(.text+0xf83): In function `main':
: undefined reference to `errno'
slurp.o(.text+0x3b): In function `slurp':
: undefined reference to `errno'
slurpclose.o(.text+0x42): In function `slurpclose':
: undefined reference to `errno'
strerr.a(strerr_sys.o)(.text+0x8): In function `strerr_sysinit':
: undefined reference to `errno'
substdio.a(substdi.o)(.text+0x2c): more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [ezmlm-idx] Error 1




here is surf.c


/* 19970320, overlap allowed 19970406 */

#include "surf.h"
#include "uint32.h"
#include "errno.h"

#define ROTATE(x,b) (((x) << (b)) | ((x) >> (32 - (b))))
#define MUSH(i,b) x = t[i] += (((x ^ seed[i]) + sum) ^ ROTATE(x,b));

void surf(out,in,seed)
uint32 out[8]; uint32 in[12]; uint32 seed[32];
{
uint32 t[12]; uint32 x; uint32 sum = 0;
int r; int i; int loop;

for (i = 0;i < 12;++i) t[i] = in[i] ^ seed[12 + i];
for (i = 0;i < 8;++i) out[i] = seed[24 + i];
x = t[11];
for (loop = 0;loop < 2;++loop) {
for (r = 0;r < 16;++r) {
sum += 0x9e3779b9;
MUSH(0,5) MUSH(1,7) MUSH(2,9) MUSH(3,13)
MUSH(4,5) MUSH(5,7) MUSH(6,9) MUSH(7,13)
MUSH(8,5) MUSH(9,7) MUSH(10,9) MUSH(11,13)
}
for (i = 0;i < 8;++i) out[i] ^= t[i + 4];
}
}
__________________
~Thomas
ahel is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:16 PM.