old ports install problem

mysiar mysiar at gmail.com
Sun May 17 12:19:05 PDT 2015


Finally I compile Tcl & Tk both version 8.4.1 with:

Tcl:  ./configure --prefix=/Users/piotr/usr/ --x-include=/opt/X11/include --x-libraries=/opt/X11/lib --enable-threads
Tk:  ./configure --prefix=/Users/piotr/usr --with-x --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib --enable-threads

for some reason this didn’t see Tclx installed from macports so I downloaded Tclx source codes and try to compile it

Tclx: ./configure --prefix=/Users/piotr/usr --enable-threads  --with-tcl=/Users/piotr/usr/src/tcl8.4.1/unix --with-help=Help

during compilation I have error message:

./generic/tclXmath.c:205:2: error: no member named 'wideValue' in 'struct Tcl_Value'; did you mean 'intValue'?
        GET_DOUBLE_VALUE(d0, args[0], t0);
        ^
./generic/tclXmath.c:34:42: note: expanded from macro 'GET_DOUBLE_VALUE'
        (doubleVar) = Tcl_WideAsDouble((argPtr).wideValue);     \
                                                ^
/Users/piotr/usr/src/tcl8.4.1/generic/tcl.h:398:51: note: expanded from macro 'Tcl_WideAsDouble'
#   define Tcl_WideAsDouble(val)        ((double)((long)(val)))
                                                         ^
/Users/piotr/usr/src/tcl8.4.1/generic/tcl.h:637:10: note: 'intValue' declared here
    long intValue;              /* Integer value. */
         ^
./generic/tclXmath.c:206:2: error: no member named 'wideValue' in 'struct Tcl_Value'; did you mean 'intValue'?
        GET_DOUBLE_VALUE(d1, args[1], t1);
        ^
./generic/tclXmath.c:34:42: note: expanded from macro 'GET_DOUBLE_VALUE'
        (doubleVar) = Tcl_WideAsDouble((argPtr).wideValue);     \
                                                ^
/Users/piotr/usr/src/tcl8.4.1/generic/tcl.h:398:51: note: expanded from macro 'Tcl_WideAsDouble'
#   define Tcl_WideAsDouble(val)        ((double)((long)(val)))
                                                         ^
/Users/piotr/usr/src/tcl8.4.1/generic/tcl.h:637:10: note: 'intValue' declared here
    long intValue;              /* Integer value. */
         ^
./generic/tclXmath.c:221:14: error: no member named 'wideValue' in 'struct Tcl_Value'; did you mean 'intValue'?
            args[0].wideValue;
                    ^~~~~~~~~
                    intValue
/Users/piotr/usr/src/tcl8.4.1/generic/tcl.h:637:10: note: 'intValue' declared here
    long intValue;              /* Integer value. */
         ^
./generic/tclXmath.c:223:14: error: no member named 'wideValue' in 'struct Tcl_Value'; did you mean 'intValue'?
            args[1].wideValue;
                    ^~~~~~~~~
                    intValue
/Users/piotr/usr/src/tcl8.4.1/generic/tcl.h:637:10: note: 'intValue' declared here
    long intValue;              /* Integer value. */
         ^
./generic/tclXmath.c:227:17: error: no member named 'wideValue' in 'struct Tcl_Value'; did you mean 'intValue'?
            resultPtr->wideValue = (w0 < w1) ? w1 : w0;
                       ^~~~~~~~~
                       intValue
/Users/piotr/usr/src/tcl8.4.1/generic/tcl.h:637:10: note: 'intValue' declared here
    long intValue;              /* Integer value. */
         ^
./generic/tclXmath.c:229:17: error: no member named 'wideValue' in 'struct Tcl_Value'; did you mean 'intValue'?
            resultPtr->wideValue = (w0 > w1) ? w1 : w0;
                       ^~~~~~~~~
                       intValue
/Users/piotr/usr/src/tcl8.4.1/generic/tcl.h:637:10: note: 'intValue' declared here
    long intValue;              /* Integer value. */
         ^
6 errors generated.
make: *** [tclXmath.o] Error 1



> On 15 May 2015, at 23:11, Ryan Schmidt <ryandesign at macports.org> wrote:
> 
>> 
>> On May 15, 2015, at 3:44 PM, mysiar wrote:
>> 
>>> On 15 May 2015, at 22:36, Ryan Schmidt wrote:
>>> 
>>> 
>>>> On May 15, 2015, at 3:35 PM, mysiar wrote:
>>>> 
>>>>> On 15 May 2015, at 22:10, mysiar wrote:
>>>>> 
>>>>>> On 15 May 2015, at 20:50, Ryan Schmidt wrote:
>>>>>> 
>>>>>> On May 15, 2015, at 06:11, mysiar wrote:
>>>>>>> 
>>>>>>> I have a piece of software that requires tcl, tcl and tk at the same version.
>>>>>>> I tried with latest tcl & tk from macports but it is not working.
>>>>>> 
>>>>>> What piece of software? How is it not working?
>>>>> tksu
>>>>> 
>>>>>> 
>>>>>>> I managed to compile tcl from source code no problem but tk fails with the error message
>>>>>>> 
>>>>>>> d: library not found for -lX11
>>>>>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>>>>>> Makefile:406: recipe for target 'libtk8.4.dylib' failed
>>>>>>> gmake: *** [libtk8.4.dylib] Error 1
>>>>>>> 
>>>>>>> configure for tk
>>>>>>> 	./configure --prefix=/Users/usr --with-x --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib
>>>>>> 
>>>>>> Does libX11.dylib exist in /opt/X11/lib? The error message suggests it does not. 
>>>>>> 
>>>>>> "--prefix=/Users/usr" is also unusual. Do you really have an OS X user account named "usr"? Is that the user you're logged in with now? If not, does the user you're logged in with have permission to modify user usr's home directory? Or are you just creating a directory /Users/usr to use as a prefix for software installation, without having a corresponding "usr" user? If so, that's also unusual.
>>>>> 
>>>>> my mistake the prefix path for install is /Users/piotr/usr
>>>>> and piotr is my user
>>>> 
>>>> forgot to mention that libX11.dylib exists
>>>> /opt/X11/lib/libX11.dylib -> libX11.6.dylib
>>>> 
>>> 
>>> Hmm, then maybe tksu does not actually use the value of the --x-libraries configure argument correctly. You could try adding "-L/opt/X11/lib" to LDFLAGS when you configure and/or build.
>> tksu is a package of tcl scripts that uses tclx and tk
>> the problem I have is to compile tk 8.4.1, I managed to compile tcl 8.4.1, I have tclx 8.4.1 from macports
>> when I run tksu it checks if packages are not at the same version if fails.
> 
> Sorry, I meant tk, not tksu.
> 
> Have you tried removing that check from tksu? Maybe there is no reason why the versions of tcl and tk need to be the same as the version of tclx. I note that tclx 8.4.1 was released in 2012; it seems odd that they would release in 2012 a version of tclx only compatible with a versions of tcl and tk released in 2002.
> 
> Please remember to Reply All so that the conversation stays on the mailing list.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20150517/a5856d87/attachment.html>


More information about the macports-users mailing list