Thread View: news.software.nntp
5 messages
5 total messages
Started by Keith Hermansader
Tue, 25 Nov 1997 00:00
Compiling Diablo under Solaris
Author: Keith Hermansader
Date: Tue, 25 Nov 1997 00:00
Date: Tue, 25 Nov 1997 00:00
42 lines
2073 bytes
2073 bytes
need some help getting Diablo to compile under Solaris & Solaris x86. so far the same happens with 1.13 and 1.14, what's happening is during the compile I get a ton of warnings such as: warning: implicit declaration of function `getpagesize' warning: implicit declaration of function `bcopy' warning: implicit declaration of function `bcopy' by far the most are warnings about bcopy.. when it finally bombs out is at: gcc -g -O2 -Wall -Wstrict-prototypes -I. -Ilib -DVERS=1.14 obj/util_dicmd.o -Lobj -ldiablo -lm -lnsl -o dbin/dicmd Undefined first referenced symbol in file socket obj/util_dicmd.o connect obj/util_dicmd.o ld: fatal: Symbol referencing errors. No output written to dbin/dicmd (all : dbin/dicmd) failed code 1. xmake Exit 1 xmake Exit 1 as I said this happens with 1.13 as well as 1.14.. I suspect it's Solaris.. same happens compiling on a Sparc E450 running Solaris 2.6/gcc 2.7.2.3.. maybe a screwed library or two? machine in question is a P-200, 256M RAM, AHA-2940U controlling the root/news/history and an AHA-3940AU controlling the spool usind ODS.. using solaris x86 2.5.1, all the system patches are up to date save for a couple CDE patches, also using gcc 2.7.2.3 which I think is the latest.. any ideas? FWIW 1.13 and 1.14 compiled error free under RH Linux 4.2 (2.0.32) with gcc 2.7.2.3 on two other machines.. would like to get it running on Solaris tho.. keith
Re: Compiling Diablo under Solaris
Author: Nate Shockey
Date: Tue, 25 Nov 1997 00:00
Date: Tue, 25 Nov 1997 00:00
37 lines
1581 bytes
1581 bytes
Forrest J. Cavalier III wrote: > > And could someone tell me why getpagesize() is not declared anywhere > in Solaris 2.5? It is supposed to be in unistd.h, it IS in libc, > but a grep on everything in include and include/sys comes up empty. getpagesize is a berkeley compatibility function, and it's prototype is missing from /usr/ucbinclude/unistd.h. Like you said, it _is_ in libc though, so not to worry. You can look at the call and deduce the prototype if you want to add if, but, to make life easier, here is it: int getpagesize(void); Or at least that's what it _should_ be. ;) > The manpage for getpagesize says #include <unistd.h>. Yeah, the appropriate System V function is sysconf. #include <unistd.h> long sysconf(int name); And the call is: some_long_var = sysconf(_SC_PAGESIZE); Cheers! ____ _______ __________________ Nate Shockey underdog@flash.net News Administrator FlashNet Communications
Re: Compiling Diablo under Solaris
Author: Brett Hawn
Date: Tue, 25 Nov 1997 00:00
Date: Tue, 25 Nov 1997 00:00
57 lines
2570 bytes
2570 bytes
you can for the most part ignore the implicit decleration warnings, though if you want, go get the prototypes for these functions and paste them in the proper file. On the failed part, in the makefile, look for where LIBS is defined and add -lnsl -socket this will then compile On Tue, 25 Nov 1997 00:13:53 -0500, Keith Hermansader <keherma@dojo.epix.net> wrote: >need some help getting Diablo to compile under Solaris & Solaris x86. > >so far the same happens with 1.13 and 1.14, what's happening is during >the compile I get a ton of warnings such as: > >warning: implicit declaration of function `getpagesize' >warning: implicit declaration of function `bcopy' >warning: implicit declaration of function `bcopy' > >by far the most are warnings about bcopy.. when it finally bombs out is >at: > >gcc -g -O2 -Wall -Wstrict-prototypes -I. -Ilib -DVERS=1.14 >obj/util_dicmd.o -Lobj -ldiablo -lm -lnsl -o dbin/dicmd >Undefined first referenced >symbol in file >socket obj/util_dicmd.o >connect obj/util_dicmd.o >ld: fatal: Symbol referencing errors. No output written to dbin/dicmd >(all : dbin/dicmd) failed code 1. >xmake Exit 1 >xmake Exit 1 > > >as I said this happens with 1.13 as well as 1.14.. I suspect it's >Solaris.. same happens compiling on a Sparc E450 running Solaris 2.6/gcc >2.7.2.3.. maybe a screwed library or two? > >machine in question is a P-200, 256M RAM, AHA-2940U controlling the >root/news/history and an AHA-3940AU controlling the spool usind ODS.. >using solaris x86 2.5.1, all the system patches are up to date save for >a couple CDE patches, also using gcc 2.7.2.3 which I think is the >latest.. > >any ideas? FWIW 1.13 and 1.14 compiled error free under RH Linux 4.2 >(2.0.32) with gcc 2.7.2.3 on two other machines.. would like to get it >running on Solaris tho.. > >keith --
Re: Compiling Diablo under Solaris
Author: Marc Slemko
Date: Tue, 25 Nov 1997 00:00
Date: Tue, 25 Nov 1997 00:00
37 lines
1893 bytes
1893 bytes
In <347A5E91.FA74673@dojo.epix.net> Keith Hermansader <keherma@dojo.epix.net> writes: >need some help getting Diablo to compile under Solaris & Solaris x86. >so far the same happens with 1.13 and 1.14, what's happening is during >the compile I get a ton of warnings such as: >warning: implicit declaration of function `getpagesize' >warning: implicit declaration of function `bcopy' >warning: implicit declaration of function `bcopy' >by far the most are warnings about bcopy.. when it finally bombs out is >at: >gcc -g -O2 -Wall -Wstrict-prototypes -I. -Ilib -DVERS=1.14 >obj/util_dicmd.o -Lobj -ldiablo -lm -lnsl -o dbin/dicmd >Undefined first referenced >symbol in file >socket obj/util_dicmd.o >connect obj/util_dicmd.o >ld: fatal: Symbol referencing errors. No output written to dbin/dicmd >(all : dbin/dicmd) failed code 1. >xmake Exit 1 >xmake Exit 1 You need -lsocket on whatever line in the config or makefile that controls the cflags. >as I said this happens with 1.13 as well as 1.14.. I suspect it's >Solaris.. same happens compiling on a Sparc E450 running Solaris 2.6/gcc >2.7.2.3.. maybe a screwed library or two? Solaris has screwed libraries by defualt, but...
Re: Compiling Diablo under Solaris
Author: Forrest J. Cavalier III
Date: Tue, 25 Nov 1997 00:00
Date: Tue, 25 Nov 1997 00:00
40 lines
1926 bytes
1926 bytes
In article <347A5E91.FA74673@dojo.epix.net>, keherma@dojo.epix.net wrote...
>
>need some help getting Diablo to compile under Solaris & Solaris x86.
>
>so far the same happens with 1.13 and 1.14, what's happening is during
>the compile I get a ton of warnings such as:
>
>warning: implicit declaration of function `getpagesize'
>warning: implicit declaration of function `bcopy'
>warning: implicit declaration of function `bcopy'
>
>by far the most are warnings about bcopy.. when it finally bombs out is
>at:
Change diablo/lib/defs.h to have:
#include <strings.h>
which is where Solaris declares the bcopy() and friends.
And could someone tell me why getpagesize() is not declared anywhere
in Solaris 2.5? It is supposed to be in unistd.h, it IS in libc,
but a grep on everything in include and include/sys comes up empty.
The manpage for getpagesize says #include <unistd.h>.
Solaris 2.6 has the declaration in unistd.h
I couldn't find any DejaNews references on this.
Anyway, if you don't like the warning, then simply place the
declaration into defs.h
extern int getpagesize(void);
Forrest Cavalier, Mib Software, INN customization and consulting
Searchable hypertext INN docs, FAQ, RFCs, etc: 650+ pages:
http://www.mibsoftware.com/userkt/forprov.htm
Commercial support for INN: http://www.mibsoftware.com/innsup.htm
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads