[MacPorts] #65700: thttpd fails to respect Macports arch settings

MacPorts noreply at macports.org
Sat Aug 20 14:28:58 UTC 2022


#65700: thttpd fails to respect Macports arch settings
-------------------------------------------+--------------------
 Reporter:  barracuda156                   |      Owner:  (none)
     Type:  defect                         |     Status:  new
 Priority:  Normal                         |  Milestone:
Component:  ports                          |    Version:  2.7.2
 Keywords:  powerpc, rosetta, snowleopard  |       Port:  thttpd
-------------------------------------------+--------------------
 Build on Rosetta fails with:
 {{{
 --->  Building thttpd
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_thttpd/thttpd/work/thttpd-2.29"
 && /usr/bin/make -j1 -w all
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_thttpd/thttpd/work/thttpd-2.29'
 /usr/bin/gcc-4.2 -O2 -DHAVE__PROGNAME=1 -DHAVE_FCNTL_H=1 -DHAVE_GRP_H=1
 -DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1 -DHAVE_POLL_H=1 -DHAVE_SYS_POLL_H=1
 -DHAVE_SYS_EVENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_DIRENT_H=1
 -DHAVE_STRERROR=1 -DHAVE_WAITPID=1 -DHAVE_VSNPRINTF=1 -DHAVE_DAEMON=1
 -DHAVE_SETSID=1 -DHAVE_SETLOGIN=1 -DHAVE_GETADDRINFO=1
 -DHAVE_GETNAMEINFO=1 -DHAVE_GAI_STRERROR=1 -DHAVE_KQUEUE=1 -DHAVE_SIGSET=1
 -DHAVE_ATOLL=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
 -DHAVE_SELECT=1 -DHAVE_POLL=1 -DHAVE_TM_GMTOFF=1 -DHAVE_INT64T=1
 -DHAVE_SOCKLENT=1  -I. -c thttpd.c
 thttpd.c: In function ‘main’:
 thttpd.c:503: warning: ‘daemon’ is deprecated (declared at
 /usr/include/stdlib.h:289)
 rm -f mime_encodings.h
 sed < mime_encodings.txt > mime_encodings.h \
           -e 's/#.*//' -e 's/[  ]*$//' -e '/^$/d' \
           -e 's/[       ][      ]*/", 0, "/' -e 's/^/{ "/' -e 's/$/", 0
 },/'
 rm -f mime_types.h
 sed < mime_types.txt > mime_types.h \
           -e 's/#.*//' -e 's/[  ]*$//' -e '/^$/d' \
           -e 's/[       ][      ]*/", 0, "/' -e 's/^/{ "/' -e 's/$/", 0
 },/'
 /usr/bin/gcc-4.2 -O2 -DHAVE__PROGNAME=1 -DHAVE_FCNTL_H=1 -DHAVE_GRP_H=1
 -DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1 -DHAVE_POLL_H=1 -DHAVE_SYS_POLL_H=1
 -DHAVE_SYS_EVENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_DIRENT_H=1
 -DHAVE_STRERROR=1 -DHAVE_WAITPID=1 -DHAVE_VSNPRINTF=1 -DHAVE_DAEMON=1
 -DHAVE_SETSID=1 -DHAVE_SETLOGIN=1 -DHAVE_GETADDRINFO=1
 -DHAVE_GETNAMEINFO=1 -DHAVE_GAI_STRERROR=1 -DHAVE_KQUEUE=1 -DHAVE_SIGSET=1
 -DHAVE_ATOLL=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
 -DHAVE_SELECT=1 -DHAVE_POLL=1 -DHAVE_TM_GMTOFF=1 -DHAVE_INT64T=1
 -DHAVE_SOCKLENT=1  -I. -c libhttpd.c
 /usr/bin/gcc-4.2 -O2 -DHAVE__PROGNAME=1 -DHAVE_FCNTL_H=1 -DHAVE_GRP_H=1
 -DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1 -DHAVE_POLL_H=1 -DHAVE_SYS_POLL_H=1
 -DHAVE_SYS_EVENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_DIRENT_H=1
 -DHAVE_STRERROR=1 -DHAVE_WAITPID=1 -DH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VE_SYS_EVENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_DIRENT_H=1
 -DHAVE_STRERROR=1 -DHAVE_WAITPID=1 -DHAVE_VSNPRINTF=1 -DHAVE_DAEMON=1
 -DHAVE_SETSID=1 -DHAVE_SETLOGIN=1 -DHAVE_GETADDRINFO=1
 -DHAVE_GETNAMEINFO=1 -DHAVE_GAI_STRERROR=1 -DHAVE_KQUEUE=1 -DHAVE_SIGSET=1
 -DHAVE_ATOLL=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
 -DHAVE_SELECT=1 -DHAVE_POLL=1 -DHAVE_TM_GMTOFF=1 -DHAVE_INT64T=1
 -DHAVE_SOCKLENT=1  -I. -c tdate_parse.c
 /usr/bin/gcc-4.2 -O2 -DHAVE__PROGNAME=1 -DHAVE_FCNTL_H=1 -DHAVE_GRP_H=1
 -DHAVE_MEMORY_H=1 -DHAVE_PATHS_H=1 -DHAVE_POLL_H=1 -DHAVE_SYS_POLL_H=1
 -DHAVE_SYS_EVENT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_DIRENT_H=1
 -DHAVE_STRERROR=1 -DHAVE_WAITPID=1 -DHAVE_VSNPRINTF=1 -DHAVE_DAEMON=1
 -DHAVE_SETSID=1 -DHAVE_SETLOGIN=1 -DHAVE_GETADDRINFO=1
 -DHAVE_GETNAMEINFO=1 -DHAVE_GAI_STRERROR=1 -DHAVE_KQUEUE=1 -DHAVE_SIGSET=1
 -DHAVE_ATOLL=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
 -DHAVE_SELECT=1 -DHAVE_POLL=1 -DHAVE_TM_GMTOFF=1 -DHAVE_INT64T=1
 -DHAVE_SOCKLENT=1  -I. -L/opt/local/lib -Wl,-headerpad_max_install_names
 -arch ppc -o thttpd thttpd.o libhttpd.o fdwatch.o mmc.o timers.o match.o
 tdate_parse.o
 ld: warning: in thttpd.o, file was built for unsupported file format which
 is not the architecture being linked (ppc)
 ld: warning: in libhttpd.o, file was built for unsupported file format
 which is not the architecture being linked (ppc)
 ld: warning: in fdwatch.o, file was built for unsupported file format
 which is not the architecture being linked (ppc)
 ld: warning: in mmc.o, file was built for unsupported file format which is
 not the architecture being linked (ppc)
 ld: warning: in timers.o, file was built for unsupported file format which
 is not the architecture being linked (ppc)
 ld: warning: in match.o, file was built for unsupported file format which
 is not the architecture being linked (ppc)
 ld: warning: in tdate_parse.o, file was built for unsupported file format
 which is not the architecture being linked (ppc)
 Undefined symbols:
   "_main", referenced from:
       start in crt1.10.5.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make: *** [thttpd] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65700>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list