Skip to content

Failed to build the latest code. It seems that some .h files are missing. #8

Description

@Litmus505

libtool: compile: gcc -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DPACKAGE="dssl" -DVERSION="2.1.1" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_ARPA_INET_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_TIME_H=1 -I. -fPIC -DDSSL -I/usr/local/ssl/include -O2 -DNDEBUG -MT session.lo -MD -MP -MF .deps/session.Tpo -c session.c -o session.o
session.c:39:38: warning: 'struct ip_addr' declared inside parameter list [enabled by default]
void IpAddressToString( const struct ip_addr ipaddr, char buff )
^
session.c:39:38: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
session.c: In function 'IpAddressToString':
session.c:45:13: error: dereferencing pointer to incomplete type
b = ipaddr->addr.a4b;
^
session.c:50:13: error: dereferencing pointer to incomplete type
b = ipaddr->addr.a6.s6_addr;
^
session.c: At top level:
session.c:66:36: warning: 'struct ip_addr' declared inside parameter list [enabled by default]
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c:66:6: error: conflicting types for 'AddressToString'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
In file included from session_table.h:24:0,
from capenv.h:24,
from session.c:23:
session.h:65:6: note: previous declaration of 'AddressToString' was here
void AddressToString( uint32_t ip, uint16_t port, char* buff );
^
session.c: In function 'AddressToString':
session.c:75:2: warning: passing argument 1 of 'IpAddressToString' from incompatible pointer type [enabled by default]
IpAddressToString(ipaddr, buff_p);
^
session.c:39:6: note: expected 'const struct ip_addr *' but argument is of type 'const struct ip_addr *'
void IpAddressToString( const struct ip_addr ipaddr, char buff )
^
session.c: In function 'SessionToString':
session.c:87:13: error: 'DSSL_MAX_IP_ADDR_STR_SIZE' undeclared (first use in this function)
char addr1[DSSL_MAX_IP_ADDR_STR_SIZE], addr2[DSSL_MAX_IP_ADDR_STR_SIZE];
^
session.c:87:13: note: each undeclared identifier is reported only once for each function it appears in
session.c:92:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &sess->serverStream.ip_addr, sess->serverStream.port, addr1 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c:93:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &sess->clientStream.ip_addr, sess->clientStream.port, addr2 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c: In function 'StreamToString':
session.c:102:13: error: 'DSSL_MAX_IP_ADDR_STR_SIZE' undeclared (first use in this function)
char addr1[DSSL_MAX_IP_ADDR_STR_SIZE], addr2[DSSL_MAX_IP_ADDR_STR_SIZE];
^
session.c:107:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &str->ip_addr, str->port, addr1 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'const uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c:108:2: warning: passing argument 1 of 'AddressToString' from incompatible pointer type [enabled by default]
AddressToString( &StreamGetPeer(str)->ip_addr, StreamGetPeer(str)->port, addr2 );
^
session.c:66:6: note: expected 'const struct ip_addr *' but argument is of type 'uint32_t *'
void AddressToString( const struct ip_addr ipaddr, uint16_t port, char buff )
^
session.c: In function 'SessionGetPacketDirection':
session.c:117:17: error: storage size of 'ip_src' isn't known
struct ip_addr ip_src, ip_dst;
^
session.c:117:25: error: storage size of 'ip_dst' isn't known
struct ip_addr ip_src, ip_dst;
^
session.c: In function 'SessionInit':
session.c:154:17: error: storage size of 'ip_dst' isn't known
struct ip_addr ip_dst, ip_src;
^
session.c:154:25: error: storage size of 'ip_src' isn't known
struct ip_addr ip_dst, ip_src;
^
session.c:225:34: error: 'DSSL_TCPSTREAM_NO_SYN' undeclared (first use in this function)
sess->serverStream.flags |= DSSL_TCPSTREAM_NO_SYN;
^
session.c: In function 'SessionInitDecoders':
session.c:243:17: error: storage size of 'ip_dst' isn't known
struct ip_addr ip_dst, ip_src;
^
session.c:243:25: error: storage size of 'ip_src' isn't known
struct ip_addr ip_dst, ip_src;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions