I might have added that after the initial edit of the ".in" versions of the two 
files, I actually did "make config", but a subsequent "make" failed as the 
changes to the ".in" files did not seem to have propagated to the non-".in" 
versions of the files.  "make config" clobbered the changes I had made to the 
".in" files.

Other than that error in my post, the process worked!

Kevin

On Apr 30, 2014, at 8:02 PM, Kevin McQuiggin <[email protected]> wrote:

> Hi All:
> 
> At Eric's suggestion, here are the steps I took to get Liquidsoap past the 
> common 'setsocopt_int()' error under FreeBSD 10.0-RELEASE.
> 
> This is a bit of a lengthy post, but the process worked for me and I reached 
> a functional Liquidsoap installation.
> 
> There is a patch listed at:
> 
> https://github.com/drfill/homebrew-liquidsoap/commit/89ff858bed64b0860ab75f85f8ee9625ed99f907
> 
> The patch isn't easily applied under FreeBSD, but it is a pretty 
> straightforward fix.
> 
> As there are only two lines of effective change/patching, I decided to apply 
> the changes manually.  The two relevant lines from the patch file are:
> 
> inreplace "Makefile.defs.in", "NEED_TCP_NODELAY=@NEED_TCP_NODELAY@", 
> "NEED_TCP_NODELAY="
>  inreplace "src/tools/liq_sockets.ml.in", "@TCP_NODELAY_VALUE@", "let 
> set_tcp_nodelay fd v = Unix.setsockopt fd Unix.TCP_NODELAY v"
>      
> The two files that need to be modified are indicated as 'Makefile.defs.in' 
> and 'liq_sockets.ml.in'.
> 
> First try, I found these two files (in FreeBSD ports they will be under 
> /usr/ports/audio/liquidsoap/work) and looked for the source string (second 
> argument to the 'inreplace' statement) and changed it to the third argument.  
> 
> To find the files you can use something like:
> 
> cd /usr/ports/audio/liquidsoap
> find . -name Makefile.defs.in -print
> find . -name liq_sockets.ml.in -print
> 
> My target files were located at:
> 
> ./work/liquidsoap-1.0.0-full/liquidsoap-1.0.0/Makefile.defs.in
> ./work/liquidsoap-1.0.0-full/liquidsoap-1.0.0/src/tools/liq_sockets.ml.in
> 
> Ypou need to edit each of these files.  I used the "vi" editor, but use 
> whatever text editor you like.
> 
> In 'Makefile.defs.in' I searched for "NEED_TCP_NODELAY=@NEED_TCP_NODELAY@" 
> and changed it to "NEED_TCP_NODELAY=".
> 
> In 'liq_sockets.ml.in' I searched for "@TCP_NODELAY_VALUE@",  and changed it 
> to "let set_tcp_nodelay fd v = Unix.setsockopt fd Unix.TCP_NODELAY v".
> 
> I then moved to /usr/ports/audio/liquidsoap and typed "make".
> 
> This unfortunately did not work.  I thought it should have, but if it fails 
> for you too, then keep reading!
> 
> As the initial make failed, I found the the -generated- files from 
> 'Makefile.defs.in' and 'liq_socket.ml.in' and made the same two changes to 
> them.  Huh?
> 
> The generated files will be named 'Makefile.defs' and 'liq_sockets.ml'.  
> These files will be in the same directories as their ".in"-suffixed versions.
> 
> Edit THESE files and make the two string substitutions as described above.  
> 
> Once 'Makefile.defs' and 'liq_sockets.ml' have been edited and those two 
> lines changed as noted above, cd to /usr/ports/audio/liquidsoap and type 
> "make" again.
> 
> This should work, and the Liquidsoap build will complete successfully.
> 
> Next you have to install the port, so type "make install".
> 
> For me, I now had a functional Liquidsoap under FreeBSD 10.0.  Yahoo!
> 
> I hope these instructions are of help.  Hopefully the developers will fix the 
> FreeBSD buuld soon!
> 
> Kevin
> 
> 
> 
> 
> 
> On Apr 29, 2014, at 9:46 AM, Kevin McQuiggin <[email protected]> wrote:
> 
>> Thank you!  I was able to apply the patch contents manually. LS built fine 
>> after that.
>> 
>> Much appreciated!
>> 
>> Kevin
>> 
>> Sent from my iPhone
>> 
>> On 2014-04-27, at 22:38, Eric Hill <[email protected]> wrote:
>> 
>>> Also, weirdly, from Aug 2012:
>>> 
>>> http://en.it-usenet.org/thread/11102/4814/
>>> 
>>> -e
>>> 
>>> On 04/25/2014 06:41 PM, Kevin McQuiggin wrote:
>>>> Hi All:
>>>> 
>>>> I'm an experienced user of LS, but under Ubuntu.  I thought I would
>>>> try to build the package under FreeBSD 10.0
>>>> 
>>>> I am trying to build the port, but am seeing an error during "make".
>>>> There is some reference to this on the net and at the savonet mailing
>>>> list, but the issue was reported to have been resolved in October
>>>> 2012.  This is not the case however.
>>>> 
>>>> Here's my 'make' output.  If you need further info please let m know.
>>>> I have FreeBSD 10.0-RELEASE and it is the amd64 build; hardware is a
>>>> ZOTAC ID41-PLUS.
>>>> 
>>>> I've also reported this to the FreeBSD port maintainer but have not
>>>> heard back yet.
>>>> 
>>>> Any assistance greatly appreciated!!!
>>>> 
>>>> Kevin
>>>> 
>>>> 
>>>> --- OUTPUT FROM 'MAKE': ---
>>>> 
>>>> gmake[5]: Leaving directory
>>>> `/usr/ports/audio/liquidsoap/work/liquidsoap-1.0.0-full/liquidsoap-1.0.0/src/synth'
>>>> 
>>>> 
>>> gmake[5]: Entering directory 
>>> `/usr/ports/audio/liquidsoap/work/liquidsoap-1.0.0-full/liquidsoap-1.0.0/src'
>>>> OCAMLOPT -o liquidsoap ocamlfind: [WARNING] Cannot read directory
>>>> /usr/ports/devel/ocaml-pcre/work/stage/usr/local/lib/ocaml/site-lib/pcre
>>>> which is mentioned in ld.conf tools/socket_stubs.o: In function
>>>> `stub_set_tcp_nodelay': tools/socket_stubs.c:(.text+0x67): undefined
>>>> reference to `setsockopt_int' cc: error: linker command failed with
>>>> exit code 1 (use -v to see invocation) File "caml_startup", line 1:
>>>> Error: Error during linking gmake[5]: *** [liquidsoap] Error 2
>>>> gmake[5]: Leaving directory
>>>> `/usr/ports/audio/liquidsoap/work/liquidsoap-1.0.0-full/liquidsoap-1.0.0/src'
>>>> 
>>>> 
>>> gmake[4]: *** [all-auto-ocaml-prog] Error 2
>>>> gmake[4]: Leaving directory
>>>> `/usr/ports/audio/liquidsoap/work/liquidsoap-1.0.0-full/liquidsoap-1.0.0/src'
>>>> 
>>>> 
>>> gmake[3]: *** [all-subdirs] Error 2
>>>> gmake[3]: Leaving directory
>>>> `/usr/ports/audio/liquidsoap/work/liquidsoap-1.0.0-full/liquidsoap-1.0.0'
>>>> 
>>>> 
>>> gmake[2]: *** [all] Error 1
>>>> gmake[2]: Leaving directory
>>>> `/usr/ports/audio/liquidsoap/work/liquidsoap-1.0.0-full' *** Error
>>>> code 1
>>>> 
>>>> Stop. make[1]: stopped in /usr/ports/audio/liquidsoap *** Error code
>>>> 1
>>>> 
>>>> Stop. make: stopped in /usr/ports/audio/liquidsoap
>>>> root@bluenose:/usr/ports/audio/liquidsoap #
>>>> 
>>>> ---
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> 
>>>> 
>>> Start Your Social Network Today - Download eXo Platform
>>>> Build your Enterprise Intranet with eXo Platform Software Java Based
>>>> Open Source Intranet - Social, Extensible, Cloud Ready Get Started
>>>> Now And Turn Your Intranet Into A Collaboration Platform
>>>> http://p.sf.net/sfu/ExoPlatform
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________ Savonet-users mailing
>>>> list [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>>> 
>>> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to