Re: [fossil-users] Building fossil on Solaris
On 18/02/2012, at 8:12 AM, Jan Danielsson wrote: On 02/17/12 03:00, Steve Bennett wrote: [---] No problem. I've pushed the fix into autosetup and updated autosetup on a branch, so perhaps Richard will merge this fix at some point. I've encountered two other issues; one is fixed in the branch jan-buildfixes. Looks good. I see that Richard has already merged it. After applying the lib-fix, the linker complains; it can not find dlsym, dladdr, dlopen, socket, connect, dlclose, dlerror and shutdown. config.log indicates that it's linking conftest__ with: -lssl -lcrypto ..while my old (manually patched) fossil Makefile contains: -lssl -lcrypto -ldl -lsocket -lnsl I, naively, tried inserting something along the line of if a host *sun4* match is found, then append '-ldl -lsocket -lnsl' to LIBS, but it made no difference. I don't know if I don't understand the build system or Tcl. (I removed the if, and simply told it to always add those extra libraries to LIBS, but it didn't, so I assume it's the build system I don't understand). Any help is appreciated. So your openssl needs -ldl? You can try the attached patch as a workaround. (This will not work for platforms which don't have/need -ldl) Cheers, Steve -- µWeb: Embedded Web Framework - http://uweb.workware.net.au/ WorkWare Systems Pty Ltd W: www.workware.net.au P: +61 434 921 300 E: ste...@workware.net.au F: +61 7 3391 6002 openssl-needs-dl.patch Description: Binary data ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Building fossil on Solaris
On 02/19/12 23:21, Steve Bennett wrote: [---] So your openssl needs -ldl? Not exactly; the problem stems from that zlib doesn't exist as .a (only .so), so it requires dynamic linking (and dynamic linking needs -ldl). You can try the attached patch as a workaround. (This will not work for platforms which don't have/need -ldl) It solves it for dynamic linking; but I'm specifically looking to statically link: OpenSSL isn't installed on all systems, and I want to be able to copy the fossil binary around with as little hassle as possible. In practice, with the slight modifications I've done, fossil builds as I want up until the last link, and it's trivial to copy paste the final command line and manually modify it to get it to run properly. So my goal has been reached. However, I know from previous experience that I'll forget about the details two months from now when I want to redo it all, which is why I'm looking for a more automatic solution. :) -- Kind regards, Jan Danielsson ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Building fossil on Solaris
On 02/17/12 03:00, Steve Bennett wrote: [---] No problem. I've pushed the fix into autosetup and updated autosetup on a branch, so perhaps Richard will merge this fix at some point. I've encountered two other issues; one is fixed in the branch jan-buildfixes. After applying the lib-fix, the linker complains; it can not find dlsym, dladdr, dlopen, socket, connect, dlclose, dlerror and shutdown. config.log indicates that it's linking conftest__ with: -lssl -lcrypto ..while my old (manually patched) fossil Makefile contains: -lssl -lcrypto -ldl -lsocket -lnsl I, naively, tried inserting something along the line of if a host *sun4* match is found, then append '-ldl -lsocket -lnsl' to LIBS, but it made no difference. I don't know if I don't understand the build system or Tcl. (I removed the if, and simply told it to always add those extra libraries to LIBS, but it didn't, so I assume it's the build system I don't understand). Any help is appreciated. -- Kind regards, Jan Danielsson ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] Building fossil on Solaris
Hello, I've built fossil on Solaris previously using the old Makefile (requiring only very minor changes), but Makefile.classic seems to have degenerated a little, so I thought I'd try to use configure et al), but I end up with this: $ mkdir build $ cd build $ ../configure Error: No auto.def found in [...]/fossil/build Try: 'autosetup --help' for options $ ls -l total 0 configure --help led me to try: $ ../configure --init I don't see configure, so I will create it. I don't see auto.def, so I will create a default one. Note: I don't see Makefile.in. You will probably need to create one. $ ls auto.def configure The system is (correctly) being identified as: Host System...sparc-sun-solaris2.9 Build System...sparc-sun-solaris2.9 Which are the usual suspects when Makefile.in doesn't get created? -- Kind regards, Jan Danielsson ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Building fossil on Solaris
On 17/02/2012, at 10:57 AM, Jan Danielsson wrote: Hello, I've built fossil on Solaris previously using the old Makefile (requiring only very minor changes), but Makefile.classic seems to have degenerated a little, so I thought I'd try to use configure et al), but I end up with this: $ mkdir build $ cd build $ ../configure Error: No auto.def found in [...]/fossil/build Try: 'autosetup --help' for options $ ls -l total 0 configure --help led me to try: $ ../configure --init I don't see configure, so I will create it. I don't see auto.def, so I will create a default one. Note: I don't see Makefile.in. You will probably need to create one. $ ls auto.def configure The system is (correctly) being identified as: Host System...sparc-sun-solaris2.9 Build System...sparc-sun-solaris2.9 Which are the usual suspects when Makefile.in doesn't get created? Thanks for the report. I'll take a look at why out-of-tree build doesn't work on Solaris. In the meantime, you can try an in-tree build. Just run ./configure from the source directory. Cheers, Steve -- µWeb: Embedded Web Framework - http://uweb.workware.net.au/ WorkWare Systems Pty Ltd W: www.workware.net.au P: +61 434 921 300 E: ste...@workware.net.au F: +61 7 3391 6002 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Building fossil on Solaris
On 17/02/2012, at 11:08 AM, Steve Bennett wrote: On 17/02/2012, at 10:57 AM, Jan Danielsson wrote: Hello, I've built fossil on Solaris previously using the old Makefile (requiring only very minor changes), but Makefile.classic seems to have degenerated a little, so I thought I'd try to use configure et al), but I end up with this: $ mkdir build $ cd build $ ../configure Error: No auto.def found in [...]/fossil/build Try: 'autosetup --help' for options $ ls -l total 0 configure --help led me to try: $ ../configure --init I don't see configure, so I will create it. I don't see auto.def, so I will create a default one. Note: I don't see Makefile.in. You will probably need to create one. $ ls auto.def configure The system is (correctly) being identified as: Host System...sparc-sun-solaris2.9 Build System...sparc-sun-solaris2.9 Which are the usual suspects when Makefile.in doesn't get created? Thanks for the report. I'll take a look at why out-of-tree build doesn't work on Solaris. In the meantime, you can try an in-tree build. Just run ./configure from the source directory. Looks like more problems with unexported shell variables. Can you edit the file configure so it looks like this: #!/bin/sh dir=`dirname $0`/autosetup WRAPPER=$0; export WRAPPER exec `$dir/find-tclsh` $dir/autosetup $@ And let me know if that solves the problem? Cheers, Steve -- µWeb: Embedded Web Framework - http://uweb.workware.net.au/ WorkWare Systems Pty Ltd W: www.workware.net.au P: +61 434 921 300 E: ste...@workware.net.au F: +61 7 3391 6002 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Building fossil on Solaris
On 02/17/12 02:23, Steve Bennett wrote: [.. FOO=bar ; export FOO ..] And let me know if that solves the problem? Ah, yes. Good ol' Solaris /bin/sh. That was it. I can't believe I missed that; I have been bitten by that particular limitation of Solaris' /bin/sh a few times before. (Yes, I know Solaris technically does it right, and I respect that, but it's getting a little old running into this problem every five-six months or so). Thanks! -- Kind regards, Jan Danielsson ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Building fossil on Solaris
On 17/02/2012, at 11:53 AM, Jan Danielsson wrote: On 02/17/12 02:23, Steve Bennett wrote: [.. FOO=bar ; export FOO ..] And let me know if that solves the problem? Ah, yes. Good ol' Solaris /bin/sh. That was it. I can't believe I missed that; I have been bitten by that particular limitation of Solaris' /bin/sh a few times before. (Yes, I know Solaris technically does it right, and I respect that, but it's getting a little old running into this problem every five-six months or so). Thanks! No problem. I've pushed the fix into autosetup and updated autosetup on a branch, so perhaps Richard will merge this fix at some point. The crazy thing is that Solaris has a Posix shell (as opposed to Bourne shell), but it's not /bin/sh, so it's too hard to use it for this sort of bootstrapping. Cheers, Steve -- µWeb: Embedded Web Framework - http://uweb.workware.net.au/ WorkWare Systems Pty Ltd W: www.workware.net.au P: +61 434 921 300 E: ste...@workware.net.au F: +61 7 3391 6002 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Building fossil on Solaris
On Thu, Feb 16, 2012 at 8:53 PM, Jan Danielsson jan.m.daniels...@gmail.comwrote: On 02/17/12 02:23, Steve Bennett wrote: [.. FOO=bar ; export FOO ..] And let me know if that solves the problem? We have this fix checked-in and running on a Solaris Sparc blade here: http://sparc.sqlite.org/fossil-src/fdiff?v1=ec171bb9e14v2=06277810ab75 The change was about a week ago. So any of the latest versions of Fossil should have it. I also see that Steve has now checked in the latest autosetup that contains a lot of other enhancements besides this one fix. Ah, yes. Good ol' Solaris /bin/sh. That was it. I can't believe I missed that; I have been bitten by that particular limitation of Solaris' /bin/sh a few times before. (Yes, I know Solaris technically does it right, and I respect that, but it's getting a little old running into this problem every five-six months or so). Thanks! -- Kind regards, Jan Danielsson ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users -- D. Richard Hipp d...@sqlite.org ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Building fossil on Solaris
On 17/02/2012, at 1:51 PM, Richard Hipp wrote: On Thu, Feb 16, 2012 at 8:53 PM, Jan Danielsson jan.m.daniels...@gmail.com wrote: On 02/17/12 02:23, Steve Bennett wrote: [.. FOO=bar ; export FOO ..] And let me know if that solves the problem? We have this fix checked-in and running on a Solaris Sparc blade here: http://sparc.sqlite.org/fossil-src/fdiff?v1=ec171bb9e14v2=06277810ab75 The change was about a week ago. So any of the latest versions of Fossil should have it. I also see that Steve has now checked in the latest autosetup that contains a lot of other enhancements besides this one fix. Similar problem, but in a slightly different place. Both fixes are needed. Cheers, Steve -- µWeb: Embedded Web Framework - http://uweb.workware.net.au/ WorkWare Systems Pty Ltd W: www.workware.net.au P: +61 434 921 300 E: ste...@workware.net.au F: +61 7 3391 6002 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users