Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Problem building on Solaris 10

Help
2005-08-22
2012-10-25
  • Daniel Berger
    Daniel Berger
    2005-08-22

    Hi,

    Solaris 10
    gcc 3.4.4
    Sun's make

    When I try to build CUnit 2.02 it dies during the "make" stage:

    djberge@~/local/src/C/CUnit-2.0-2-553>make
    cd . && autoheader
    cd . \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ /bin/bash ./config.status
    config.status: creating config.h
    config.status: executing default-1 commands
    make all-recursive
    Making all in CUnit
    Making all in Sources
    Making all in Framework
    mksh: Fatal error in reader: = missing from replacement macro reference
    Current working directory /export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Sources/Framework
    Error code 1
    The following command caused the error:
    set fnord ; amf=$2; \ dot_seen=no; \ target=echo all-recursive | sed s/-recursive//; \ list='Framework Automated Basic Console Curses . Test'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || case "$amf" in
    =) exit 1;; k) fail=yes;; *) exit 1;; esac; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail"
    make: Fatal error: Command failed for target all-recursive' Current working directory /export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Sources *** Error code 1 The following command caused the error: set fnord ; amf=$2; \ dot_seen=no; \ target=echo all-recursive | sed s/-recursive//; \ list='Sources Headers'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for targetall-recursive'
    Current working directory /export/home/djberge/local/src/C/CUnit-2.0-2/CUnit
    Error code 1
    The following command caused the error:
    set fnord ; amf=$2; \ dot_seen=no; \ target=echo all-recursive | sed s/-recursive//; \ list='CUnit Examples doc Man Share'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || case "$amf" in =) exit 1;; k) fail=yes;; *) exit 1;; esac; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail"
    make: Fatal error: Command failed for target all-recursive' Current working directory /export/home/djberge/local/src/C/CUnit-2.0-2 *** Error code 1 make: Fatal error: Command failed for targetall-recursive-am'

    I got further using gmake, but it died trying to link against curses.

    gcc -Wall -DRELEASE=2 -Wall -W -pedantic -Wshadow -ansi -I/export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Headers -L/export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Sources -o CursesTest -L.. CursesTest.o -lcunit -lcunitexamples -lncurses -lc
    Undefined first referenced
    symbol in file
    box32 /export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Sources/libcunit.a(Curses.o)
    initscr32 /export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Sources/libcunit.a(Curses.o)
    w32attron /export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Sources/libcunit.a(Curses.o)
    w32attroff /export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Sources/libcunit.a(Curses.o)
    w32attrset /export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Sources/libcunit.a(Curses.o)
    acs32map /export/home/djberge/local/src/C/CUnit-2.0-2/CUnit/Sources/libcunit.a(Curses.o)
    ld: fatal: Symbol referencing errors. No output written to CursesTest
    collect2: ld returned 1 exit status
    gmake[3]: [CursesTest] Error 1
    gmake[3]: Leaving directory /export/home/djberge/local/src/C/CUnit-2.0-2/Examples/CursesTest' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory/export/home/djberge/local/src/C/CUnit-2.0-2/Examples'
    gmake[1]:
    [all-recursive] Error 1
    gmake[1]: Leaving directory `/export/home/djberge/local/src/C/CUnit-2.0-2'
    gmake: *** [all-recursive-am] Error 2

    I only have ncurses.

    Thought or ideas?

    Thanks.

    Dan

     
    • jpsc986_hj
      jpsc986_hj
      2005-10-04

      Under cygwin - running ./configure getting me the following (?) at the end of the configure run
      :
      checking for stdlib.h... (cached) yes
      checking for string.h... (cached) yes
      checking for an ANSI C-conforming const... yes
      configure: creating ./config.status
      config.status: creating Jamrules
      config.status: creating Makefile
      config.status: creating \ .infig.status: error: cannot find input file: \

      and during a make - I would get these

      $ make
      cd . && /bin/sh ./config.status config.h
      config.status: creating config.h
      config.status: config.h is unchanged
      make all-recursive
      make[1]: Entering directory /home/jp/CUnit-2.0-2' Making all in CUnit make[2]: Entering directory/home/jp/CUnit-2.0-2/CUnit'
      make[2]: No rule to make target all'. Stop. make[2]: Leaving directory/home/jp/CUnit-2.0-2/CUnit'
      make[1]:
      [all-recursive] Error 1
      make[1]: Leaving directory `/home/jp/CUnit-2.0-2'
      make: *** [all] Error 2

      Any suggestions?