dsocks compile error
get an error when trying to compile dsocks on 10.3.9. see joined file. it seems a problem of headers. Regards Julien ---> Fetching dsocks ---> Verifying checksum(s) for dsocks ---> Checksumming dsocks-1.6.tar.gz ---> Extracting dsocks ---> Extracting dsocks-1.6.tar.gz ---> Applying patches to dsocks ---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/dsocks/files/patch-dsocks.sh patching file dsocks.sh ---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/net/dsocks/files/patch-dsocks-torify.sh patching file dsocks-torify.sh ---> Configuring dsocks ---> Building dsocks with target all Warning: Object directory not changed from original /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_dsocks/work/dsocks-1.6 cc -g -Wall -O2 -nostdlib -flat_namespace -fno-common -undefined suppress -c dsocks.c -o dsocks.o In file included from dsocks.c:35: dsocks.h:13: error: parse error before "uint8_t" dsocks.h:13: warning: no semicolon at end of struct or union dsocks.h:14: warning: type defaults to `int' in declaration of `cd' dsocks.h:14: warning: data definition has no type or storage class dsocks.h:15: error: parse error before "dport" dsocks.h:15: warning: type defaults to `int' in declaration of `dport' dsocks.h:15: warning: data definition has no type or storage class dsocks.h:16: error: parse error before "dst" dsocks.h:16: warning: type defaults to `int' in declaration of `dst' dsocks.h:16: warning: data definition has no type or storage class dsocks.h:31: error: parse error before "uint8_t" dsocks.h:31: warning: no semicolon at end of struct or union dsocks.h:32: warning: type defaults to `int' in declaration of `nmeths' dsocks.h:32: warning: data definition has no type or storage class dsocks.h:33: error: parse error before "method" dsocks.h:33: warning: type defaults to `int' in declaration of `method' dsocks.h:33: warning: data definition has no type or storage class dsocks.h:37: error: parse error before "uint8_t" dsocks.h:37: warning: no semicolon at end of struct or union dsocks.h:38: warning: type defaults to `int' in declaration of `cmd' dsocks.h:38: warning: data definition has no type or storage class dsocks.h:39: error: parse error before "rsv" dsocks.h:39: warning: type defaults to `int' in declaration of `rsv' dsocks.h:39: warning: data definition has no type or storage class dsocks.h:40: error: parse error before "atyp" dsocks.h:40: warning: type defaults to `int' in declaration of `atyp' dsocks.h:40: warning: data definition has no type or storage class dsocks.h:41: error: parse error before "dst" dsocks.h:41: warning: type defaults to `int' in declaration of `dst' dsocks.h:41: warning: data definition has no type or storage class dsocks.h:42: error: parse error before "dport" dsocks.h:42: warning: type defaults to `int' in declaration of `dport' dsocks.h:42: warning: data definition has no type or storage class dsocks.c: In function `_sin_aton': dsocks.c:56: error: `uint32_t' undeclared (first use in this function) dsocks.c:56: error: (Each undeclared identifier is reported only once dsocks.c:56: error: for each function it appears in.) dsocks.c:56: error: parse error before "ip" dsocks.c:57: error: `uint16_t' undeclared (first use in this function) dsocks.c:62: error: `ip' undeclared (first use in this function) dsocks.c:63: error: `port' undeclared (first use in this function) dsocks.c: In function `_dsocks4_connect': dsocks.c:90: error: dereferencing pointer to incomplete type dsocks.c:94: error: dereferencing pointer to incomplete type dsocks.c:95: error: dereferencing pointer to incomplete type dsocks.c:96: error: dereferencing pointer to incomplete type dsocks.c:97: error: dereferencing pointer to incomplete type dsocks.c:98: error: dereferencing pointer to incomplete type dsocks.c:111: error: dereferencing pointer to incomplete type dsocks.c:113: error: dereferencing pointer to incomplete type dsocks.c: In function `_dsocks5_connect': dsocks.c:146: error: storage size of `auth' isn't known dsocks.c:147: error: storage size of `msg' isn't known dsocks.c:146: warning: unused variable `auth' dsocks.c:147: warning: unused variable `msg' dsocks.c: In function `_send_recv_timeout': dsocks.c:202: error: variable `tv' has initializer but incomplete type dsocks.c:202: warning: excess elements in struct initializer dsocks.c:202: warning: (near initialization for `tv') dsocks.c:202: warning: excess elements in struct initializer dsocks.c:202: warning: (near initialization for `tv') dsocks.c:202: error: storage size of `tv' isn't known dsocks.c:202: warning: unused variable `tv' *** Error code 1 Stop in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_dsocks/work/dsocks-1.6. Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_dsocks/work/dsocks-1.6" && bsdmake all " returned error 1 Command output: dsocks.c:56: error: for each function it appears in.) dsocks.c:56: error: parse error before "ip" dsocks.c:57: error: `uint16_t' undeclared (first use in this function) dsocks.c:62: error: `ip' undeclared (first use in this function) dsocks.c:63: error: `port' undeclared (first use in this function) dsocks.c: In function `_dsocks4_connect': dsocks.c:90: error: dereferencing pointer to incomplete type dsocks.c:94: error: dereferencing pointer to incomplete type dsocks.c:95: error: dereferencing pointer to incomplete type dsocks.c:96: error: dereferencing pointer to incomplete type dsocks.c:97: error: dereferencing pointer to incomplete type dsocks.c:98: error: dereferencing pointer to incomplete type dsocks.c:111: error: dereferencing pointer to incomplete type dsocks.c:113: error: dereferencing pointer to incomplete type dsocks.c: In function `_dsocks5_connect': dsocks.c:146: error: storage size of `auth' isn't known dsocks.c:147: error: storage size of `msg' isn't known dsocks.c:146: warning: unused variable `auth' dsocks.c:147: warning: unused variable `msg' dsocks.c: In function `_send_recv_timeout': dsocks.c:202: error: variable `tv' has initializer but incomplete type dsocks.c:202: warning: excess elements in struct initializer dsocks.c:202: warning: (near initialization for `tv') dsocks.c:202: warning: excess elements in struct initializer dsocks.c:202: warning: (near initialization for `tv') dsocks.c:202: error: storage size of `tv' isn't known dsocks.c:202: warning: unused variable `tv' *** Error code 1 Stop in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_dsocks/work/dsocks-1.6. Warning: the following items did not execute (for dsocks): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
Hi Julien, <snip>
---> Building dsocks with target all Warning: Object directory not changed from original /opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_net_d socks/work/dsocks-1.6 cc -g -Wall -O2 -nostdlib -flat_namespace -fno-common -undefined suppress -c dsocks.c -o dsocks.o In file included from dsocks.c:35: dsocks.h:13: error: parse error before "uint8_t"
</snip> Hmm, I'm the maintainer, but I'm afraid I don't currently have a Panther installation to test this build on to see what the problem is. If anybody else out there with a Panther installation could see if they can reproduce the problem, I'd appreciate it greatly. Kind regards, Maun Suang -- Boey Maun Suang (Boey is my surname) Email: boeyms at macports dot org
Boey Maun Suang <boeyms@macports.org> writes:
---> Building dsocks with target all Warning: Object directory not changed from original /opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_net_d socks/work/dsocks-1.6 cc -g -Wall -O2 -nostdlib -flat_namespace -fno-common -undefined suppress -c dsocks.c -o dsocks.o In file included from dsocks.c:35: dsocks.h:13: error: parse error before "uint8_t"
</snip>
Hmm, I'm the maintainer, but I'm afraid I don't currently have a Panther installation to test this build on to see what the problem is. If anybody else out there with a Panther installation could see if they can reproduce the problem, I'd appreciate it greatly.
Here is what I get on 10.3: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_dsocks/work/dsocks-1.6" && bsdmake all' Warning: Object directory not changed from original /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_dsocks/work/dsocks-1.6 cc -g -Wall -O2 -nostdlib -flat_namespace -fno-common -undefined suppress -c dsocks.c -o dsocks.o In file included from dsocks.c:35: dsocks.h:13: error: parse error before "uint8_t" dsocks.h:13: warning: no semicolon at end of struct or union dsocks.h:14: warning: type defaults to `int' in declaration of `cd' dsocks.h:14: warning: data definition has no type or storage class dsocks.h:15: error: parse error before "dport" dsocks.h:15: warning: type defaults to `int' in declaration of `dport' dsocks.h:15: warning: data definition has no type or storage class dsocks.h:16: error: parse error before "dst" dsocks.h:16: warning: type defaults to `int' in declaration of `dst' dsocks.h:16: warning: data definition has no type or storage class dsocks.h:31: error: parse error before "uint8_t" dsocks.h:31: warning: no semicolon at end of struct or union dsocks.h:32: warning: type defaults to `int' in declaration of `nmeths' dsocks.h:32: warning: data definition has no type or storage class dsocks.h:33: error: parse error before "method" dsocks.h:33: warning: type defaults to `int' in declaration of `method' dsocks.h:33: warning: data definition has no type or storage class dsocks.h:37: error: parse error before "uint8_t" dsocks.h:37: warning: no semicolon at end of struct or union dsocks.h:38: warning: type defaults to `int' in declaration of `cmd' dsocks.h:38: warning: data definition has no type or storage class dsocks.h:39: error: parse error before "rsv" dsocks.h:39: warning: type defaults to `int' in declaration of `rsv' dsocks.h:39: warning: data definition has no type or storage class dsocks.h:40: error: parse error before "atyp" dsocks.h:40: warning: type defaults to `int' in declaration of `atyp' dsocks.h:40: warning: data definition has no type or storage class dsocks.h:41: error: parse error before "dst" dsocks.h:41: warning: type defaults to `int' in declaration of `dst' dsocks.h:41: warning: data definition has no type or storage class dsocks.h:42: error: parse error before "dport" dsocks.h:42: warning: type defaults to `int' in declaration of `dport' dsocks.h:42: warning: data definition has no type or storage class dsocks.c: In function `_sin_aton': dsocks.c:56: error: `uint32_t' undeclared (first use in this function) dsocks.c:56: error: (Each undeclared identifier is reported only once dsocks.c:56: error: for each function it appears in.) dsocks.c:56: error: parse error before "ip" dsocks.c:57: error: `uint16_t' undeclared (first use in this function) dsocks.c:62: error: `ip' undeclared (first use in this function) dsocks.c:63: error: `port' undeclared (first use in this function) dsocks.c: In function `_dsocks4_connect': dsocks.c:90: error: dereferencing pointer to incomplete type dsocks.c:94: error: dereferencing pointer to incomplete type dsocks.c:95: error: dereferencing pointer to incomplete type dsocks.c:96: error: dereferencing pointer to incomplete type dsocks.c:97: error: dereferencing pointer to incomplete type dsocks.c:98: error: dereferencing pointer to incomplete type dsocks.c:111: error: dereferencing pointer to incomplete type dsocks.c:113: error: dereferencing pointer to incomplete type dsocks.c: In function `_dsocks5_connect': dsocks.c:146: error: storage size of `auth' isn't known dsocks.c:147: error: storage size of `msg' isn't known dsocks.c:146: warning: unused variable `auth' dsocks.c:147: warning: unused variable `msg' dsocks.c: In function `_send_recv_timeout': dsocks.c:202: error: variable `tv' has initializer but incomplete type dsocks.c:202: warning: excess elements in struct initializer dsocks.c:202: warning: (near initialization for `tv') dsocks.c:202: warning: excess elements in struct initializer dsocks.c:202: warning: (near initialization for `tv') dsocks.c:202: error: storage size of `tv' isn't known dsocks.c:202: warning: unused variable `tv' *** Error code 1
I had this problem with snort 2.7 on 10.3.9 and found that uint8_t, uint16_t, and uint32_t were not defined. However, u_int8_t, u_int16_t, and u_int32_t were defined. So I made a patch file for snort that changed the instances of uint8/16/32_t to u_int8/16/32_t. Hope this helps, John On 13 Aug 2007, at 9:51, markd@macports.org wrote:
Boey Maun Suang <boeyms@macports.org> writes:
---> Building dsocks with target all Warning: Object directory not changed from original /opt/local/var/ macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ d socks/work/dsocks-1.6 cc -g -Wall -O2 -nostdlib -flat_namespace -fno-common -undefined suppress -c dsocks.c -o dsocks.o In file included from dsocks.c:35: dsocks.h:13: error: parse error before "uint8_t"
</snip>
Hmm, I'm the maintainer, but I'm afraid I don't currently have a Panther installation to test this build on to see what the problem is. If anybody else out there with a Panther installation could see if they can reproduce the problem, I'd appreciate it greatly.
Here is what I get on 10.3:
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ds ocks/work/dsocks-1.6" && bsdmake all' Warning: Object directory not changed from original /opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_net_ds ocks/work/dsocks-1.6 cc -g -Wall -O2 -nostdlib -flat_namespace -fno-common -undefined suppress -c dsocks.c -o dsocks.o In file included from dsocks.c:35: dsocks.h:13: error: parse error before "uint8_t" <snip> dsocks.c:56: error: `uint32_t' undeclared (first use in this function) dsocks.c:57: error: `uint16_t' undeclared (first use in this function
Hi everyone, Thanks to everyone who submitted their output from attempting to install dsocks on 10.3; it's great to know that there are people willing to test things out! Thanks also to John for his solution to the same problem with snort. On searching after John's post, however, I found what might be a slightly cleaner solution, namely inserting "#include <stdint.h>" [1]. I'd just like to check, however, that this genuinely isn't being included by default on 10.3, so I'd appreciate it greatly if someone could do the following for me: 1. Unpack the dsocks source tarball into a temporary directory (it should be in ${prefix}/var/macports/distfiles/dsocks/ if you installed it through MacPorts); 2. On the command line, change into the source directory from the unpacked tarball (${blah}/dsocks-1.6); 3. Execute the following command: "gcc -M dsocks.c"; this will generate a list of file paths; and 4. Report back whether any file paths appear that end in "stdint.h" (e.g. /usr/include/stdint.h, /usr/lib/gcc/powerpc-apple- darwin8/3.3/include/stdint.h would both be fine). Alternatively, just copy the entire output and paste it into your reply. Thanks once again for everyone's help. Kind regards, Maun Suang [1] http://www.snort.org/archive-4-3577.html -- Boey Maun Suang (Boey is my surname) Email: boeyms at macports dot org
participants (4)
-
Boey Maun Suang
-
John Wilder
-
jul.mac@free.fr
-
markd@macports.org