From: Haejoong L. <hae...@ld...> - 2007-03-08 15:43:21
|
I'm not sure how this happens, but the problem here is that an argument for "-rpath" is missing. I don't think -rpath option is necessary to compile the python wrapper. So, one solution could be for you to modify the relevant makefile manually to remove the -rpath option from the offending libtool command line. Another option is: Maybe you could go to the ag_wrapper/python directory and enter the following, modified command line: /bin/bash ../../../libtool --mode=link g++ -g -O2 -L../../ag -L../../ag/.libs -o ag.la -no-undefined -module -version-info 1:0:0 ag.lo -lag Note that -rpath is removed from this command line. -Haejoong sub Jean wrote: > That helped a lot for choosing the right headers. Thanks! But the > libtool error stayed. And I am not sure which information would be > helpful to solve it. > > The error is thrown when compiling the python-wrapper. Here is a > snippet of the make-output: > > Making all in python > make[3]: Entering directory > `/home/jeannette/aglib-2.0.1/src/ag_wrapper/python' > ... > -I../../ag -I/usr/include/python2.4 -I/usr/include/tcl8.4 > ... > /bin/bash ../../../libtool --mode=link g++ -g -O2 -L../../ag > -L../../ag/.libs -o ag.la -rpath -no-undefined -module -version-info > 1:0:0 ag.lo -lag > libtool: link: only absolute run-paths are allowed > > I am using ubuntu (edgy) 6.10. Libtool version is ltmain.sh (GNU > libtool) 1.5.22. > Python2.4 (+dev package) > > No idea where it comes from. No idea what to look for. Do you have any > idea? > > Jeannette. > > > > On 3/7/07, Haejoong Lee <hae...@ld...> wrote: > >> I think you can alter the header search path like this: >> >> ./configure ... CPPFLAGS="-I/usr/include/tcl8.3 $CPPFLAGS" >> >> or if you are using a bourne shell the following might work as well: >> >> CPPFLAGS="-I/usr/include/tcl8.3 $CPPFLAGS" ./configure ... >> >> You will be able to tell whether the first style is supported by the >> following command: >> >> ./configure --help >> >> I'm not sure about the libtool error you are getting. More infomation >> will be helpful. >> >> -Haejoong >> >> >> sub Jean wrote: >> >> >Thanks for this answer. The file tclDecls.h exists on my harddrive >> >This is the output of the grep >> >/usr/include/tcl8.3/tclDecls.h:EXTERN char * Tcl_GetString >> >_ANSI_ARGS_((Tcl_Obj * objPtr)); >> >/usr/include/tcl8.3/tclDecls.h:#ifndef Tcl_GetString >> >/usr/include/tcl8.3/tclDecls.h:#define Tcl_GetString \ >> >/usr/include/tcl8.3/tcl.h: * or >> >Tcl_GetString to get a pointer to the >> >/usr/include/tcl8.4/tclDecls.h:EXTERN char * Tcl_GetString >> >_ANSI_ARGS_((Tcl_Obj * objPtr)); >> >/usr/include/tcl8.4/tclDecls.h:#ifndef Tcl_GetString >> >/usr/include/tcl8.4/tclDecls.h:#define Tcl_GetString \ >> >/usr/include/tcl8.4/tcl.h: * or >> >Tcl_GetString to get a pointer to the >> >grep: /usr/local/include/*.h: No such file or directory >> >grep: /usr/local/include/tcl*/*.h: No such file or directory >> > >> >But this file does not get included into /usr/include/tcl.h. It is the >> >header of version 8.0. In version 8.3/8.4 tclDecls.h gets included in >> >tcl.h. When I try to run ./configure ----with-tclsh=/usr/bin/tclsh8.4 >> >it still takes the 8.0 header file although the dev packages of the >> >other versions are installed. >> > >> >So I gave up and disabled the tcl-wrapper while configuring. Trying to >> >compile then leads to another error: >> > >> >libtool: link: only absolute run-paths are allowed >> > >> >I am still stuck? What am I doing wrong? Should I uninstall the older >> >tcl-versions? >> > >> >Jeannette. >> > >> >On 2/28/07, Haejoong Lee <hae...@ld...> wrote: >> > >> > >> >>sub Jean wrote: >> >> >> >> >> >> >> >>>Hello, >> >>>I try to compile the tcl_wrapper of the aglib! When trying to >> compile the >> >>>ag.cc in the ag_wrapper/tcl directory it gives me the following >> error: >> >>> >> >>>error: 'Tcl_GetString' was not declared in this scope >> >>> >> >>>The file tcl.h is in /usr/include, but there is actually no >> >>>Tcl_GetString defined. Do I have to use a specific version tclsh? I >> >>>tried it with 8.0, 8.3 and 8.5. Gives the same error. >> >>> >> >>>I simply don't know anymore where to look. Does anyne has an Idea? >> >>> >> >>> >> >>> >> >>> >> >>Tcl_GetString is found in tclDecls.h on my machine. I think the >> >>following command will find you where it is declared in most cases. >> >> >> >> grep "Tcl_GetString\b" /usr/{,local/}include/{,tcl*/}*.h >> >> >> >>This file gets included into tcl.h. So, it should be available once >> >>tcl.h is successfully included in the ag.cc file. >> >> >> >>-Haejoong >> >> >> >> >> >> >> >> >> > >> >------------------------------------------------------------------------- >> >> >Take Surveys. Earn Cash. Influence the Future of IT >> >Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> >opinions on IT & business topics through brief surveys-and earn cash >> >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> >> >_______________________________________________ >> >agtk-devel mailing list >> >agt...@li... >> >https://lists.sourceforge.net/lists/listinfo/agtk-devel >> > >> > >> >> |