Обсуждение: Compiling / TCL error

Поиск
Список
Период
Сортировка

Compiling / TCL error

От
"Christian Marschalek"
Дата:
I get the followig error although TK is installed

---------start--------
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/mnt/hdb/src/postgresql-7.0.3/src/bin/pgaccess'
make[2]: Entering directory
`/mnt/hdb/src/postgresql-7.0.3/src/bin/pgtclsh'
gcc -I../../include -I../../backend   -O2 -Wall -Wmissing-prototypes
-Wmissi
ng-declarations -I/usr/X11R6/include -I../../interfaces/libpgtcl
-DHAVE_UNIS TD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SY S_TIME=1 -DHAVE_PW_GECOS=1  -o pgtksh
pgtkAppInit.o \
  -L../../interfaces/libpgtcl -lpgtcl -L../../interfaces/libpq -lpq
-L/usr/X 11R6/lib -L/usr/local/lib -ltk8.3 -L/usr/X11R6/lib -lX11 -ldl
-lieee -lm \
  -L/usr/local/lib -ltcl8.3 -lX11  -lcrypt -lnsl -ldl -lm -lutil
-lreadline
-lncurses  -export-dynamic
pgtkAppInit.o: In function `main':
pgtkAppInit.o(.text+0x11): undefined reference to `Tk_Main'
collect2: ld returned 1 exit status
make[2]: *** [pgtksh] Error 1
make[2]: Leaving directory
`/mnt/hdb/src/postgresql-7.0.3/src/bin/pgtclsh'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/hdb/src/postgresql-7.0.3/src/bin'
make: *** [all] Error 2
--------end-----------

thx for any help

cm


Re: Compiling / TCL error

От
jdassen@cistron.nl (J.H.M. Dassen (Ray))
Дата:
Christian Marschalek <cm@chello.at> wrote:
>I get the followig error although TK is installed

Did you install the development files (headers) for Tk? (The runtime files
aren't enough to compile against it) Did "configure" find them and state
that it could use Tk?

>gcc -I../../include -I../../backend   -O2 -Wall -Wmissing-prototypes
[cut]
>-o pgtksh pgtkAppInit.o \
>  -L../../interfaces/libpgtcl -lpgtcl -L../../interfaces/libpq -lpq
>-L/usr/X 11R6/lib -L/usr/local/lib -ltk8.3 -L/usr/X11R6/lib -lX11 -ldl
>-lieee -lm \
>  -L/usr/local/lib -ltcl8.3 -lX11  -lcrypt -lnsl -ldl -lm -lutil
>-lreadline
>-lncurses  -export-dynamic

>pgtkAppInit.o(.text+0x11): undefined reference to `Tk_Main'

No surprising, given that there is no '-ltk' or similiar, so probably
"configure" didn't find Tk or couldn't use it. Rerun "configure" (with a
"-v" just for good luck) and pay close attention to what it says about Tk.

HTH,
Ray
--
USDoJ/Judge Jackson: "Microsoft has performed an illegal operation and will
be shut down."
    James Turinsky in alt.sysadmin.recovery

RE: Re: Compiling / TCL error

От
"Christian Marschalek"
Дата:
Recompiled tk, tcl and postgresql and no it works...

Strange but true :o)

Anyway, thx for your response!

> -----Original Message-----
> From: pgsql-general-owner@postgresql.org
> [mailto:pgsql-general-owner@postgresql.org] On Behalf Of
> J.H.M. Dassen (Ray)
> Sent: Wednesday, March 21, 2001 11:14 AM
> To: pgsql-general@postgresql.org
> Subject: [GENERAL] Re: Compiling / TCL error
>
>
> Christian Marschalek <cm@chello.at> wrote:
> >I get the followig error although TK is installed
>
> Did you install the development files (headers) for Tk? (The
> runtime files aren't enough to compile against it) Did
> "configure" find them and state that it could use Tk?
>
> >gcc -I../../include -I../../backend   -O2 -Wall -Wmissing-prototypes
> [cut]
> >-o pgtksh pgtkAppInit.o \
> >  -L../../interfaces/libpgtcl -lpgtcl -L../../interfaces/libpq -lpq
> >-L/usr/X 11R6/lib -L/usr/local/lib -ltk8.3 -L/usr/X11R6/lib
> -lX11 -ldl
> >-lieee -lm \
> >  -L/usr/local/lib -ltcl8.3 -lX11  -lcrypt -lnsl -ldl -lm -lutil
> >-lreadline -lncurses  -export-dynamic
>
> >pgtkAppInit.o(.text+0x11): undefined reference to `Tk_Main'
>
> No surprising, given that there is no '-ltk' or similiar, so
> probably "configure" didn't find Tk or couldn't use it. Rerun
> "configure" (with a "-v" just for good luck) and pay close
> attention to what it says about Tk.
>
> HTH,
> Ray
> --
> USDoJ/Judge Jackson: "Microsoft has performed an illegal
> operation and will be shut down."
>     James Turinsky in alt.sysadmin.recovery
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to
> majordomo@postgresql.org)
>