nntpcache-2.4.0b3 - compile problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.
	I have compiled nntpcache on Linux byt with some troubles:

----
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../cf -I../common -I../mmap
-I../libmmalloc  -g -O2 -Wall -pipe -c pattern.c
In file included from str.h:40,
                 from libproff.h:13,
                 from pattern.c:43:
str.ext:26: conflicting types for `strcasestr'
/usr/include/string.h:172: previous declaration of `strcasestr'
pattern.c: In function `matchExp':
pattern.c:144: warning: `c' might be used uninitialized in this function
make[2]: *** [pattern.o] Error 1
make[2]: Leaving directory `/home/milek/nntpcache-2.4.0b3/libproff'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/milek/nntpcache-2.4.0b3'
make: *** [all-recursive-am] Error 2
----

so I made a little patch:
-----
diff -u libproff/str.ext.orig libproff/str.ext
--- libproff/str.ext.orig       Thu Apr  6 16:56:13 2000
+++ libproff/str.ext    Thu Apr  6 16:57:54 2000
@@ -23,8 +23,8 @@
 extern  int strLower (char *s);
 extern  int strUpper (char *s);
 extern  int strSnip (char *s, int len, char *start, char *end, char
*buf, int blen);
-extern  char *strcasestr (char *s, char *find);
-extern  char *strncasestr (char *s, char *find, int slen);
+/*extern  char *strcasestr (char *s, char *find);
+*/extern  char *strncasestr (char *s, char *find, int slen);
 extern  int strStripLeftRight (char *s);
 extern  int strStripEOL (char *s);
 extern  int strnStripEOL (char *s, int n);
-----

there's glibc-2.1.3-15

After this little patch it compiles ok and even works :)


So I wanted to compile it on Solaris 2.6 and here's what I got:

-----
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../cf -I../common -I../mmap
-I../libmmalloc  -g -O2 -Wall -pipe -c pattern.c
pattern.c: In function `matchExp':
pattern.c:144: warning: `c' might be used uninitialized in this function
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../cf -I../common -I../mmap
-I../libmmalloc  -g -O2 -Wall -pipe -c ptime.c
gcc: Internal compiler error: program cc1 got fatal signal 6
make[2]: *** [ptime.o] Error 1
make[2]: Leaving directory `/users/local/mroot/nntpcache-2.4.0b3/libproff'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/users/local/mroot/nntpcache-2.4.0b3'
make: *** [all-recursive-am] Error 2
-----

if type make again (I know it's not good idea) it compiles more but

-----
gcc -g -O2 -Wall -pipe  -o nntpcached  acc.o article.o authinfo_ldap.o
authinfo_passwd.o authinfo_pipe.o authinfo_radius.o authinfo.o bregex.o
build_history.o nnconf.o date.o debug.o expire.o filter.o group.o
history.o http.o ihave.o ipc.o list.o lock.o log.o newgroups.o newnews.o
next.o nocem.o nmalloc.o nntpcache.o post.o sockets.o stats.o xover.o
xpath.o ../libproff/libproff.a ../libconfused/libconfused.a
../libmmalloc/libmmalloc.a ../libdbz/libdbz.a ../libradius/libradius.a
-lwrap -lcrypt -lgen -lsocket -lresolv -lnsl 
http.o: In function `render_idx':
/users/local/mroot/nntpcache-2.4.0b3/src/http.c:208: undefined reference
to `nnitod'
http.o: In function `html_tdt':
/users/local/mroot/nntpcache-2.4.0b3/src/http.c:327: undefined reference
to `nnitod'
nntpcache.o: In function `sigalrm':
/users/local/mroot/nntpcache-2.4.0b3/src/nntpcache.c:316: undefined
reference to `nnitod'
/users/local/mroot/nntpcache-2.4.0b3/src/nntpcache.c:317: undefined
reference to `nnitod'
make[2]: *** [nntpcached] Error 1
make[2]: Leaving directory `/users/local/mroot/nntpcache-2.4.0b3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/users/local/mroot/nntpcache-2.4.0b3'
make: *** [all-recursive-am] Error 2 
-----


any ideas?




-- 
						Robert Milkowski
						milek@task.gda.pl




[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux