Codeman655 / osxwinebuilder

Automatically exported from code.google.com/p/osxwinebuilder
GNU Lesser General Public License v2.1
0 stars 0 forks source link

flex version #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Need OSX 10.7 (mine's 10.7.5)
2.osxwinebuider.sh exits with:
checking flex version Apple(flex-31) >= 2.5.31... Use of uninitialized value 
$flex_version_major in numeric gt (>) at - line 3.
Use of uninitialized value $flex_version_major in numeric eq (==) at - line 3.
Use of uninitialized value $flex_version_major in numeric eq (==) at - line 3.
configure: error: no
could not run configure command './configure --prefix=" 
[...]wine/build/gstreamer-0.10.36 - exiting"
3.flex --version gives "flex 2.5.35 Apple(flex-31)"

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
OSX 10.7.5 
XCode 4.5

Please provide any additional information below.
Solved by  https://gist.github.com/3154134

diff --git a/configure b/configure
index 0af896d..20e6576 100755
--- a/configure
+++ b/configure
@@ -21304,7 +21304,7 @@ fi
   fi

         flex_min_version=2.5.31
-  flex_version=`$FLEX_PATH --version | head -n 1 | sed 's/^.* //' | sed 
's/[a-zA-Z]*$//' | cut -d' ' -f1`
+  flex_version=`$FLEX_PATH --version | head -n 1 | awk '{print $2'}`
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flex version $flex_version >= $flex_min_version" >&5
 $as_echo_n "checking flex version $flex_version >= $flex_min_version... " >&6; }
   if perl -w <<EOF

Original issue reported on code.google.com by hyperchi...@gmx.de on 28 Sep 2012 at 1:37

GoogleCodeExporter commented 9 years ago
Hi,

I'm also having this problem.  I see that there is a solution, but I'm not sure 
what to do with it.  Do I paste it into the script?  I tried putting it into 
terminal, but nothing useful happened, it just gave me "command not found."  
Thanks for the help!

-Owen

Original comment by fitzowen8 on 31 Dec 2012 at 1:52

GoogleCodeExporter commented 9 years ago
I think I used patch, try
###CODE###
man patch
###/CODE###
for more informations.
regards

Original comment by hyperchi...@gmx.de on 31 Dec 2012 at 4:00

GoogleCodeExporter commented 9 years ago
Thank you for the quick reply!
I just tried running "patch -p0 
</Users/Owen/gist3154134-b20b5cd33bce20c04ec4e4abe07d6fbfac3bc12b-1/gistfile1.tx
t" (without the quotes), and this is what it gave me:

"can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/configure b/configure
|index 0af896d..20e6576 100755
|--- a/configure
|+++ b/configure
--------------------------
File to patch: /Users/Owen/wine/osxwinebuilder-read-only/osxwinebuild.sh 
patching file /Users/Owen/wine/osxwinebuilder-read-only/osxwinebuild.sh
Hunk #1 FAILED at 21304.
1 out of 1 hunk FAILED -- saving rejects to file 
/Users/Owen/wine/osxwinebuilder-read-only/osxwinebuild.sh.rej"

I will attach the osxwinebuild.sh.rej file.

Thanks again for helping me, and happy New Year's!

Original comment by fitzowen8 on 1 Jan 2013 at 12:26

Attachments:

GoogleCodeExporter commented 9 years ago
i think i had the file downloaded to my working directory
(your's would be) "/Users/Owen/wine/osxwinebuilder-read-only/"
and simply said "patch < gistfile1.txt"

Happy new Year to everyone!

Original comment by hyperchi...@gmx.de on 1 Jan 2013 at 3:06

GoogleCodeExporter commented 9 years ago
OK.  I ran "patch <gistfile1.txt," and it asked me which file to patch.  I used 
the configure file in the gstreamer-0.10.36 directory ( 
"/Users/Owen/wine/build/gstreamer-0.10.36," and it successfully patched. After 
that I tried "./configure --prefix=/Users/Owen/wine/wine-1.5.19 
--enable-shared=yes --enable-static=no".  
It got past the flex part, but about a minute later when it was checking for 
things it said:

"checking for GLIB... no
configure: Requested 'glib-2.0 >= 2.24' but version of GLib is 2.22.4
configure: error: This package requires GLib >= 2.24 to compile."

So I downloaded GLib 2.35.3 (The newest version) and tried to install it.  when 
I ran "./configure," after a little bit it said:
"checking for LIBFFI... no
configure: error: Package requirements (libffi >= 3.0.0) were not met:

No package 'libffi' found.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBFFI_CFLAGS
and LIBFFI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details."

So I downloaded libffi.  It compiled and installed fine, but when I tried glib 
again, it gave me the same message.  If you know of anywhere else I could get 
help with this problem, please let me know.

Original comment by fitzowen8 on 2 Jan 2013 at 1:28

GoogleCodeExporter commented 9 years ago
UPDATE: For glib, I ran "./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" 
and it worked.  Then, when I ran "make," it exited after a few minutes, when it 
got to "making all in tests."  It said:
"Making all in tests
dyld: Symbol not found: _ffi_type_double
  Referenced from: /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
  Expected in: flat namespace
 in /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
dyld: Symbol not found: _ffi_type_double
  Referenced from: /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
  Expected in: flat namespace
 in /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
dyld: Symbol not found: _ffi_type_double
  Referenced from: /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
  Expected in: flat namespace
 in /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
dyld: Symbol not found: _ffi_type_double
  Referenced from: /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
  Expected in: flat namespace
 in /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
make[4]: Entering directory `/Users/Owen/Downloads/glib-2.34.3/gio/tests'
  GEN      gdbus-test-codegen-generated.c
  GEN      test_resources.c
dyld: Symbol not found: _ffi_type_double
  Referenced from: /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
  Expected in: flat namespace
 in /Users/Owen/Downloads/glib-2.34.3/gobject/.libs/libgobject-2.0.0.dylib
/bin/sh: line 1:  3828 Trace/BPT trap: 5       ../../gio/glib-compile-resources 
--target=test_resources.c --sourcedir=. --generate-source --c-name _g_test1 
test2.gresource.xml
make[4]: *** [test_resources.c] Error 133
make[4]: Leaving directory `/Users/Owen/Downloads/glib-2.34.3/gio/tests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/Users/Owen/Downloads/glib-2.34.3/gio'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/Users/Owen/Downloads/glib-2.34.3/gio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Users/Owen/Downloads/glib-2.34.3'
make: *** [all] Error 2"

And then it exited.

Original comment by fitzowen8 on 2 Jan 2013 at 6:17

GoogleCodeExporter commented 9 years ago
ok, i think, you did wrong ;) and i remember that i patched my configure file 
for make.
i told the "installation manual" (the conf. file) that if it got asked, which 
version flex is, it shall not spit out 
"flex 2.5.35 Apple(flex-31)" but "2.5.35" or so.

If i put a "flex --version" in terminal now, it will say  "flex 2.5.35 
Apple(flex-31)""  to me.
hope it will help.

Original comment by hyperchi...@gmx.de on 2 Jan 2013 at 1:04

GoogleCodeExporter commented 9 years ago
Workaround added in latest source checkin. -r

Original comment by rwoodsm...@gmail.com on 2 May 2013 at 5:01