build tunnelblick with xcode4 - failes compiling openvpn / tuntap

209 views
Skip to first unread message

Hansotronic

unread,
May 6, 2011, 11:30:24 AM5/6/11
to tunnelblick-discuss
Hey guys,

first i have to say that i'm very new to xcode and perhaps i'm only
stupid, but i tryed the last 2 days to build tunnelblick from source
and it always fails.

Here is is what i did:

System: SL 10.6.6, XCode 4.0.2 (tried it on both my Macbook Air and my
Hackintosh)

Checked out different revisions: (for example r1467 : 3.2beta10 build
2466)
svn checkout http://tunnelblick.googlecode.com/svn/trunk/ -r 1467
tunnelblick-read-only

Changed nothing, just Cleaned the Project und tried to build it. At
the end of the building process I always run into the same issues:

error: /Volumes/Data/_tunnelblick/tunnelblick-read-only1467_beta10/
tunnelblick/../third_party/openvpn/openvpn: No such file or directory

error: /Volumes/Data/_tunnelblick/tunnelblick-read-only1467_beta10/
tunnelblick/../third_party/tuntap/tun.kext: No such file or directory

error: /Volumes/Data/_tunnelblick/tunnelblick-read-only1467_beta10/
tunnelblick/../third_party/openvpn/plugin/down-root/openvpn-down-
root.so: No such file or directory

error: /Volumes/Data/_tunnelblick/tunnelblick-read-only1467_beta10/
tunnelblick/../third_party/tuntap/tap.kext: No such file or directory

As far as I understand it these 4 components cant be compiled and as a
consequence the aren't found and the build fails.

Using "./configure --disable-lzo; make" i can compile openvpn but the
other ones remain..

Thats my situation. Over the Time i got some more errors, but i think
this is my core-problem. Is it true that I need an 64-Bit Kernel to
build Tunnelblick and could that be the Problem?! I'm sure I didn't
provide enough information, but I'm only a noob having problems
compiling ;)

So please help me^^

jkbull...gmail.com

unread,
May 6, 2011, 11:50:55 AM5/6/11
to tunnelbli...@googlegroups.com
I assume you followed the instructions at Building from Source.

I compile Tunnelblick using Xcode 3.2.5 (64-bit) on an early 2011 MacBook Pro. I haven't tried it on Xcode 4 yet. I would assume that Xcode 4 may be your problem, because until I got this MacBook a couple of months ago, I was building on a several-year-old Intel Mac Mini (32-bit) using Xcode 3.2.something.

Two points:
  • As a "shortcut", since the third-party compiles take so long, the Xcode build script uses /third_party/built as a flag that the third_party binaries have been built. So to really do a complete "clean", you should delete this file, then "Clean all targets", then build.
  • There should have been error messages earlier in the build log explaining why the components can't be compiled.


Hansotronic

unread,
May 6, 2011, 6:55:27 PM5/6/11
to tunnelblick-discuss
Thank you for these tips. So i assume that i don't need a mac with
64bit kernel to compile tunnelblick. I also tried Xcode 3.2.6 but I
got the same results. I will be testing with both versions. Deleting
the built-file helped and the tun.kext/tap.kext have been compiled.
juhu!

So only 2 remaining:

- As I said I am able to compile the openvpn from terminal using "./
configure --disable-lzo; make". But Im not sure if that is fine..

otherwise I get:

PBXCp build/Release/Tunnelblick.app/Contents/Resources/openvpn ../
third_party/openvpn/openvpn
cd "/Users/Hannes/Desktop/xcode tests/tunnelblick1467/tunnelblick"
/Developer3/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -
strip-debug-symbols -resolve-src-symlinks "/Users/Hannes/Desktop/xcode
tests/tunnelblick1467/tunnelblick/../third_party/openvpn/openvpn" "/
Users/Hannes/Desktop/xcode tests/tunnelblick1467/tunnelblick/build/
Release/Tunnelblick.app/Contents/Resources"

pbxcp: openvpn: No such file or directory


- for openvpn-down-root.so the log says the following:

PBXCp build/Release/Tunnelblick.app/Contents/Resources/openvpn-down-
root.so ../third_party/openvpn/plugin/down-root/openvpn-down-root.so
cd "/Users/Hannes/Desktop/xcode tests/tunnelblick1467/tunnelblick"
/Developer3/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -
strip-debug-symbols -resolve-src-symlinks "/Users/Hannes/Desktop/xcode
tests/tunnelblick1467/tunnelblick/../third_party/openvpn/plugin/down-
root/openvpn-down-root.so" "/Users/Hannes/Desktop/xcode tests/
tunnelblick1467/tunnelblick/build/Release/Tunnelblick.app/Contents/
Resources"

pbxcp: openvpn-down-root.so: No such file or directory

this is the only error i get? Can I find more detailed information
anywhere?

jkbull...gmail.com

unread,
May 6, 2011, 8:55:59 PM5/6/11
to tunnelbli...@googlegroups.com
I don't know of any info other than the Building from Source article.

Mohammad A. Haque

unread,
May 6, 2011, 2:30:28 PM5/6/11
to tunnelbli...@googlegroups.com
This is believe is due to the fact that the 10.4u SDK is no longer part of XCode beginning with XCode 4.
-- 
You received this message because you are subscribed to the Google Groups "tunnelblick-discuss" group.
To post to this group, send email to tunnelbli...@googlegroups.com.
To unsubscribe from this group, send email to tunnelblick-dis...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tunnelblick-discuss?hl=en.


Hansotronic

unread,
May 7, 2011, 3:30:37 AM5/7/11
to tunnelblick-discuss
Thank you guys for the replies.

But I also tried on XCode 3.2.6 with the 10.4 SDK installed and got
the same results, so I don't think that the XCode version is my
problem here.

So you guys all don't have any problems compiling ? And if so:
- which revision do you compile
- on which mac model

As I said, I also get the same results on both of my machines.

Hansotronic

unread,
May 7, 2011, 3:59:35 AM5/7/11
to tunnelblick-discuss
Just realized something and Mohammad is right. In the wiki it says:

In that window click on the drop-down button at the top left that says
something like "10.4 | Debug | Tunnelblick | i386", and under the
"Active configuration" heading, click on "Release". The button should
now read "10.4 | Release | Tunnelblick | i386". If it doesn't show
"10.4", specify that in the same way as you specified "Release".

My window looks like this:
http://dl.dropbox.com/u/2707037/Bildschirmfoto%202011-05-07%20um%2009.49.05.png

But as you see I can't select 10.4.. And although i386 is selected it
doesn't show up in the Button.

jkbull...gmail.com

unread,
May 7, 2011, 8:06:15 AM5/7/11
to tunnelbli...@googlegroups.com
BatmanPPC is correct that the 10.4 SDK is required. (He's the Xcode guru that has helped several times with build problems in the past -- thanks again, BatmanPPC!)

My drop-down has an additional entry "ppc", under i386:

So my version of Xcode is set up to be able to build a PPC version -- and, in fact, Tunnelblick should build "Universal" (Intel and PPC) versions. PowerPC ("PPC") is the processor that Macs used prior to switching to Intel (which is the "i386").

Is the screenshot you posted from Xcode 3.2.6? I would not be surprised if Xcode 4 doesn't support PPC because according to rumors, the next version of OS X, 10.7 "Lion" won't run on PPC Macs, and I assume Xcode 4 is primarily for Lion. Xcode 4 also uses a different compiler than Xcode 3 -- it doesn't use GCC -- so that could be one cause of problems.

So don't bother with Xcode 4.

In the scores of times that I have downloaded the source, a couple of times I ended up with a corrupted version that won't compile without errors. So now while I download the source, I don't do anything else on that computer (it just takes a minute or so, so it isn't a huge hardship). It may be cargo-cult thinking, but that seems to make the downloads "work". I don't think it has happened on my new MacBook Pro, so maybe there was a problem with my old Mac Mini (although I never saw evidence of any other problem with it).

On my early 2011 MacBook Pro, the "About Xcode" window shows:

The "More info" button says:

Developer Information:


  Version: 3.2 (10M2423)

  Location: /Developer

  Applications:

  Xcode: 3.2.5 (1760)

  Interface Builder: 3.2.5 (823)

  Instruments: 2.7 (3017)

  Dashcode: 3.0.2 (333)

  SDKs:

  Mac OS X:

  10.4: (8S2167)

  10.5: (9L31a)

  10.6: (10M2423)

  iPhone OS:

  4.2: (8C134)

  iPhone Simulator:

  3.2: (7W367a)

  4.0: (8A400)

  4.1: (8B117)

  4.2: (8C134)


I have just downloaded the latest version of Tunnelblick (r1482) to a "trunk" folder on my Desktop, and:
  1. Double-clicked .../Desktop/trunk/tunnelblick/tunnelblick.xcodeproj to start Xcode;
  2. Selected "Release" in the drop-down box at the top left of the Xcode window;
  3. Selected "Build | Clean All Targets" from the menu;
  4. Checked both boxes and clicked "Clean";
  5. Waited until the "clean" was done (a couple of seconds);
  6. Clicked "Build | Build Results";
  7. Clicked "Build";
  8. Waited until the build was done (ten minutes or so; it used to take about 20 minutes on my Mac Mini Core Duo)
And the "Build Results" window shows "Build succeeded / No Issues" with a big green checkmark:






Hansotronic

unread,
May 7, 2011, 10:40:05 AM5/7/11
to tunnelblick-discuss
Thank you very much for your engagement!

The screenshot i postet was from my xcode 3.2.6 and I only use x3 for
building from now.

Developer Information:

Version: 3.2 (10M2518)
Location: /Developer
Applications:
Xcode: 3.2.6 (1761)
Interface Builder: 3.2.6 (851)
Instruments: 2.7 (3017)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.4: (8S2167)
10.5: (9L31a)
10.6: (10M2518)
iPhone OS:
4.3: (8F191m)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
4.3: (8F192)


If I do the same and checkout revision r1482 and do all that you
described I get the following errors:

Build atsystemstart of project Tunnelblick with configuration Release

Ld build/Release/atsystemstart normal i386
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/SDKs/
MacOSX10.6.sdk "-L/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/
tunnelblick/build/Release" "-F/Users/Hannes/Desktop/xcode tests/
tunnelblickLatest/tunnelblick/build/Release" -filelist "/Users/Hannes/
Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/
Tunnelblick.build/Release/atsystemstart.build/Objects-normal/i386/
atsystemstart.LinkFileList" -mmacosx-version-min=10.4 -sectcreate
__TEXT __info_plist /Users/Hannes/Desktop/xcode tests/
tunnelblickLatest/tunnelblick/Info.plist -framework Foundation -
framework AppKit -framework Security -framework Foundation -o "/Users/
Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/Release/
atsystemstart"

i686-apple-darwin10-gcc-4.2.1: tests/tunnelblickLatest/tunnelblick/
Info.plist: No such file or directory
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1


Build openvpnstart of project Tunnelblick with configuration Release

Ld build/Release/openvpnstart normal i386
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/SDKs/
MacOSX10.6.sdk "-L/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/
tunnelblick/build/Release" "-F/Users/Hannes/Desktop/xcode tests/
tunnelblickLatest/tunnelblick/build/Release" -filelist "/Users/Hannes/
Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/
Tunnelblick.build/Release/openvpnstart.build/Objects-normal/i386/
openvpnstart.LinkFileList" -mmacosx-version-min=10.4 -sectcreate
__TEXT __info_plist /Users/Hannes/Desktop/xcode tests/
tunnelblickLatest/tunnelblick/Info.plist -framework Foundation -o "/
Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/
Release/openvpnstart"

i686-apple-darwin10-gcc-4.2.1: tests/tunnelblickLatest/tunnelblick/
Info.plist: No such file or directory
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1


Build installer of project Tunnelblick with configuration Release

Ld build/Release/installer normal i386
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/SDKs/
MacOSX10.6.sdk "-L/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/
tunnelblick/build/Release" "-F/Users/Hannes/Desktop/xcode tests/
tunnelblickLatest/tunnelblick/build/Release" -filelist "/Users/Hannes/
Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/
Tunnelblick.build/Release/installer.build/Objects-normal/i386/
installer.LinkFileList" -mmacosx-version-min=10.4 -sectcreate __TEXT
__info_plist /Users/Hannes/Desktop/xcode tests/tunnelblickLatest/
tunnelblick/Info.plist -framework Security -framework Foundation -
framework AppKit -o "/Users/Hannes/Desktop/xcode tests/
tunnelblickLatest/tunnelblick/build/Release/installer"

i686-apple-darwin10-gcc-4.2.1: tests/tunnelblickLatest/tunnelblick/
Info.plist: No such file or directory
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1


Build standardize-scutil-output of project Tunnelblick with
configuration Release

Ld build/Release/standardize-scutil-output normal i386
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/SDKs/
MacOSX10.6.sdk "-L/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/
tunnelblick/build/Release" "-F/Users/Hannes/Desktop/xcode tests/
tunnelblickLatest/tunnelblick/build/Release" -filelist "/Users/Hannes/
Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/
Tunnelblick.build/Release/standardize-scutil-output.build/Objects-
normal/i386/standardize-scutil-output.LinkFileList" -mmacosx-version-
min=10.4 -sectcreate __TEXT __info_plist /Users/Hannes/Desktop/xcode
tests/tunnelblickLatest/tunnelblick/Info.plist -framework Foundation -
framework AppKit -framework Foundation -o "/Users/Hannes/Desktop/xcode
tests/tunnelblickLatest/tunnelblick/build/Release/standardize-scutil-
output"

i686-apple-darwin10-gcc-4.2.1: tests/tunnelblickLatest/tunnelblick/
Info.plist: No such file or directory
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1


Build Tunnelblick of project Tunnelblick with configuration Release

PBXCp build/Release/Tunnelblick.app/Contents/Resources/atsystemstart
build/Release/atsystemstart
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -
strip-debug-symbols -resolve-src-symlinks "/Users/Hannes/Desktop/xcode
tests/tunnelblickLatest/tunnelblick/build/Release/atsystemstart" "/
Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/
Release/Tunnelblick.app/Contents/Resources"

pbxcp: atsystemstart: No such file or directory

PBXCp build/Release/Tunnelblick.app/Contents/Resources/openvpn ../
third_party/openvpn/openvpn
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -
strip-debug-symbols -resolve-src-symlinks "/Users/Hannes/Desktop/xcode
tests/tunnelblickLatest/tunnelblick/../third_party/openvpn/openvpn" "/
Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/
Release/Tunnelblick.app/Contents/Resources"

pbxcp: openvpn: No such file or directory

PBXCp build/Release/Tunnelblick.app/Contents/Resources/openvpnstart
build/Release/openvpnstart
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -
strip-debug-symbols -resolve-src-symlinks "/Users/Hannes/Desktop/xcode
tests/tunnelblickLatest/tunnelblick/build/Release/openvpnstart" "/
Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/
Release/Tunnelblick.app/Contents/Resources"

pbxcp: openvpnstart: No such file or directory

PBXCp build/Release/Tunnelblick.app/Contents/Resources/installer build/
Release/installer
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -
strip-debug-symbols -resolve-src-symlinks "/Users/Hannes/Desktop/xcode
tests/tunnelblickLatest/tunnelblick/build/Release/installer" "/Users/
Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick/build/Release/
Tunnelblick.app/Contents/Resources"

pbxcp: installer: No such file or directory

PBXCp build/Release/Tunnelblick.app/Contents/Resources/standardize-
scutil-output build/Release/standardize-scutil-output
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -
strip-debug-symbols -resolve-src-symlinks "/Users/Hannes/Desktop/xcode
tests/tunnelblickLatest/tunnelblick/build/Release/standardize-scutil-
output" "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/
tunnelblick/build/Release/Tunnelblick.app/Contents/Resources"

pbxcp: standardize-scutil-output: No such file or directory

PBXCp build/Release/Tunnelblick.app/Contents/Resources/openvpn-down-
root.so ../third_party/openvpn/plugin/down-root/openvpn-down-root.so
cd "/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/tunnelblick"
/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/
pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -
strip-debug-symbols -resolve-src-symlinks "/Users/Hannes/Desktop/xcode
tests/tunnelblickLatest/tunnelblick/../third_party/openvpn/plugin/down-
root/openvpn-down-root.so" "/Users/Hannes/Desktop/xcode tests/
tunnelblickLatest/tunnelblick/build/Release/Tunnelblick.app/Contents/
Resources"

pbxcp: openvpn-down-root.so: No such file or directory


It takes under a minute before the build finally fails. I'm now
downloading Xcode 3.2.5 to see if it helps.

jkbull...gmail.com

unread,
May 7, 2011, 12:05:33 PM5/7/11
to tunnelbli...@googlegroups.com
I will try a fresh Snow Leopard and Xcode 3.2.6 install on an external drive and see what happens.

In the meantime:

Concerning 10.4: At one point (since the wiki was last updated) a few months ago I changed the project to use the 10.6 SDK, while keeping a 10.4 target. This allowed me to segregate code that might be dropped in Lion (NSFileManager deprecated methods) and use whichever methods are available at run time. (So 10.4 systems would use 10.4 methods, but 10.6+ systems would use 10.6 methods). I don't know if that changes anything substantial, but that's probably why you don't see the 10.4 in the button. As far as I know, it did not change anything about the way the third_party items are built because they are built using make.

To get you going (assuming you want to modify Tunnelblick, not the third-party code, you might be able to copy the binaries of atsystemstart, installer, openvpnstart, and standardize-scutil-output from a downloaded Tunnelblick.app into the place that they are expected to be by the Xcode scripts, create the "built" file by touching it, and fake the Xcode run script into thinking that they compiled and were built properly. I have to leave now, but later today I will post the locations where the binaries should be.

Hansotronic

unread,
May 7, 2011, 12:30:40 PM5/7/11
to tunnelblick-discuss
That could work for me and I will try that. This is the Output when I
try to make openvpn from the terminal:


Last login: Sat May 7 18:25:48 on ttys001
cd '/Users/Hannes/Desktop/xcode tests/tunnelblickLatest/third_party/
openvpn/'
hannes:~ Hannes$ cd '/Users/Hannes/Desktop/xcode tests/
tunnelblickLatest/third_party/openvpn/'
hannes:openvpn Hannes$ make openvpn
cc openvpn.c -o openvpn
In file included from openvpn.c:25:
syshead.h:32:20: error: config.h: No such file or directory
In file included from openvpn.h:28,
from init.h:28,
from openvpn.c:27:
buffer.h:52: error: expected specifier-qualifier-list before ‘uint8_t’
buffer.h: In function ‘buf_defined’:
buffer.h:139: error: ‘const struct buffer’ has no member named ‘data’
buffer.h: In function ‘buf_valid’:
buffer.h:145: error: ‘const struct buffer’ has no member named ‘data’
buffer.h: At top level:
buffer.h:148: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
buffer.h:166: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
buffer.h:172: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
buffer.h: In function ‘buf_str’:
buffer.h:196: warning: cast to pointer from integer of different size
buffer.h: In function ‘buf_reset’:
buffer.h:205: error: ‘struct buffer’ has no member named ‘data’
buffer.h: In function ‘buf_init_dowork’:
buffer.h:218: error: ‘struct buffer’ has no member named ‘data’
buffer.h: At top level:
buffer.h:226: error: expected declaration specifiers or ‘...’ before
‘uint8_t’
buffer.h: In function ‘buf_set_write’:
buffer.h:233: error: ‘struct buffer’ has no member named ‘data’
buffer.h:233: error: ‘data’ undeclared (first use in this function)
buffer.h:233: error: (Each undeclared identifier is reported only once
buffer.h:233: error: for each function it appears in.)
buffer.h: At top level:
buffer.h:239: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
buffer.h: In function ‘strncpynt’:
buffer.h:252: warning: incompatible implicit declaration of built-in
function ‘strncpy’
buffer.h: At top level:
buffer.h:294: error: expected declaration specifiers or ‘...’ before
‘uint8_t’
buffer.h:330: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
buffer.h:335: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
buffer.h:419: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
buffer.h:444: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
buffer.h:455: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
buffer.h:461: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
buffer.h: In function ‘buf_write’:
buffer.h:476: error: ‘uint8_t’ undeclared (first use in this function)
buffer.h:476: error: ‘cp’ undeclared (first use in this function)
buffer.h:479: warning: incompatible implicit declaration of built-in
function ‘memcpy’
buffer.h: In function ‘buf_write_prepend’:
buffer.h:486: error: ‘uint8_t’ undeclared (first use in this function)
buffer.h:486: error: ‘cp’ undeclared (first use in this function)
buffer.h:489: warning: incompatible implicit declaration of built-in
function ‘memcpy’
buffer.h: In function ‘buf_write_u8’:
buffer.h:496: error: ‘uint8_t’ undeclared (first use in this function)
buffer.h:496: error: expected ‘;’ before ‘u8’
buffer.h:497: error: ‘u8’ undeclared (first use in this function)
buffer.h: In function ‘buf_write_u16’:
buffer.h:503: error: ‘uint16_t’ undeclared (first use in this
function)
buffer.h:503: error: expected ‘;’ before ‘u16’
buffer.h:504: error: ‘u16’ undeclared (first use in this function)
buffer.h: In function ‘buf_write_u32’:
buffer.h:510: error: ‘uint32_t’ undeclared (first use in this
function)
buffer.h:510: error: expected ‘;’ before ‘u32’
buffer.h:511: error: ‘u32’ undeclared (first use in this function)
buffer.h: In function ‘buf_copy’:
buffer.h:517: warning: passing argument 2 of ‘buf_write’ makes pointer
from integer without a cast
buffer.h: In function ‘buf_copy_n’:
buffer.h:523: error: ‘uint8_t’ undeclared (first use in this function)
buffer.h:523: error: ‘cp’ undeclared (first use in this function)
buffer.h: In function ‘buf_copy_range’:
buffer.h:542: warning: incompatible implicit declaration of built-in
function ‘memcpy’
buffer.h:542: error: ‘struct buffer’ has no member named ‘data’
buffer.h:542: error: ‘const struct buffer’ has no member named ‘data’
buffer.h: In function ‘buf_read’:
buffer.h:573: error: ‘uint8_t’ undeclared (first use in this function)
buffer.h:573: error: ‘cp’ undeclared (first use in this function)
buffer.h:576: warning: incompatible implicit declaration of built-in
function ‘memcpy’
buffer.h: In function ‘buf_read_u8’:
buffer.h:586: error: invalid type argument of ‘unary *’
buffer.h: In function ‘buf_read_u16’:
buffer.h:594: error: ‘uint16_t’ undeclared (first use in this
function)
buffer.h:594: error: expected ‘;’ before ‘ret’
buffer.h:595: error: ‘ret’ undeclared (first use in this function)
buffer.h: At top level:
buffer.h:601: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘buf_read_u32’
buffer.h:642: error: expected ‘)’ before ‘*’ token
buffer.h:853: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
In file included from tun.h:34,
from route.h:32,
from options.h:36,
from openvpn.h:29,
from init.h:28,
from openvpn.c:27:
error.h:168:5: warning: #warning this compiler appears to lack vararg
macros which will cause a significant degradation in efficiency (you
can ignore this warning if you are using LCLINT)
In file included from tun.h:34,
from route.h:32,
from options.h:36,
from openvpn.h:29,
from init.h:28,
from openvpn.c:27:
error.h:205: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
error.h: In function ‘ignore_sys_error’:
error.h:331: error: ‘EAGAIN’ undeclared (first use in this function)
In file included from interval.h:34,
from status.h:28,
from sig.h:28,
from event.h:29,
from tun.h:37,
from route.h:32,
from options.h:36,
from openvpn.h:29,
from init.h:28,
from openvpn.c:27:
otime.h: At top level:
otime.h:53: warning: ‘struct timeval’ declared inside parameter list
otime.h:53: warning: its scope is only this definition or declaration,
which is probably not what you want
otime.h:54: warning: ‘struct timeval’ declared inside parameter list
otime.h:133: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_clear’:
otime.h:135: error: dereferencing pointer to incomplete type
otime.h:136: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:140: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_defined’:
otime.h:142: error: dereferencing pointer to incomplete type
otime.h:142: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:147: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_subtract’:
otime.h:150: error: dereferencing pointer to incomplete type
otime.h:150: error: dereferencing pointer to incomplete type
otime.h:156: error: dereferencing pointer to incomplete type
otime.h:156: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:160: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_add’:
otime.h:162: error: dereferencing pointer to incomplete type
otime.h:162: error: dereferencing pointer to incomplete type
otime.h:163: error: dereferencing pointer to incomplete type
otime.h:163: error: dereferencing pointer to incomplete type
otime.h:164: error: dereferencing pointer to incomplete type
otime.h:164: error: dereferencing pointer to incomplete type
otime.h:165: error: dereferencing pointer to incomplete type
otime.h:166: error: dereferencing pointer to incomplete type
otime.h:168: error: dereferencing pointer to incomplete type
otime.h:169: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:174: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_lt’:
otime.h:176: error: dereferencing pointer to incomplete type
otime.h:176: error: dereferencing pointer to incomplete type
otime.h:178: error: dereferencing pointer to incomplete type
otime.h:178: error: dereferencing pointer to incomplete type
otime.h:181: error: dereferencing pointer to incomplete type
otime.h:181: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:185: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_le’:
otime.h:187: error: dereferencing pointer to incomplete type
otime.h:187: error: dereferencing pointer to incomplete type
otime.h:189: error: dereferencing pointer to incomplete type
otime.h:189: error: dereferencing pointer to incomplete type
otime.h:192: error: dereferencing pointer to incomplete type
otime.h:192: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:196: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_ge’:
otime.h:198: error: dereferencing pointer to incomplete type
otime.h:198: error: dereferencing pointer to incomplete type
otime.h:200: error: dereferencing pointer to incomplete type
otime.h:200: error: dereferencing pointer to incomplete type
otime.h:203: error: dereferencing pointer to incomplete type
otime.h:203: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:207: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_gt’:
otime.h:209: error: dereferencing pointer to incomplete type
otime.h:209: error: dereferencing pointer to incomplete type
otime.h:211: error: dereferencing pointer to incomplete type
otime.h:211: error: dereferencing pointer to incomplete type
otime.h:214: error: dereferencing pointer to incomplete type
otime.h:214: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:218: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_eq’:
otime.h:220: error: dereferencing pointer to incomplete type
otime.h:220: error: dereferencing pointer to incomplete type
otime.h:220: error: dereferencing pointer to incomplete type
otime.h:220: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:224: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_delta’:
otime.h:226: error: dereferencing pointer to incomplete type
otime.h:226: error: dereferencing pointer to incomplete type
otime.h:227: error: dereferencing pointer to incomplete type
otime.h:227: error: dereferencing pointer to incomplete type
otime.h:238: error: dereferencing pointer to incomplete type
otime.h:239: error: dereferencing pointer to incomplete type
otime.h: At top level:
otime.h:249: warning: ‘struct timeval’ declared inside parameter list
otime.h: In function ‘tv_within_sigma’:
otime.h:251: warning: passing argument 1 of ‘tv_subtract’ from
incompatible pointer type
otime.h:251: warning: passing argument 2 of ‘tv_subtract’ from
incompatible pointer type
In file included from status.h:28,
from sig.h:28,
from event.h:29,
from tun.h:37,
from route.h:32,
from options.h:36,
from openvpn.h:29,
from init.h:28,
from openvpn.c:27:
interval.h: At top level:
interval.h:203: warning: ‘struct timeval’ declared inside parameter
list
interval.h:214: error: field ‘start’ has incomplete type
interval.h:215: error: field ‘end’ has incomplete type
In file included from tun.h:38,
from route.h:32,
from options.h:36,
from openvpn.h:29,
from init.h:28,
from openvpn.c:27:
proto.h:58: error: expected specifier-qualifier-list before ‘uint8_t’
proto.h:69: error: expected specifier-qualifier-list before ‘uint16_t’
proto.h:88: error: expected specifier-qualifier-list before ‘uint8_t’
proto.h:114: error: expected specifier-qualifier-list before
‘uint16_t’
proto.h:124: error: expected specifier-qualifier-list before
‘uint16_t’
In file included from tun.h:39,
from route.h:32,
from options.h:36,
from openvpn.h:29,
from init.h:28,
from openvpn.c:27:
misc.h:107: error: expected specifier-qualifier-list before ‘FILE’
misc.h:384: error: expected declaration specifiers or ‘...’ before
‘va_list’
In file included from route.h:32,
from options.h:36,
from openvpn.h:29,
from init.h:28,
from openvpn.c:27:
tun.h:145: error: expected specifier-qualifier-list before ‘in_addr_t’
tun.h: In function ‘tuntap_defined’:
tun.h:189: error: ‘const struct tuntap’ has no member named ‘fd’
tun.h: At top level:
tun.h:204: error: expected declaration specifiers or ‘...’ before
‘uint8_t’
tun.h:206: error: expected declaration specifiers or ‘...’ before
‘uint8_t’
tun.h:222: error: expected declaration specifiers or ‘...’ before
‘in_addr_t’
tun.h:223: error: expected declaration specifiers or ‘...’ before
‘in_addr_t’
tun.h:244: error: expected ‘;’, ‘,’ or ‘)’ before ‘ip’
tun.h: In function ‘tun_event_handle’:
tun.h:428: error: ‘const struct tuntap’ has no member named ‘fd’
tun.h: In function ‘tun_set’:
tun.h:452: error: ‘struct tuntap’ has no member named ‘rwflags_debug’
In file included from options.h:36,
from openvpn.h:29,
from init.h:28,
from openvpn.c:27:
route.h: At top level:
route.h:56: error: expected specifier-qualifier-list before
‘in_addr_t’
route.h:61: error: expected specifier-qualifier-list before
‘in_addr_t’
route.h:92: error: ‘EMPTY_ARRAY_SIZE’ undeclared here (not in a
function)
route.h:98: error: expected specifier-qualifier-list before
‘in_addr_t’
route.h:143: error: expected declaration specifiers or ‘...’ before
‘in_addr_t’
route.h:148: error: expected ‘;’, ‘,’ or ‘)’ before ‘addr’
route.h:164: error: expected ‘)’ before ‘*’ token
route.h:175: error: expected ‘;’, ‘,’ or ‘)’ before ‘addr’
route.h:199: error: expected ‘;’, ‘,’ or ‘)’ before ‘network’
route.h:202: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘netbits_to_netmask’
route.h: In function ‘route_list_default_gateway_needed’:
route.h:217: error: ‘const struct route_special_addr’ has no member
named ‘remote_endpoint_defined’
In file included from options.h:38,
from openvpn.h:29,
from init.h:28,
from openvpn.c:27:
socket.h: At top level:
socket.h:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘packet_size_type’
socket.h:73: error: field ‘sa’ has incomplete type
socket.h:353: error: expected ‘)’ before ‘addr’
socket.h:364: error: expected declaration specifiers or ‘...’ before
‘in_addr_t’
socket.h:374: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘link_socket_current_remote’
socket.h:401: warning: ‘struct in_addr’ declared inside parameter list
socket.h:444: error: expected specifier-qualifier-list before
‘in_addr_t’
socket.h:458: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘getaddr’
socket.h:464: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘getaddr_multi’
socket.h:552: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘addr_host’
socket.h: In function ‘socket_connection_reset’:
socket.h:612: error: ‘errno’ undeclared (first use in this function)
socket.h:616: error: ‘ECONNRESET’ undeclared (first use in this
function)
socket.h: In function ‘link_socket_verify_incoming_addr’:
socket.h:630: error: ‘AF_INET’ undeclared (first use in this function)
socket.h: In function ‘link_socket_write_udp_posix’:
socket.h:818: error: ‘socklen_t’ undeclared (first use in this
function)
socket.h:818: error: expected ‘)’ before ‘sizeof’
In file included from init.h:28,
from openvpn.c:27:
openvpn.h: At top level:
openvpn.h:383: error: field ‘timeval’ has incomplete type
openvpn.h:391: error: field ‘timeout_random_component’ has incomplete
type
In file included from forward.h:29,
from openvpn.c:28:
occ.h:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘occ_magic’
occ.h: In function ‘is_occ_msg’:
occ.h:89: error: ‘occ_magic’ undeclared (first use in this function)
In file included from forward.h:30,
from openvpn.c:28:
ping.h: At top level:
ping.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘ping_string’
ping.h: In function ‘is_ping_msg’:
ping.h:44: error: ‘ping_string’ undeclared (first use in this
function)
openvpn.c: In function ‘main’:
openvpn.c:103: warning: incompatible implicit declaration of built-in
function ‘memset’
openvpn.c:228: error: ‘SIGUSR1’ undeclared (first use in this
function)
openvpn.c:233: error: ‘SIGHUP’ undeclared (first use in this function)
make: *** [openvpn] Error 1
hannes:openvpn Hannes$

Hansotronic

unread,
May 8, 2011, 5:16:45 AM5/8/11
to tunnelblick-discuss
I also tried XCode 3.2.5 now. My dropdown has ppc architecture there
too. But I'm getting the same errors I got in XCode 3.2.6

Jonathan K. Bullard

unread,
May 8, 2011, 7:22:09 AM5/8/11
to tunnelbli...@googlegroups.com
I created a fresh installation and Tunnelblick built with no problems. Perhaps your original XCode 4 installation left something around which is interfering with the build. Here is a detailed list of what I did (on a spare partition of an external hard drive):
  • I created a fresh install of OS X 10.6.6 (from the CD that came with the computer), including Rosetta
  • I applied Software Updates until there were no more updates to install
  • l downloaded Xcode 3.2.6 and installed it including the 10.4 SDK but excluding the iOS SDK.
  • I downloaded a copy of the source (r1482) to a folder on the Desktop, using the following Terminal commands:
cd /Users/MYUSERNAME/Desktop
  • I started Xcode by double-clicking /Development/Applications/Xcode*
  • I double-clicked /Users/USERNAME/Desktop/trunk/tunnelblick/tunnelblick.xcodeproj
  • I selected "Release" in the drop-down button in the top left of the project window
  • I clicked "Build", "Clean All Targets" on the menu, put checks in both boxes, and clicked the "Clean" button
  • I clicked "Build", "Build Results" on the menu
  • I clicked the "Build" button
The result, after about five minutes, was a successful build with no errors or warnings

* For some reason, tunnelblick.xcodeproj was a folder and didn't have the Xcode icon when I opened a window on it with Finder. I figured OS X hadn't finished dealing with the fact that I had just installed it, and that if I launched Xcode, that OS X would catch on. I launched Xcode, and then the icon in the Finder window changed to the Xcode icon. Double-clicking that icon opened Xcode with the project.
On Sun, May 8, 2011 at 5:16 AM, Hansotronic <service...@googlemail.com> wrote:
I also tried XCode 3.2.5 now. My dropdown has ppc architecture there
too. But I'm getting the same errors I got in XCode 3.2.6

Hansotronic

unread,
May 8, 2011, 9:26:29 AM5/8/11
to tunnelblick-discuss
Thank you for your effort. I will try the same and report.

Hansotronic

unread,
May 9, 2011, 5:58:16 PM5/9/11
to tunnelblick-discuss
Problem SOLVED!

I also did a fresh install and was able to get a successful build. So
everyone who has problems with building I would advise to do a fresh
install of SL and XCode because XCode4 definitely messed something up
on my system and uninstalling didn't help.

Another interesting fact is that I got the same errors, when having my
old system-partition mounted. I had to unmount my old system-partition
for the build to succeed.

So thank you very much guys for helping me to track this down!!
Reply all
Reply to author
Forward
0 new messages