Opened 12 years ago

Closed 12 years ago

#3233 closed Bug (fixed)

torrent.c:1695: error: too few arguments to function `ctime_r'

Reported by: bigal Owned by: charles
Priority: Normal Milestone:
Component: libtransmission Version: 1.93+
Severity: Normal Keywords:
Cc:

Description

libtransmission fails to build on opensolaris. This problem came in arounf build svn10516 and appears in the 2.00b1

gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"1.93+\" -DPACKAGE_STRING=\"transmission\ 1.93+\" -DPACKAGE_BUGREPORT=\"http://trac.transmissionbt.com/newticket\" -DPACKAGE=\"transmission\" -DVERSION=\"1.93+\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PREAD=1 -DHAVE_PWRITE=1 -DHAVE_STRLCPY=1 -DHAVE_DAEMON=1 -DHAVE_DIRNAME=1 -DHAVE_BASENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_POSIX_FALLOCATE=1 -DHAVE_STRTOLD=1 -DHAVE_SYSLOG=1 -DHAVE_VALLOC=1 -DHAVE_GETPAGESIZE=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_PTHREAD=1 -DHAVE__TMP_DUMMY1_ZLIB_H=1 -DHAVE_ZLIB=1 -D_FILE_OFFSET_BITS=64 -DHAVE_LSEEK64=1 -DHAVE_DECL_POSIX_FADVISE=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LIBEVENT=1 -DHAVE_GIO=1 -DHAVE_LIBNOTIFY=1 -DHAVE_LIBCANBERRA=1 -DHAVE_GCONF2=1 -DHAVE_DBUS_GLIB=1 -DHAVE_LIBINTL_H=1 -DGETTEXT_PACKAGE=\"transmission\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -I.  -I. -I.. -I../third-party/ -D__TRANSMISSION__ -DPACKAGE_DATA_DIR=\""/usr/local/share"\"  -I../third-party/dht -I/usr/include/curl -D_REENTRANT -pthreads  -g -O2 -g -O0 -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Wextra -Wdeclaration-after-statement -Winit-self -MT torrent.o -MD -MP -MF .deps/torrent.Tpo -c -o torrent.o torrent.c
torrent.c: In function `torrentCallScript':
torrent.c:1695: error: too few arguments to function `ctime_r'
make[1]: *** [torrent.o] Error 1

Looks like the libtransmission Makefile file requires the addition of DEFS of -D_POSIX_PTHREAD_SEMANTICS

I have no idea on the right way to get it into the Makefile.

Change History (2)

comment:1 Changed 12 years ago by charles

  • Milestone None Set deleted
  • Status changed from new to assigned

Ah, sure enough. It looks like ctime_r() takes 3 arguments on opensolaris:

http://www.unix.com/man-page/OpenSolaris/3c/ctime_r/

comment:2 Changed 12 years ago by charles

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in trunk by r10687 for 2.00

Note: See TracTickets for help on using tickets.