Skip to content

Build fails on powerpc-darwin #550

Open

Description

@barracuda156

With Xcode gcc:

*** Build Environment
Host     :  darwin10.8.0  (powerpc_macos)  
CC       :  /usr/bin/gcc-4.2
CFLAGS   : -fno-omit-frame-pointer -fno-strict-aliasing -pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
CPPFLAGS :-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -m64
LDFLAGS  :-L/opt/local/libexec/openssl3/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -framework OpenGL -arch ppc -m64
LIBS     : -L/opt/local/libexec/openssl3/lib
CXX      :  /usr/bin/g++-4.2  (Required only with FTGL and VOIP)
CXXFLAGS : -pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
prefix	 :  /opt/local
Verbose  :  no
Debug    :  no
Devmode  :  no
Revision :  "0"

*** Features (+Available   -Missing   !Disabled)
 - Compression        : -ZLIB
 - Graphics           : -X11  -JPG  -PNG  -XFT -FreeType 
 - Graphics3D         : -OpenGL  -GLU  -FTGL 
 - Concurrency        : -pthread
 - Audio              : -OpenAL  -alut ( -ogg  -vorbis ) | ( -SDL -SMPEG )
 - VOIP               : -voip -jvoip -jthread -jrtp
 - Database           : -odbc | -iodbc
 - SSL                : -ssl
 - Plugins
 + Compiler: no concurrency
 + Patterns
 ! Overloading

do make to continue the build
or make -j8 for parallel and faster build
--->  Building unicon
Executing:  cd "/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2" && /usr/bin/make -j2 -w 
make: Entering directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2'
/usr/bin/make -C src
make[1]: Entering directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src'
/usr/bin/make -C gdbm
/usr/bin/make -C libtp
make[2]: Entering directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src/libtp'
make[2]: Entering directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src/gdbm'
cp gdbm.h ../../rt/include/
Making all in uri
cp ndbm.h ../../rt/include/
make[3]: Entering directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src/libtp/uri'
   [TP URI] uri.c
   [GDBM] dbminit.c
   [TP URI] uri_file.c
   [GDBM] delete.c
   [TP URI] uri_fing.c
   [GDBM] fetch.c
   [TP URI] uri_ftp.c
   [GDBM] store.c
   [GDBM] seq.c
   [TP URI] uri_http.c
   [GDBM] close.c
   [TP URI] uri_pop.c
   [GDBM] dbmopen.c
   [TP URI] uri_mail.c
   [GDBM] dbmdelete.c
   [TP URI] uri_schm.c
rm -f liburi.a
../shtool/shtool arx -C ar rc liburi.a uri.o uri_file.o uri_fing.o uri_ftp.o uri_http.o uri_pop.o uri_mail.o uri_schm.o
   [GDBM] dbmfetch.c
   [GDBM] dbmstore.c
ranlib liburi.a
make[3]: Leaving directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src/libtp/uri'
Making the libtp library
make[3]: Entering directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src/libtp'
cp tp.h ../../rt/include/
cp uri/uri.h ../../rt/include/uri/
   [TP] tp.c
   [GDBM] dbmseq.c
In file included from tp.c:10:
util.h:15:4: error: #error need bzero(3) or memset(3)
util.h:23:4: error: #error need memcpy(3) or bcopy(3)
In file included from tp.c:10:
util.h:32: error: expected declaration specifiers or ‘...’ before numeric constant
util.h:32: error: expected declaration specifiers or ‘...’ before ‘__builtin_object_size’
util.h:32: warning: conflicting types for built-in function ‘__builtin___snprintf_chk’
make[3]: *** [tp.o] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src/libtp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src/libtp'
make[1]: *** [tp] Error 2
make[1]: *** Waiting for unfinished jobs....
   [GDBM] dbmclose.c
   [GDBM] dbmdirfno.c
   [GDBM] dbmpagfno.c
   [GDBM] dbmrdonly.c
   [GDBM] gdbmopen.c
   [GDBM] gdbmdelete.c
   [GDBM] gdbmfetch.c
   [GDBM] gdbmstore.c
   [GDBM] gdbmclose.c
   [GDBM] gdbmreorg.c
   [GDBM] gdbmseq.c
