• Error compiling on OpenBSD 6.8

    From Roderick@21:1/5 to All on Thu Nov 19 19:27:55 2020
    With gcc 8.4.0.

    The gcc of my OpenBSD is broken. And since I cannot change the
    compiler when calling the config script, I linked gcc in directory
    from path to the above gcc.

    I get the error below when compiling.

    Thanks for any hint
    Rod.

    ---

    Making all in osdep
    /bin/sh ../libtool --tag=CC --mode=link gcc -pthread -g -O2 -L/usr/lib -o pico main.o utf8stub.o ../c-client/utf8.o libpico.a osdep/libpicoosd.a ../pith/osdep/libpithosd.a ../pith/charconv/libpithcc.a -ltcl86 -lssl -lcrypto -lncurses
    libtool: link: gcc -pthread -g -O2 -o pico main.o utf8stub.o ../c-client/utf8.o -L/usr/lib libpico.a osdep/libpicoosd.a ../pith/osdep/libpithosd.a ../pith/charconv/libpithcc.a -ltcl86 -lssl -lcrypto -lncurses -pthread
    ld: error: display.c:(.debug_info+0x30171): has non-ABS relocation R_386_GOTOFF against symbol 'menu_pico'
    collect2: error: ld returned 1 exit status
    *** Error 1 in pico (Makefile:527 'pico')
    *** Error 1 in pico (Makefile:618 'all-recursive': @fail=; if (target_option=k; case ${target_option-} in ?) ;; *) echo "am__make_running...)
    *** Error 1 in /usr/opt/Alpine/src (Makefile:563 'all-recursive': @fail=; if (target_option=k; case ${target_option-} in ?) ;; *) echo "a...)
    gmake: *** [Makefile:427: all] Error 2

    -
  • From Roderick@21:1/5 to All on Thu Nov 19 20:05:00 2020
    I also get the error also with alpine-2.21 that compiled before the
    upgrade of OpenBSD.

    Rod.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roderick@21:1/5 to All on Thu Nov 19 21:02:59 2020
    Now the problem is solved.

    While "configure CC=cc" use gcc and does not change the compiler,
    "env CC=cc configure" does it.

    And compiling with OpenBSD cc (clang) I get it without problem.

    Rod.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Davis@21:1/5 to hruodr@gmail.com on Mon Nov 23 08:27:38 2020
    In article <alpine.BSF.2.23.453.2011192100130.1238@fbsd.local>,
    Roderick <hruodr@gmail.com> wrote:

    Now the problem is solved.

    While "configure CC=cc" use gcc and does not change the compiler,
    "env CC=cc configure" does it.

    ...

    This is what the configure script indicates that you should
    do. "./configure --help" shows:

    Some influential environment variables:
    CC C compiler command
    CFLAGS C compiler flags
    LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
    nonstandard directory <lib dir>
    LIBS libraries to pass to the linker, e.g. -l<library>
    CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
    you have headers in a nonstandard directory <include dir>
    LT_SYS_LIBRARY_PATH
    User-defined run-time library search path.
    CPP C preprocessor

    Use these variables to override the choices made by `configure' or to help
    it to find libraries and programs with nonstandard names/locations.


    You appear to be using alpine2.23. Version 2.24 is now released
    and can be downloaded from:

    http://alpine.x10host.com/alpine/
    --
    Dennis Davis <dennisdavis@fastmail.fm>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)