Обновил порты. Начал их ставить и вот такая лажа:and I got the following output:
/usr/bin/ld: cannot find -lnsl
I can't compile the test program.
You have a BIG problem. Shall I abort Configure [y]
Ok. Stopping Configure.
===> Script "Configure" failed unexpectedly.
Please report the problem to tobez@FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/perl5.8/work/perl-5.8.7/config.log" including the output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1Stop in /usr/ports/lang/perl5.8.
/usr/ports/lang/perl5.8/work/perl-5.8.7/config.log - этой папки нету и файла также.
Забыл - freebsd 5.3.
Народ, хелп.
>Народ, хелп.вероятно неудачно обновили порты, в целом непонятно что и как вы делаете
и почему не собирается
>>Народ, хелп.
>
>вероятно неудачно обновили порты, в целом непонятно что и как вы делаете
Да все как обычно (не первый день замужем, так сказать):
cvsup -g -L 2 cvs-supfile
portupgrade -akf
А все зависимые пакеты возьми да и не соберись.
>и почему не собирается
Ок, скачаю еще раз.
>>вероятно неудачно обновили порты, в целом непонятно что и как вы делаете
Скатал еще раз и порты и исходники, таже фигня:bash-2.05b# cd /usr/ports/lang/perl5.8/
bash-2.05b# make
===> Configuring for perl-5.8.7_2
First let's make sure your kit is complete. Checking...
Would you like to see the instructions? [n]
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
Your builtin 'test -h' may be broken.
Trying external '/bin/test -h'.
You can test for symbolic links with '/bin/test -h'.
Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
3b1 dos_djgpp irix_6_0 nonstopux sunos_4_0
aix dynix irix_6_1 openbsd sunos_4_1
aix_3 dynixptx isc opus super-ux
aix_4 epix isc_2 os2 svr4
altos486 esix4 linux os390 svr5
amigaos fps lynxos os400 ti1500
apollo freebsd machten posix-bc titanos
atheos genix machten_2 powerux ultrix_4
aux_3 gnu mint qnx umips
beos gnukfreebsd mips rhapsody unicos
bsdos gnuknetbsd mpc sco unicosmk
convexos greenhills mpeix sco_2_3_0 unisysdynix
cxux hpux ncr_tower sco_2_3_1 utekv
cygwin i386 netbsd sco_2_3_2 uts
darwin interix newsos4 sco_2_3_3 uwin
dcosx irix_4 next_3 sco_2_3_4 vmesa
dec_osf irix_5 next_3_0 solaris_2 vos
dgux irix_6 next_4 stellar
Which of these apply, if any? [freebsd]Some users have reported that Configure halts when testing for
the O_NONBLOCK symbol with a syntax error. This is apparently a
sh error. Rerunning Configure with ksh apparently fixes the
problem. Try
ksh Configure [your options]Operating system name? [freebsd]
Operating system version? [5.3-release-p18]
Build Perl for SOCKS? [n]
Use the PerlIO abstraction layer? [y]
Build a threading Perl? [n]
Build Perl for multiplicity? [n]
Use which C compiler? [cc]
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches? [/usr/lib /usr/local/lib]
What is the file extension used for shared libraries? [so]
Try to use long doubles if available? [n]
Checking for optional libraries...
What libraries to use? [-lnsl -lgdbm -lm -lcrypt -lutil]
What optimizer/debugger flag should be used? [-O -pipe ]
Any additional cc flags?
[-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.7/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[-pthread -Wl,-E -L/usr/local/lib]
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:#include <stdio.h>
int main() { printf("Ok\n"); return(0); }I used the command:
cc -o try -O -pipe -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.7/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -pthread -Wl,-E -L/usr/local/lib try.c -lnsl -lgdbm -lm -lcrypt -lutil
./tryand I got the following output:
/usr/bin/ld: cannot find -lnsl
I can't compile the test program.
You have a BIG problem. Shall I abort Configure [y]
Ok. Stopping Configure.
===> Script "Configure" failed unexpectedly.
Please report the problem to tobez@FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/perl5.8/work/perl-5.8.7/config.log" including the output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1Stop in /usr/ports/lang/perl5.8.
Че делать?
>>Народ, хелп.
>
>вероятно неудачно обновили порты, в целом непонятно что и как вы делаете
>
>и почему не собирается
Вот такие строчки нашел:Checking for optional libraries...
What libraries to use? [-lnsl -lgdbm -lm -lcrypt -lutil]Видимо нету этой самой -lnsl. Токо что это за библиотека?
>>>Народ, хелп.
>>
>>вероятно неудачно обновили порты, в целом непонятно что и как вы делаете
>>
>>и почему не собирается
>Вот такие строчки нашел:
>
>Checking for optional libraries...
>What libraries to use? [-lnsl -lgdbm -lm -lcrypt -lutil]
>
>Видимо нету этой самой -lnsl. Токо что это за библиотека?нету.
Ну очень странно с какого перепугу добавляется libnsl?
>Ну очень странно с какого перепугу добавляется libnsl?
Посмотрел на другом компе (freeBDS5.4):
What libraries to use? [-lm -lcrypt -lutil]
И все работает.
Как убрать использование -lnsl?
>>Ну очень странно с какого перепугу добавляется libnsl?
>Посмотрел на другом компе (freeBDS5.4):
>What libraries to use? [-lm -lcrypt -lutil]
>И все работает.
>Как убрать использование -lnsl?# make extract
# make config
после этого нужно смотреть configure и вероятно править егоps. а другой perl стоит в системе?
ldconfig -r | grep nsl ? (хотя откуда бы ей взяться в BSD?)
>ps. а другой perl стоит в системе?
>ldconfig -r | grep nsl ? (хотя откуда бы ей взяться в
>BSD?)
Не могу знать. Комп сейчас не доступен.
Но вроде выдавало такое:bash2-2.05b# pkg_info |grep perl
perl-5.6.2_2 Practical Extraction and Report Language
perl-5.8.7 Practical Extraction and Report Language
>>ps. а другой perl стоит в системе?
>>ldconfig -r | grep nsl ? (хотя откуда бы ей взяться в
>>BSD?)
>Не могу знать. Комп сейчас не доступен.
>Но вроде выдавало такое:
>
>bash2-2.05b# pkg_info |grep perl
>perl-5.6.2_2 Practical Extraction and Report
>Language
>perl-5.8.7 Practical Extraction
>and Report Languageну так ведь стоит же уже perl-5.8.7?
удали установленные (и вычисти из /etc/make.conf - строки касательно
perl'а) и попробуй снова собрать из портов, если не получится - возьми
пакет и установи из пакета, правда для freebsd-5.3 в пакетах perl5.8.5
>ну так ведь стоит же уже perl-5.8.7?
>удали установленные (и вычисти из /etc/make.conf - строки касательно
>perl'а) и попробуй снова собрать из портов, если не получится - возьми
>
>пакет и установи из пакета, правда для freebsd-5.3 в пакетах perl5.8.5Спасибо, попробую.
>удали установленные (и вычисти из /etc/make.conf - строки касательно
>perl'а) и попробуй снова собрать из портов, если не получится - возьми
>пакет и установи из пакета, правда для freebsd-5.3 в пакетах perl5.8.5
Удалил, но собирать не пробовал. Собрал на другом компе, а на своем сделал токо make install.
Вот токо libnsl установлена в системе:
bash-2.05b# ldconfig -r |grep nsl
85:-lnsl.1 => /usr/lib/libnsl.so.1
693:-lnsl.1 => /usr/local/lib/libnsl.so.1bash-2.05b# find /usr/ports/ -name "pkg-plist" -exec grep -H libnsl {} \;
/usr/ports/devel/agenda-static-libs/pkg-plist:mipsel-linux/lib/libnsl.a
/usr/ports/devel/linux_devtools/pkg-plist:usr/lib/libnsl.a
/usr/ports/devel/linux_devtools/pkg-plist:usr/lib/libnsl.so
/usr/ports/emulators/linux_base-8/pkg-plist:lib/libnsl-2.3.2.so
/usr/ports/emulators/linux_base-8/pkg-plist:lib/libnsl.so.1
/usr/ports/emulators/linux_base-debian/pkg-plist:lib/libnsl-2.2.5.so
/usr/ports/emulators/linux_base-debian/pkg-plist:lib/libnsl.so.1bash-2.05b# pkg_info |grep linux_base-8
linux_base-8-8.0_10 Base set of packages needed in Linux mode (for i386/amd64)