grep-2.7

Polecenie grep służy do przeszukiwania pliku lub plików wejściowych w poszukiwaniu wierszy zawierających określony wzorzec. Domyślnie grep wypisuje pasujące wiersze na wyjście standardowe.

Poniżej zapis sesji konfiguracji i kompilacji programu grep 2.7. Skrypt w załączeniu.


soft@wega:~/grep% ./drf_grep-2.7_conf 
cc: Sun C 5.10 SunOS_sparc 2009/06/03
usage: cc [ options] files.  Use 'cc -flags' for details
MANPATH=/usr/local/share/man:/usr/local/man:/usr/share/man
PATH=/usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin
CFLAGS=-fast -features=extensions
CPPFLAGS=-I/usr/local/include
CXXFLAGS=-fast -features=extensions
LDFLAGS=-L/usr/local/lib -R/usr/local/lib
=============================================
dmake clean [y|n] ?
n
=============================================

Konfiguracja:


configure [y|n] ?
y
...
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
=============================================

Kompilacja:


dmake [y|n] ?
y
dmake  all-recursive
Making all in po
Making all in lib
  GEN      arg-nonnull.h
  GEN      c++defs.h
  GEN      configmake.h
  GEN      warn-on-use.h
  GEN      ctype.h
...
dmake  all-recursive
Making all in .
Compilation successful
=============================================

Testowanie:


dmake check [y|n] ?
y
Making check in po
Making check in lib
dmake  check-recursive
Making check in doc
Making check in src
Making check in tests
dmake  get-mb-cur-max
  CC       get-mb-cur-max.o
  CCLD     get-mb-cur-max
dmake  check-TESTS
PASS: backref
PASS: backref-word
...
FAIL: test-exclude2.sh
...
FAIL: test-exclude5.sh
...
FAIL: test-update-copyright.sh
...
=================================
3 of 73 tests failed
(16 tests were not run)
See gnulib-tests/test-suite.log
Please report to bug-grep(-at-)gnu.org
=================================
...

Podczas przeszukiwania sieci natknąłem się na posty dotyczące błędów kompilacji grep 2.7 na Solarisie, natknąłem się na jakieś fixy i okazało się, że wyszła już nowsza wersja 2.8. Zatem od razu zabiorę się za jej kompilację i zamieszczę opis.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.