gdbmreorg.c:51: error: static declaration of ‘rename’ follows non-static declaration
/usr/include/stdio.h:286: error: previous declaration of ‘rename’ was here
gdbmreorg.c: In function ‘rename’:
gdbmreorg.c:53: error: argument ‘old_name’ doesn’t match prototype
/usr/include/stdio.h:286: error: prototype declaration
gdbmreorg.c:53: error: argument ‘new_name’ doesn’t match prototype
/usr/include/stdio.h:286: error: prototype declaration
make[2]: *** [gdbmreorg.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src/gdbm'
make[1]: *** [gdbm] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/unicon-60e72d87/work/unicon-13.2/src'
make: *** [allsrc] Error 2

With gcc 14.3.0:

*** Build Environment
Host     :  darwin10.8.0  (powerpc_macos)  
CC       :  /opt/local/bin/gcc-mp-14
CFLAGS   : -fno-omit-frame-pointer -fno-strict-aliasing -Wno-parentheses-equality -pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
CPPFLAGS :-I/opt/local/libexec/openssl3/include -isystem/opt/local/include -m64
LDFLAGS  :-L/opt/local/libexec/openssl3/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -framework OpenGL -arch ppc -m64
LIBS     : -L/opt/local/libexec/openssl3/lib
CXX      :  /opt/local/bin/g++-mp-14  (Required only with FTGL and VOIP)
CXXFLAGS : -pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
prefix	 :  /opt/local
Verbose  :  no
Debug    :  no
Devmode  :  no
Revision :  "0"

*** Features (+Available   -Missing   !Disabled)
 - Compression        : -ZLIB
 - Graphics           : -X11  -JPG  -PNG  -XFT -FreeType 
 - Graphics3D         : -OpenGL  -GLU  -FTGL 
 - Concurrency        : -pthread
 - Audio              : -OpenAL  -alut ( -ogg  -vorbis ) | ( -SDL -SMPEG )
 - VOIP               : -voip -jvoip -jthread -jrtp
 - Database           : -odbc | -iodbc
 - SSL                : -ssl
 - Plugins
 + Compiler: no concurrency
 + Patterns
 ! Overloading

do make to continue the build
or make -j8 for parallel and faster build
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  isalpha: found in unicon-13.2/config.log
--->  Building unicon
Executing:  cd "/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2" && /usr/bin/make -j2 -w 
make: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2'
/usr/bin/make -C src
make[1]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src'
/usr/bin/make -C gdbm
/usr/bin/make -C libtp
make[2]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src/gdbm'
cp gdbm.h ../../rt/include/
cp ndbm.h ../../rt/include/
make[2]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src/libtp'
Making all in uri
   [GDBM] dbminit.c
make[3]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src/libtp/uri'
gcc-mp-14: warning: '-m64' conflicts with '-arch ppc' ('-m64' ignored)
   [TP URI] uri.c
gcc-mp-14: warning: '-m64' conflicts with '-arch ppc' ('-m64' ignored)
In file included from ../h/config.h:52,
                 from dbminit.c:37:
../h/../h/auto.h:554:15: error: two or more data types in declaration specifiers
  554 | #define pid_t int
      |               ^~~
cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics
{standard input}:1:invalid .machine argument: ppc7400
make[2]: *** [dbminit.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src/gdbm'
make[1]: *** [gdbm] Error 2
make[1]: *** Waiting for unfinished jobs....
   [TP URI] uri_file.c
gcc-mp-14: warning: '-m64' conflicts with '-arch ppc' ('-m64' ignored)
{standard input}:1:invalid .machine argument: ppc7400
make[3]: *** [uri.o] Error 1
make[3]: *** Waiting for unfinished jobs....
{standard input}:1:invalid .machine argument: ppc7400
make[3]: *** [uri_file.o] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src/libtp/uri'
Making the libtp library
make[3]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src/libtp'
cp tp.h ../../rt/include/
   [TP] tp.c
cp uri/uri.h ../../rt/include/uri/
gcc-mp-14: warning: '-m64' conflicts with '-arch ppc' ('-m64' ignored)
   [TP] util.c
gcc-mp-14: warning: '-m64' conflicts with '-arch ppc' ('-m64' ignored)
In file included from ../h/config.h:52,
                 from tp.c:8:
../h/../h/auto.h:554:15: error: two or more data types in declaration specifiers
  554 | #define pid_t int
      |               ^~~
In file included from ../h/config.h:52,
                 from util.c:7:
../h/../h/auto.h:554:15: error: two or more data types in declaration specifiers
  554 | #define pid_t int
      |               ^~~
In file included from tp.c:10:
util.h:15:4: error: #error need bzero(3) or memset(3)
   15 | #  error need bzero(3) or memset(3)
      |    ^~~~~
util.h:23:4: error: #error need memcpy(3) or bcopy(3)
   23 | #  error need memcpy(3) or bcopy(3)
      |    ^~~~~
In file included from /usr/include/stdio.h:443,
                 from tp.c:6:
util.h:32:5: error: expected declaration specifiers or '...' before numeric constant
   32 | int snprintf(char *str, size_t size, const char *fmt,...);
      |     ^~~~~~~~
In file included from /usr/include/secure/_stdio.h:31:
util.h:32:5: error: expected declaration specifiers or '...' before '__builtin_object_size'
   32 | int snprintf(char *str, size_t size, const char *fmt,...);
      |     ^~~~~~~~
{standard input}:1:invalid .machine argument: ppc7400
cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics
make[3]: *** [tp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from util.c:8:
util.h:15:4: error: #error need bzero(3) or memset(3)
   15 | #  error need bzero(3) or memset(3)
      |    ^~~~~
util.h:23:4: error: #error need memcpy(3) or bcopy(3)
   23 | #  error need memcpy(3) or bcopy(3)
      |    ^~~~~
In file included from /usr/include/stdio.h:443,
                 from ../h/sys.h:16,
                 from util.h:9:
util.h:32:5: error: expected declaration specifiers or '...' before numeric constant
   32 | int snprintf(char *str, size_t size, const char *fmt,...);
      |     ^~~~~~~~
In file included from /usr/include/secure/_stdio.h:31:
util.h:32:5: error: expected declaration specifiers or '...' before '__builtin_object_size'
   32 | int snprintf(char *str, size_t size, const char *fmt,...);
      |     ^~~~~~~~
util.c:89:2: error: #error snprintf(3) or vsprintf(3) required
   89 | #error snprintf(3) or vsprintf(3) required
      |  ^~~~~
cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics
{standard input}:1:invalid .machine argument: ppc7400
make[3]: *** [util.o] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src/libtp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src/libtp'
make[1]: *** [tp] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-13.2/src'
make: *** [allsrc] Error 2

Activity

  1. Jafaral commented on Mar 28, 2026

    @Jafaral
    Member

    Thank you for the report. I no longer have access to a powerpc machine, so it is hard to reproduce and fix on my end. What is your configure line?

    also please share the output of your configure step, not just the summary.

  2. Jafaral commented on Mar 28, 2026

    @Jafaral
    Member

    I pushed a fix at the config level for this. Not sure if will fix all issues you are seeing, here, but it will at least detect PPC correctly. Can you please test and share your results?

  3. barracuda156 commented on Mar 28, 2026

    @barracuda156
    Author

    @Jafaral Thank you, detection works now. I added legacy-support dependency to pick the functions which the build complained about, but got this error now:

    --->  Configuring unicon
    Warning: ccache_dir /opt/local/var/macports/build/.ccache could not be initialized; disabling ccache: couldn't execute "ccache": no such file or directory
    Executing:  cd "/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf" && ./configure --prefix=/opt/local 
    checking build system type... powerpc-apple-darwin10.8.0
    checking host system type... powerpc-apple-darwin10.8.0
    ##########################################
    Configuring Unicon Host: ppc_macos
    ##########################################
    checking for gcc... /opt/local/bin/gcc-mp-14
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether the compiler supports GNU C... yes
    checking whether /opt/local/bin/gcc-mp-14 accepts -g... yes
    checking for /opt/local/bin/gcc-mp-14 option to enable C11 features... none needed
    checking for stdio.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for strings.h... yes
    checking for sys/stat.h... yes
    checking for sys/types.h... yes
    checking for unistd.h... yes
    checking for wchar.h... yes
    checking for minix/config.h... no
    checking for vfork.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking whether _XOPEN_SOURCE should be defined... no
    checking whether /opt/local/bin/gcc-mp-14 supports -std=c11... yes
    checking whether /opt/local/bin/gcc-mp-14 supports -m32... yes
    checking whether /opt/local/bin/gcc-mp-14 supports -fno-omit-frame-pointer... yes
    checking whether /opt/local/bin/gcc-mp-14 supports -fno-strict-aliasing... yes
    checking whether /opt/local/bin/gcc-mp-14 supports -Werror -Wno-parentheses-equality... yes
    checking for gcc... (cached) /opt/local/bin/gcc-mp-14
    checking whether the compiler supports GNU C... (cached) yes
    checking whether /opt/local/bin/gcc-mp-14 accepts -g... (cached) yes
    checking for /opt/local/bin/gcc-mp-14 option to enable C11 features... (cached) none needed
    checking whether the compiler supports GNU C++... yes
    checking whether /opt/local/bin/g++-mp-14 accepts -g... yes
    checking for /opt/local/bin/g++-mp-14 option to enable C++11 features... none needed
    checking how to run the C preprocessor... /opt/local/bin/gcc-mp-14 -E
    checking for ranlib... ranlib
    checking for socket in -lsocket... no
    checking for gethostbyname in -lnsl... no
    checking for errno.h... yes
    checking for netdb.h... yes
    checking for unistd.h... (cached) yes
    checking for strings.h... (cached) yes
    checking for arpa/inet.h... yes
    checking for net/errno.h... no
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for fcntl.h... yes
    checking for memory.h... yes
    checking for sys/file.h... yes
    checking for sys/resource.h... yes
    checking for netinet/in.h... yes
    checking for sys/errno.h... yes
    checking for sys/socket.h... yes
    checking for sys/types.h... (cached) yes
    checking size of int... 4
    checking size of long int... 4
    checking size of long long int... 8
    checking size of int *... 4
    checking whether byte ordering is bigendian... yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for off_t... yes
    checking for ssize_t... yes
    checking for socket... yes
    checking for bcopy... yes
    checking for bzero... yes
    checking for memcpy... yes
    checking for memset... yes
    checking for inet_aton... yes
    checking for inet_pton... yes
    checking for snprintf... yes
    checking for vsprintf... yes
    checking for rename... yes
    checking for ftruncate... yes
    checking for flock... yes
    checking for fsync... yes
    checking for getrlimit... yes
    checking for setrlimit... yes
    checking for strerror... yes
    checking for vfork... yes
    checking for getrusage... yes
    checking for sysconf... yes
    checking for profil... yes
    checking for getenv_r... no
    checking for clock_gettime... yes
    checking for ctime_r... yes
    checking for asctime_r... yes
    checking for gmtime_r... yes
    checking for localtime_r... yes
    checking for /opt/local/bin/gcc-mp-14 options needed to detect all undeclared functions... none needed
    checking whether strerror_r is declared... yes
    checking whether strerror_r returns char *... no
    checking for getopt... yes
    checking for pid_t... yes
    checking for fork... yes
    checking for vfork... (cached) yes
    checking for working fork... yes
    checking for working vfork... (cached) yes
    checking for main in -ldbm... yes
    checking for main in -lndbm... no
    checking for sqlite3.h... yes
    checking for sqlite3_config in -lsqlite3... yes
    checking for library containing getaddrinfo... none required
    checking for library containing crypt... none required
    checking if zlib is wanted... yes
    checking for zlib.h... yes
    checking for library containing inflateEnd... -lz
    checking if xlib is wanted... yes
    checking for X11/Xlib.h... yes
    checking for X11/Xos.h... yes
    checking for X11/Xutil.h... yes
    checking for X11/Xatom.h... yes
    checking for X11/Xlib.h... (cached) yes
    checking for X11/Xos.h... (cached) yes
    checking for X11/Xutil.h... (cached) yes
    checking for X11/Xatom.h... (cached) yes
    checking for library containing XAllocColorCells... -lX11
    checking if freetype is wanted... yes
    checking for freetype/fttypes.h... no
    checking checking lib freetype in ()... failed
    checking if Xft is wanted... yes
    checking for X11/Xft/Xft.h... no
    checking checking lib Xft in ()... failed
    checking if jpeg is wanted... yes
    checking for jpeglib.h... yes
    checking for jerror.h... yes
    checking for library containing jpeg_destroy_decompress... -ljpeg
    checking if png is wanted... yes
    checking for png.h... yes
    checking for library containing png_read_image... -lpng
    checking if opengl is wanted... yes
    checking for GL/gl.h... yes
    checking for GL/glu.h... no
    checking for glAccum in -lGL... yes
    checking for gluBeginCurve in -lGLU... no
    checking for GL/glx.h... yes
    checking checking lib OpenGL... failed
    FTGL: missing or untrusted C++; CXX is /opt/local/bin/g++-mp-14 and GXX is yes
    Building with graphics...
    Native coswitch detected
    checking for library containing dlopen... none required
    checking for lxc_get_version in -llxc... no
    checking if ogg is wanted... yes
    checking for ogg/ogg.h... yes
    checking for library containing oggpack_write... -logg
    checking for vorbis/codec.h... yes
    checking for library containing vorbis_info_init... -lvorbis
    checking for vorbis/vorbisfile.h... yes
    checking for library containing ov_open... -lvorbisfile
    checking if SDL is wanted... yes
    checking for SDL/SDL_audio.h... no
    checking checking lib SDL in ()... failed
    checking if smpeg is wanted... yes
    checking for smpeg.h... no
    checking checking lib smpeg in ()... failed
    checking if openal is wanted... yes
    checking for AL/al.h... no
    checking checking lib openal in ()... failed
    checking for AL/alut.h... no
    checking checking lib alut in ()... failed
    VOIP: missing or untrusted C++; CXX is /opt/local/bin/g++-mp-14 and GXX is yes
    checking if odbc is wanted... yes
    checking for sqlext.h... yes
    checking for library containing SQLAllocConnect... -liodbc
    checking if pthread is wanted... yes
    checking for pthread.h... yes
    checking for library containing pthread_create... none required
    checking if ssl is wanted... yes
    checking for openssl/bio.h... yes
    checking for library containing BIO_read... -lcrypto
    checking for openssl/ssl.h... yes
    checking for library containing SSL_library_init... no
    checking checking lib ssl in ()... failed
    checking for openssl/ssl.h... (cached) yes
    checking for library containing OPENSSL_init_ssl... -lssl
    checking for global variable sys_nerr... yes
    checking for global variable sys_errlist... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for struct tm.tm_zone... yes
    checking for timezone external... yes
    checking for altzone external... no
    checking for daylight external... yes
    checking for struct tm.tm_zone... (cached) yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating Makedefs
    config.status: creating Makedefs.uni
    config.status: creating src/h/auto.h
    --------------------------------------------------
        Unicon 13.3 Configuration Summary
    --------------------------------------------------
    *** Build Environment
    Host     :  darwin10.8.0  (ppc_macos)  
    CC       :  /opt/local/bin/gcc-mp-14
    CFLAGS   : -std=c11 -m32 -fno-omit-frame-pointer -fno-strict-aliasing -Wno-parentheses-equality -pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
    CPPFLAGS :-I/opt/local/libexec/openssl3/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -I/usr/local/include -I/usr/include/freetype2 
    LDFLAGS  :-L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -framework OpenGL -L/opt/local/lib -lMacportsLegacySupport -arch ppc -m32 -L/usr/local/lib
    LIBS     : -lssl -lcrypto -liodbc -lvorbisfile -lvorbis -logg -lpng -ljpeg -lX11 -lz -ldbm -L/opt/local/libexec/openssl3/lib
    CXX      :  /opt/local/bin/g++-mp-14  (Required only with FTGL and VOIP)
    CXXFLAGS : -pipe -I/opt/local/libexec/openssl3/include -Os -arch ppc
    CFDYN    : -fPIC  
    LDDYN    : -Xlinker -undefined -Xlinker dynamic_lookup -shared 
    prefix   :  /opt/local
    Verbose  :  no
    Debug    :  no  
    Warnings :  no
    Werror   :  no
    Devmode  :  no
    Revision :  "0"
    
    *** Features (+Available   -Missing   !Disabled)
     + Compression        : +ZLIB
     + Graphics           : +X11  +JPG  +PNG  -XFT -FreeType 
     - Graphics3D         : +OpenGL  -GLU  -FTGL 
     + Concurrency        : +pthread
     - Audio              : -OpenAL  -alut ( +ogg  +vorbis ) | ( -SDL -SMPEG )
     - VOIP               : -voip -jvoip -jthread -jrtp
     + Database           : +iodbc
     + SSL                : +ssl
     + Plugins
     + Compiler: no concurrency
     + Patterns
     ! Overloading
    
    do make to continue the build
    or make -j8 for parallel and faster build
    --->  Building unicon
    Executing:  cd "/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf" && /usr/bin/make -j2 -w 
    make: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf'
    /usr/bin/make -C src
    make[1]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src'
    /usr/bin/make -C xpm/lib
    /usr/bin/make -C gdbm
    make[2]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/xpm/lib'
    make[2]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/gdbm'
    cp -f gdbm.h ../../rt/include/
       [XPM] data.c
    cp -f ndbm.h ../../rt/include/
       [GDBM] dbminit.c
       [GDBM] delete.c
       [GDBM] fetch.c
       [GDBM] store.c
       [XPM] create.c
       [GDBM] seq.c
       [GDBM] close.c
       [GDBM] dbmopen.c
       [GDBM] dbmdelete.c
       [GDBM] dbmfetch.c
       [GDBM] dbmstore.c
       [GDBM] dbmseq.c
       [GDBM] dbmclose.c
       [GDBM] dbmdirfno.c
       [GDBM] dbmpagfno.c
       [GDBM] dbmrdonly.c
       [GDBM] gdbmopen.c
       [XPM] misc.c
       [GDBM] gdbmdelete.c
       [XPM] rgb.c
       [GDBM] gdbmfetch.c
       [XPM] scan.c
       [GDBM] gdbmstore.c
       [GDBM] gdbmclose.c
       [GDBM] gdbmreorg.c
       [GDBM] gdbmseq.c
       [XPM] parse.c
       [GDBM] gdbmsync.c
       [GDBM] gdbmerrno.c
       [GDBM] gdbmexists.c
       [GDBM] gdbmsetopt.c
       [GDBM] bucket.c
       [XPM] hashtab.c
       [GDBM] falloc.c
       [XPM] WrFFrP.c
       [XPM] RdFToP.c
       [GDBM] findkey.c
       [XPM] CrPFrDat.c
       [GDBM] global.c
       [GDBM] hash.c
       [XPM] CrDatFrP.c
       [GDBM] update.c
       [XPM] WrFFrI.c
       [GDBM] version.c
    rm -f libgdbm.a
    ar q libgdbm.a dbminit.o delete.o fetch.o store.o seq.o close.o dbmopen.o dbmdelete.o dbmfetch.o dbmstore.o dbmseq.o dbmclose.o dbmdirfno.o dbmpagfno.o dbmrdonly.o gdbmopen.o gdbmdelete.o gdbmfetch.o  gdbmstore.o gdbmclose.o gdbmreorg.o gdbmseq.o gdbmsync.o gdbmerrno.o gdbmexists.o gdbmsetopt.o bucket.o falloc.o findkey.o global.o hash.o update.o version.o 
    ar: creating archive libgdbm.a
    ranlib libgdbm.a
    cp -f libgdbm.a ../../rt/lib/
    make[2]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/gdbm'
    /usr/bin/make -C libtp
    make[2]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/libtp'
    Making all in uri
    make[3]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/libtp/uri'
       [TP URI] uri.c
       [XPM] RdFToI.c
       [TP URI] uri_file.c
       [XPM] CrIFrDat.c
       [TP URI] uri_fing.c
       [TP URI] uri_ftp.c
       [XPM] CrDatFrI.c
       [TP URI] uri_http.c
       [TP URI] uri_pop.c
       [XPM] CrIFrBuf.c
       [TP URI] uri_mail.c
       [XPM] CrPFrBuf.c
       [TP URI] uri_schm.c
    rm -f liburi.a
    ../shtool/shtool arx -C ar rc liburi.a uri.o uri_file.o uri_fing.o uri_ftp.o uri_http.o uri_pop.o uri_mail.o uri_schm.o
       [XPM] CrBufFrI.c
    ranlib liburi.a
    make[3]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/libtp/uri'
    Making the libtp library
    make[3]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/libtp'
    cp -f tp.h ../../rt/include/
    cp -f uri/uri.h ../../rt/include/uri/
       [TP] tp.c
    In file included from /usr/include/sql.h:92,
                     from /usr/include/sqlext.h:82,
                     from ../h/sys.h:330,
                     from util.h:9,
                     from tp.c:9:
    /usr/include/iodbcunix.h:136:33: error: conflicting types for 'BOOL'; have 'int'
      136 | typedef int                     BOOL;
          |                                 ^~~~
    In file included from ../h/sys.h:269:
    /opt/local/include/X11/Xmd.h:124:25: note: previous declaration of 'BOOL' with type 'BOOL' {aka 'unsigned char'}
      124 | typedef CARD8           BOOL;
          |                         ^~~~
       [XPM] CrBufFrP.c
    cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics
       [XPM] RdFToDat.c
    make[3]: *** [tp.o] Error 1
    make[3]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/libtp'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/libtp'
    make[1]: *** [tp] Error 2
    make[1]: *** Waiting for unfinished jobs....
       [XPM] WrFFrDat.c
       [XPM] Attrib.c
       [XPM] CrIFrP.c
       [XPM] CrPFrI.c
       [XPM] Image.c
       [XPM] Info.c
       [XPM] RdFToBuf.c
       [XPM] WrFFrBuf.c
    rm -f libXpm.a
    ar qc libXpm.a data.o create.o misc.o rgb.o scan.o parse.o hashtab.o WrFFrP.o RdFToP.o CrPFrDat.o CrDatFrP.o WrFFrI.o RdFToI.o CrIFrDat.o CrDatFrI.o CrIFrBuf.o CrPFrBuf.o CrBufFrI.o CrBufFrP.o RdFToDat.o WrFFrDat.o Attrib.o CrIFrP.o CrPFrI.o Image.o Info.o RdFToBuf.o WrFFrBuf.o
    cp -f libXpm.a ../../../rt/lib
    cp -f xpm.h ../../../rt/include
    make[2]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/xpm/lib'
    make[1]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src'
    make: *** [allsrc] Error 2
    
  4. barracuda156 commented on Mar 28, 2026

    @barracuda156
    Author

    It fails identically with a modern libiodbc from MacPorts:

    make[3]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/libtp'
    cp -f tp.h ../../rt/include/
    cp -f uri/uri.h ../../rt/include/uri/
       [TP] tp.c
       [XPM] CrBufFrP.c
    In file included from /opt/local/include/sqltypes.h:92,
                     from /opt/local/include/sql.h:89,
                     from /opt/local/include/sqlext.h:82,
                     from ../h/sys.h:330,
                     from util.h:9,
                     from tp.c:9:
    /opt/local/include/iodbcunix.h:136:33: error: conflicting types for 'BOOL'; have 'int'
      136 | typedef int                     BOOL;
          |                                 ^~~~
    In file included from ../h/sys.h:269:
    /opt/local/include/X11/Xmd.h:124:25: note: previous declaration of 'BOOL' with type 'BOOL' {aka 'unsigned char'}
      124 | typedef CARD8           BOOL;
          |                         ^~~~
       [XPM] RdFToDat.c
       [XPM] WrFFrDat.c
    cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics
    make[3]: *** [tp.o] Error 1
    
  5. barracuda156 commented on Mar 28, 2026

    @barracuda156
    Author

    Fixed by removing a special case for macOS in h/sys.h. This does not work:

    #ifndef BOOL
      /* to prevent double-typedef of BOOL on some platforms */
    #ifdef MacOS
    //#define BOOL rumplemacskin
    #else
      #define BOOL int
    #endif
    #endif
    

    This works:

    #ifndef BOOL
      #define BOOL int
    #endif
    

    Eventually fails here, because the build arbitrarily picks a wrong compiler (gcc14 accepts the flag, of course):

    /opt/local/bin/gcc-mp-14 -L../../rt/lib -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -framework OpenGL -L/opt/local/lib -lMacportsLegacySupport -arch ppc -m32 -L/usr/local/lib   -L../../bin -o iconx  xcnv.o     xdata.o    xdef.o     xerrmsg.o  xextcall.o xfconv.o xfload.o   xfmath.o   xfmisc.o   xfmonitr.o xfscan.o   xfstr.o xfstranl.o xfstruct.o xfsys.o    xfwindow.o ximain.o   ximisc.o xinit.o    xinterp.o  xinvoke.o  xfdb.o     xkeyword.o xlmisc.o xoarith.o  xoasgn.o   xocat.o    xocomp.o	xomisc.o   xoref.o xoset.o    xovalue.o  xralc.o    xrcoexpr.o xrcomp.o   xrdb.o xrdebug.o  xrlocal.o  xrlrgint.o xrmemmgt.o xrmisc.o   xrstruct.o xrsys.o    xrgfxsys.o xrwinsys.o xrwindow.o xfxtra.o   xrwinrsc.o xrposix.o  xrmsg.o    xraudio.o  -L/opt/X11/lib -L/usr/X11R6/lib -L/usr/local/lib -lXpm -lX11 -L../../rt/lib -ltp -lgdbm -lucommon -lssl -lcrypto -liodbc -lvorbisfile -lvorbis -logg -lpng -ljpeg -lX11 -lz -ldbm -L/opt/local/libexec/openssl3/lib -lm  -ldl  -lXpm -L/opt/X11/lib -L/usr/X11R6/lib -L/usr/local/lib -lXpm -lX11   -luconsole
    ld: warning: directory not found for option '-L/usr/local/lib'
    ld: warning: directory not found for option '-L/opt/X11/lib'
    ld: warning: directory not found for option '-L/usr/X11R6/lib'
    ld: warning: directory not found for option '-L/usr/local/lib'
    ld: warning: directory not found for option '-L/opt/X11/lib'
    ld: warning: directory not found for option '-L/usr/X11R6/lib'
    ld: warning: directory not found for option '-L/usr/local/lib'
    cp -f iconx ../../bin
    strip -x ../../bin/iconx;
    make[3]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/runtime'
    make[2]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/runtime'
    /usr/bin/make -C icont
    rm -f iconc/*.o
    rm -f common/doincl
    make[2]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/icont'
    /usr/bin/make -j1 -C runtime comp_all_uniconc
       [ICONT] tmain.c
    make[2]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/runtime'
    make[2]: warning: -jN forced in submake: disabling jobserver mode.
       [ICONC] This might take a while...
    /usr/bin/make rt.a
    make[3]: Entering directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/runtime'
       [ICONC RTT] cnv.r
    cc1: error: unrecognized command line option "-Wno-parentheses-equality"
    cc1: error: unrecognized command line option "-std=c11"
    creating new data base: rt.db
    make[3]: *** [cnv.o] Error 1
    make[3]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/runtime'
    make[2]: *** [comp_all_uniconc] Error 2
    make[2]: Leaving directory `/opt/local/var/macports/build/unicon-d3799768/work/unicon-1cc89bc6d1458f3dd221a1d4e7f4724d5d556aaf/src/runtime'
    make[1]: *** [Iconc] Error 2
    make[1]: *** Waiting for unfinished jobs....
    
  6. ryandesign commented on Mar 30, 2026

    @ryandesign
    Contributor

    If you configure with --enable-verbosebuild, your build log will more clearly show that the build is using cc here instead of the compiler found by (or provided to) the configure script. [ICON RTT] cnv.r is being built by running ../../bin/urtt, which apparently runs cc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions