Обсуждение: 7.4RC1 failed to build on Linux

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

7.4RC1 failed to build on Linux

От
Kenji Sugita
Дата:
Failed to build on Linux. 
$ uname -mrp
2.2.18-0ph1smp i686 unknown
$ uname -mr 
2.2.18-0ph1smp i686
$ cat /etc/redhat-release 
Red Hat Linux release 6.2 (Zoot)
$ gcc --version
2.95.3
$ cat ../myconf 
#!/bin/sh

CFLAGS=-O2 ./configure                  \   --with-tcl                          \   --without-tk
\  --prefix=/opt/pgsql/7.4RC1          \   --enable-integer-datetimes
 
$ ../myconf 2>&1 | tee myconf.out
...
$ time make 2>&1 | tee make.out
...
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pgtclAppInit.o -L../../../src/interfaces/libpgtcl -lpgtcl
-L../../../src/interfaces/libpq-lpq -L/usr/lib -ltcl8.0jp -ldl  -lieee -lm -L../../../src/port
-Wl,-rpath,/opt/pgsql/7.4RC1/lib-lz -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd  -lpgport -o pgtclsh
 
../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_NewByteArrayObj'
../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_GetByteArrayFromObj'
collect2: ld returned 1 exit status
make[3]: *** [pgtclsh] Error 1
make[3]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin/pgtclsh'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src'
make: *** [all] Error 2
Command exited with non-zero status 2
206.91user 12.52system 3:39.38elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (523032major+569611minor)pagefaults 0swaps
$ 
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pgtclAppInit.o -L../../../src/interfaces/libpgtcl -lpgtcl
-L../../../src/interfaces/libpq-lpq -L/usr/lib -ltcl8.0jp -ldl  -lieee -lm -L../../../src/port
-Wl,-rpath,/opt/pgsql/7.4RC1/lib-lz -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd  -lpgport -o pgtclsh
 
../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_NewByteArrayObj'
../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_GetByteArrayFromObj'
collect2: ld returned 1 exit status
make[3]: *** [pgtclsh] Error 1
make[3]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin/pgtclsh'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src'
make: *** [all] Error 2
Command exited with non-zero status 2
206.91user 12.52system 3:39.38elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (523032major+569611minor)pagefaults 0swaps
$ 


Kenji Sugita                                      


Re: 7.4RC1 failed to build on Linux

От
"Marc G. Fournier"
Дата:
what version of tcl do you have installed?

On Tue, 4 Nov 2003, Kenji Sugita wrote:

>   Failed to build on Linux.
>
> $ uname -mrp
> 2.2.18-0ph1smp i686 unknown
> $ uname -mr
> 2.2.18-0ph1smp i686
> $ cat /etc/redhat-release
> Red Hat Linux release 6.2 (Zoot)
> $ gcc --version
> 2.95.3
> $ cat ../myconf
> #!/bin/sh
>
> CFLAGS=-O2 ./configure                  \
>     --with-tcl                          \
>     --without-tk                        \
>     --prefix=/opt/pgsql/7.4RC1          \
>     --enable-integer-datetimes
> $ ../myconf 2>&1 | tee myconf.out
> ...
> $ time make 2>&1 | tee make.out
> ...
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pgtclAppInit.o -L../../../src/interfaces/libpgtcl -lpgtcl
-L../../../src/interfaces/libpq-lpq -L/usr/lib -ltcl8.0jp -ldl  -lieee -lm -L../../../src/port
-Wl,-rpath,/opt/pgsql/7.4RC1/lib-lz -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd  -lpgport -o pgtclsh
 
> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_NewByteArrayObj'
> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_GetByteArrayFromObj'
> collect2: ld returned 1 exit status
> make[3]: *** [pgtclsh] Error 1
> make[3]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin/pgtclsh'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src'
> make: *** [all] Error 2
> Command exited with non-zero status 2
> 206.91user 12.52system 3:39.38elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
> 0inputs+0outputs (523032major+569611minor)pagefaults 0swaps
> $
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pgtclAppInit.o -L../../../src/interfaces/libpgtcl -lpgtcl
-L../../../src/interfaces/libpq-lpq -L/usr/lib -ltcl8.0jp -ldl  -lieee -lm -L../../../src/port
-Wl,-rpath,/opt/pgsql/7.4RC1/lib-lz -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd  -lpgport -o pgtclsh
 
> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_NewByteArrayObj'
> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_GetByteArrayFromObj'
> collect2: ld returned 1 exit status
> make[3]: *** [pgtclsh] Error 1
> make[3]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin/pgtclsh'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src'
> make: *** [all] Error 2
> Command exited with non-zero status 2
> 206.91user 12.52system 3:39.38elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
> 0inputs+0outputs (523032major+569611minor)pagefaults 0swaps
> $
>
>
> Kenji Sugita
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>


Re: 7.4RC1 failed to build on Linux

От
Tom Lane
Дата:
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> On Tue, 4 Nov 2003, Kenji Sugita wrote:
>> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_NewByteArrayObj'
>> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_GetByteArrayFromObj'

> what version of tcl do you have installed?

Too old, looks like :-(.

We just applied a patch that uses Tcl ByteArray objects to prevent
charset-translation problems with lo_read() and lo_write() in recent
Tcl releases.  This breaks compatibility with Tcl 8.0.* because
ByteArray wasn't added till 8.1.

I'd have preferred not to break compatibility with Tcl 8.0.*, but I
didn't see a whole lot of alternatives.  There isn't any other way
AFAICS to prevent recent Tcl releases from applying an unwanted
translation.
        regards, tom lane


Re: 7.4RC1 failed to build on Linux

От
Jan Wieck
Дата:
Marc G. Fournier wrote:

> what version of tcl do you have installed?

Looks like 8.0.

As per recent discussion we are actually require 8.1 exactly because of 
those missing functions in all versions prior to that.


Jan

> 
> On Tue, 4 Nov 2003, Kenji Sugita wrote:
> 
>>   Failed to build on Linux.
>>
>> $ uname -mrp
>> 2.2.18-0ph1smp i686 unknown
>> $ uname -mr
>> 2.2.18-0ph1smp i686
>> $ cat /etc/redhat-release
>> Red Hat Linux release 6.2 (Zoot)
>> $ gcc --version
>> 2.95.3
>> $ cat ../myconf
>> #!/bin/sh
>>
>> CFLAGS=-O2 ./configure                  \
>>     --with-tcl                          \
>>     --without-tk                        \
>>     --prefix=/opt/pgsql/7.4RC1          \
>>     --enable-integer-datetimes
>> $ ../myconf 2>&1 | tee myconf.out
>> ...
>> $ time make 2>&1 | tee make.out
>> ...
>> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pgtclAppInit.o -L../../../src/interfaces/libpgtcl -lpgtcl
-L../../../src/interfaces/libpq-lpq -L/usr/lib -ltcl8.0jp -ldl  -lieee -lm -L../../../src/port
-Wl,-rpath,/opt/pgsql/7.4RC1/lib-lz -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd  -lpgport -o pgtclsh
 
>> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_NewByteArrayObj'
>> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_GetByteArrayFromObj'
>> collect2: ld returned 1 exit status
>> make[3]: *** [pgtclsh] Error 1
>> make[3]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin/pgtclsh'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src'
>> make: *** [all] Error 2
>> Command exited with non-zero status 2
>> 206.91user 12.52system 3:39.38elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
>> 0inputs+0outputs (523032major+569611minor)pagefaults 0swaps
>> $
>> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pgtclAppInit.o -L../../../src/interfaces/libpgtcl -lpgtcl
-L../../../src/interfaces/libpq-lpq -L/usr/lib -ltcl8.0jp -ldl  -lieee -lm -L../../../src/port
-Wl,-rpath,/opt/pgsql/7.4RC1/lib-lz -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd  -lpgport -o pgtclsh
 
>> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_NewByteArrayObj'
>> ../../../src/interfaces/libpgtcl/libpgtcl.so: undefined reference to `Tcl_GetByteArrayFromObj'
>> collect2: ld returned 1 exit status
>> make[3]: *** [pgtclsh] Error 1
>> make[3]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin/pgtclsh'
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src/bin'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/usr/local/pgsql/7.4RC1/build/src'
>> make: *** [all] Error 2
>> Command exited with non-zero status 2
>> 206.91user 12.52system 3:39.38elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
>> 0inputs+0outputs (523032major+569611minor)pagefaults 0swaps
>> $
>>
>>
>> Kenji Sugita
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>>
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #