gnokii-users
[Top][All Lists]
Advanced

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

Compile error Gnokii-0.3.5 Solaris 2.6


From: Glenn Satchell
Subject: Compile error Gnokii-0.3.5 Solaris 2.6
Date: Sat, 13 Apr 2002 22:49:29 +1000 (EST)

I get a compile error on Solaris 2.6 with gnokii-0.3.5. The symbol
AF_LOCAL is not defined for Solaris, I think the equivalent required is
AF_UNIX.

The same line of code exists in gnokii-0.4.0pre15, but not in gnokii-0.3.3.

Gcc version 2.95.3 20010315 (release), GNU Make version 3.78.1


Output from compile:

gmake[1]: Entering directory `/export/home/glenn/build/gnokii-0.3.5/common/data'
...
gcc -ggdb3 -Wall -I../getopt  -I../../include -D_REENTRANT 
-I/usr/openwin/include  -c -o virtmodem.o virtmodem.c
virtmodem.c: In function `gopen':
virtmodem.c:238: `AF_LOCAL' undeclared (first use in this function)
virtmodem.c:238: (Each undeclared identifier is reported only once
virtmodem.c:238: for each function it appears in.)
gmake[1]: *** [virtmodem.o] Error 1
gmake[1]: Leaving directory `/export/home/glenn/build/gnokii-0.3.5/common/data'
gmake: *** [common/data] Error 2


The line of code from virtmodem.c is:

        if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sockfd) < 0) return -1;


These are the address families defined in the Solaris 2.6 
/usr/include/sys/socket.h

/*
 * Address families.
 */
#define AF_UNSPEC       0               /* unspecified */
#define AF_UNIX         1               /* local to host (pipes, portals) */
#define AF_INET         2               /* internetwork: UDP, TCP, etc. */
#define AF_IMPLINK      3               /* arpanet imp addresses */
#define AF_PUP          4               /* pup protocols: e.g. BSP */
#define AF_CHAOS        5               /* mit CHAOS protocols */
#define AF_NS           6               /* XEROX NS protocols */
#define AF_NBS          7               /* nbs protocols */
#define AF_ECMA         8               /* european computer manufacturers */
#define AF_DATAKIT      9               /* datakit protocols */
#define AF_CCITT        10              /* CCITT protocols, X.25 etc */
#define AF_SNA          11              /* IBM SNA */
#define AF_DECnet       12              /* DECnet */
#define AF_DLI          13              /* Direct data link interface */
#define AF_LAT          14              /* LAT */
#define AF_HYLINK       15              /* NSC Hyperchannel */
#define AF_APPLETALK    16              /* Apple Talk */
#define AF_NIT          17              /* Network Interface Tap */
#define AF_802          18              /* IEEE 802.2, also ISO 8802 */
#define AF_OSI          19              /* umbrella for all families used */
#define AF_X25          20              /* CCITT X.25 in particular */
#define AF_OSINET       21              /* AFI = 47, IDI = 4 */
#define AF_GOSIP        22              /* U.S. Government OSI */
#define AF_IPX          23              /* Novell Internet Protocol */
#define AF_ROUTE        24              /* Internal Routing Protocol */
#define AF_LINK         25              /* Link-layer interface */

regards,
-glenn
--
Glenn Satchell              mailto:address@hidden  ((* <- That's me
Uniq Advances Pty Ltd         http://www.uniq.com.au  *))    skiing the
Mobile 0409 458 580 Ph 02 9380 6360 Fax 02 9380 6416  ((*    giant slalom!
                                                      *X* 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]