Opened 12 years ago

Closed 12 years ago

#2066 closed Bug (invalid)

Build error on Solaris

Reported by: ihsan Owned by: charles
Priority: Normal Milestone: None Set
Component: Transmission Version: 1.60
Severity: Normal Keywords:
Cc: ihsan@…

Description

On Solaris:

Source code location: . Compiler: /opt/csw/gcc3/bin/g++ Build Command-Line client: yes Build Daemon: yes Build GTK+ client: yes

... gio support: yes ... dbus-glib support: yes ... libnotify support: no

Build OS X client: no Build wxWidgets client: no

/opt/csw/gcc3/bin/gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"1.51\" -DPACKAGE_STRING=\"transmission\ 1.51\" -DPACKAGE_BUGREPORT=\"http://trac.transmissionbt.com/newticket\" -DPACKAGE=\"transmission\" -DVERSION=\"1.51\" -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_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DTR_STABLE_RELEASE=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRLCPY=1 -DHAVE_DIRNAME=1 -DHAVE_BASENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_PTHREAD=1 -DHAVETMP_DUMMY1_ZLIB_H=1 -DHAVE_ZLIB=1 -DHAVE_GIO=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. -DNDEBUG -I/opt/csw/gcc3/include -I/opt/csw/gcc3/include/c++/3.4.5 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/opt/csw/include -O2 -mcpu=v8 -g -O3 -funroll-loops -std=gnu99 -ggdb3 -Wall -Wextra -Wredundant-decls -Wpointer-arith -Wformat-security -W -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winit-self -Wundef -Wnested-externs -Wmissing-format-attribute -MT miniupnpc.o -MD -MP -MF .deps/miniupnpc.Tpo -c -o miniupnpc.o miniupnpc.c In file included from upnpcommands.h:10,

from miniupnpc.c:39:

upnpreplyparse.h:14:23: sys/queue.h: No such file or directory In file included from upnpcommands.h:10,

from miniupnpc.c:39:

upnpreplyparse.h:22: error: syntax error before "LIST_ENTRY" upnpreplyparse.h:22: warning: no semicolon at end of struct or union upnpreplyparse.h:25: error: syntax error before '}' token upnpreplyparse.h:28: error: syntax error before "LIST_HEAD" upnpreplyparse.h:28: warning: no semicolon at end of struct or union upnpreplyparse.h:30: error: syntax error before '}' token miniupnpc.c:631: warning: no previous declaration for 'UPNPIGD_IsConnected' gmake[4]: * [miniupnpc.o] Error 1

The problem is, that solaris doesn't include the sys/queue.h file. The problems is solved when it's compiled with -DNO_SYS_QUEUE_H .

Attachments (1)

sysqueue.diff (470 bytes) - added by charles 12 years ago.
possible fix

Download all attachments as: .zip

Change History (13)

Changed 12 years ago by charles

possible fix

comment:1 Changed 12 years ago by charles

  • Owner set to charles
  • Status changed from new to assigned

ihsan: could you try the attached diff on a fresh copy of Transmission and see if it fixes the problem?

comment:2 follow-up: Changed 12 years ago by ihsan

Thanks for the patch. Unfortunately, it makes to fail Transmission somewhere else:

/opt/csw/gcc4/bin/gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"1.60\" -DPACKAGE_STRING=\"transmission\ 1.60\" -DPACKAGE_BUGREPORT=\"http://trac.transmissionbt.com/newticket\" -DPACKAGE=\"transmission\" -DVERSION=\"1.60\" -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_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DTR_STABLE_RELEASE=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRLCPY=1 -DHAVE_DIRNAME=1 -DHAVE_BASENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_PTHREAD=1 -DHAVE__TMP_DUMMY1_ZLIB_H=1 -DHAVE_ZLIB=1 -D_FILE_OFFSET_BITS=64 -DHAVE_DECL_POSIX_FADVISE=0 -DNO_SYS_QUEUE_H=1 -DHAVE_GIO=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__ -I../third-party/libevent -DPACKAGE_DATA_DIR=\""/opt/csw/share"\" -I/opt/csw/include -I/opt/csw/include   -I/opt/csw/include   -D_REENTRANT -pthreads  -O2 -pipe -mcpu=v8 -DNO_SYS_QUEUE_H -I/opt/csw/include -g -O3 -funroll-loops  -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 blocklist-test.o -MD -MP -MF .deps/blocklist-test.Tpo -c -o blocklist-test.o blocklist-test.c
In file included from utils.h:83,
                 from blocklist-test.c:7:
/opt/csw/include/libintl.h:91:25: warning: "__APPLE_CC__" is not defined
/opt/csw/include/libintl.h:113:24: warning: "__APPLE_CC__" is not defined
mv -f .deps/blocklist-test.Tpo .deps/blocklist-test.Po
/bin/bash ../libtool --tag=CC   --mode=link /opt/csw/gcc4/bin/gcc -I/opt/csw/include   -I/opt/csw/include   -D_REENTRANT -pthreads  -O2 -pipe -mcpu=v8 -DNO_SYS_QUEUE_H -I/opt/csw/include -g -O3 -funroll-loops  -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  -L/opt/csw/gcc4/lib/. -mcpu=v8 -L/opt/csw/lib -o blocklist-test blocklist-test.o ./libtransmission.a ../third-party/miniupnp/libminiupnp.a ../third-party/libnatpmp/libnatpmp.a ../third-party/libevent/libevent.la -lintl  -xarch=v8 -L/opt/csw/lib -lcurl   -L/opt/csw/lib -lssl -lcrypto -lsocket -lnsl -ldl    -lz -lnsl -lsocket  -lm -lnsl -lsocket 
../libtool: X--tag=CC: command not found
../libtool: libtool: ignoring unknown tag : command not found
../libtool: X--mode=link: command not found
../libtool: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: X-I/opt/csw/include: No such file or directory
../libtool: X-I/opt/csw/include: No such file or directory
../libtool: X-D_REENTRANT: command not found
../libtool: X-O2: command not found
../libtool: X-pipe: command not found
../libtool: X-mcpu=v8: command not found
../libtool: X-DNO_SYS_QUEUE_H: command not found
../libtool: X-I/opt/csw/include: No such file or directory
../libtool: X-g: command not found
../libtool: X-O3: command not found
../libtool: X-funroll-loops: command not found
../libtool: X-std=gnu99: command not found
../libtool: X-ggdb3: command not found
../libtool: X-Wall: command not found
../libtool: X-W: command not found
../libtool: X-Wpointer-arith: command not found
../libtool: X-Wformat-security: command not found
../libtool: X-Wcast-align: command not found
../libtool: X-Wundef: command not found
../libtool: X-Wcast-align: command not found
../libtool: X-Wstrict-prototypes: command not found
../libtool: X-Wmissing-declarations: command not found
../libtool: X-Wmissing-format-attribute: command not found
../libtool: X-Wredundant-decls: command not found
../libtool: X-Wnested-externs: command not found
../libtool: X-Wunused-parameter: command not found
../libtool: X-Wwrite-strings: command not found
../libtool: X-Wextra: command not found
../libtool: X-Wdeclaration-after-statement: command not found
../libtool: X-Winit-self: command not found
../libtool: X-L/opt/csw/gcc4/lib/.: No such file or directory
../libtool: X-mcpu=v8: command not found
../libtool: X-L/opt/csw/lib: No such file or directory
../libtool: X-xarch=v8: command not found
../libtool: X-L/opt/csw/lib: No such file or directory
../libtool: X-L/opt/csw/lib: No such file or directory
../libtool: Xblocklist-test: command not found
/dev/fb: No such file or directory
/dev/fb: No such file or directory
Graphics Adapter device /dev/fb is of unknown type

Fatal server error:
InitOutput: Error loading module for /dev/fb

../libtool: Xblocklist-test: command not found
../libtool: mkdir /.libs: No such file or directory
mkdir: cannot create directory `/.libs': Permission denied
gmake[4]: *** [blocklist-test] Error 1
gmake[4]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/transmission/trunk/work/build-isa-sparcv8/transmission-1.60/libtransmission'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/transmission/trunk/work/build-isa-sparcv8/transmission-1.60/libtransmission'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/transmission/trunk/work/build-isa-sparcv8/transmission-1.60'
gmake[1]: *** [build-work/build-isa-sparcv8/transmission-1.60/Makefile] Error 2
gmake[1]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/transmission/trunk'
gmake: *** [build-isa-sparcv8] Error 2

comment:3 in reply to: ↑ 2 ; follow-up: Changed 12 years ago by charles

Replying to ihsan:

Thanks for the patch. Unfortunately, it makes to fail Transmission somewhere else

I'm not sure I understand you. Have you been able to build successfully on your own? If so, what changes did you make to do it?

comment:4 in reply to: ↑ 3 Changed 12 years ago by ihsan

Replying to charles:

Replying to ihsan:

Thanks for the patch. Unfortunately, it makes to fail Transmission somewhere else

I'm not sure I understand you. Have you been able to build successfully on your own? If so, what changes did you make to do it?

Transmission does compile, if I add -DNO_SYS_QUEUE_H to CFLAGS. It does not compile with your patch.

comment:5 Changed 12 years ago by wereHamster

Which version of solaris is that? I have opensolaris (5.11 snv_111a) and everything builds just fine (sys/queue.h does exist here). It's interesting though why charles' patch didn't define NO_SYS_QUEUE_H when you claim that your system doesn't have that file. Any chance you could try that patch again and attach config.log or other related files to see why NO_SYS_QUEUE_H isn't being defined?

comment:6 Changed 12 years ago by ihsan

I'm on Solaris 9. The package would be for OpenCSW, a package repository for Solaris. Currently we support Solaris 9 & 10, which are the stable versions of Solaris.

I'll try the patch again and let you know.

comment:7 Changed 12 years ago by charles

Did anything ever come of this?

comment:8 Changed 12 years ago by ihsan

I'm on holidays right now. I'll try to give you the results this evening.

comment:9 Changed 12 years ago by ihsan

I'm very sorry, but I couldn't find any time today. Please give me some extra time till Sunday. Thanks.

comment:10 Changed 12 years ago by jhujhiti

You are using blastwave.org's gcc. Does it build if you compile with the gcc in /usr/sfw?

comment:11 Changed 12 years ago by ihsan

Hi,

I'm using OpenCSW's GCC --> http://www.opencsw.org/packages/gcc4core OpenCSW forked last year from Blastwave. Currently, there is not much going on with Blastwave, while OpenCSW is very active.

I've tried your patch again, but it fails again somewhere else. I'm wondering why it's looking for /dev/fb. I'm trying to build it in a Solaris 9 sparc Zone and there is no /dev/fb, but it shouldn't be needed to build anyway.

/opt/csw/gcc4/bin/gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\" -DPACKAGE_VERSION=\"1.60\" -DPACKAGE_STRING=\"transmission\ 1.60\" -DPACKAGE_BUGREPORT=\"http://trac.transmissionbt.com/newticket\" -DPACKAGE=\"transmission\" -DVERSION=\"1.60\" -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_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DTR_STABLE_RELEASE=1 -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRLCPY=1 -DHAVE_DIRNAME=1 -DHAVE_BASENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_PTHREAD=1 -DHAVE__TMP_DUMMY1_ZLIB_H=1 -DHAVE_ZLIB=1 -D_FILE_OFFSET_BITS=64 -DHAVE_DECL_POSIX_FADVISE=0 -DNO_SYS_QUEUE_H=1 -DHAVE_GIO=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__ -I../third-party/libevent -DPACKAGE_DATA_DIR=\""/opt/csw/share"\" -I/opt/csw/include -I/opt/csw/include   -I/opt/csw/include   -D_REENTRANT -pthreads  -O2 -pipe -mcpu=v8 -I/opt/csw/include -g -O3 -funroll-loops  -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 blocklist-test.o -MD -MP -MF .deps/blocklist-test.Tpo -c -o blocklist-test.o blocklist-test.c
In file included from utils.h:83,
                 from blocklist-test.c:7:
/opt/csw/include/libintl.h:91:25: warning: "__APPLE_CC__" is not defined
/opt/csw/include/libintl.h:113:24: warning: "__APPLE_CC__" is not defined
mv -f .deps/blocklist-test.Tpo .deps/blocklist-test.Po
/bin/bash ../libtool --tag=CC   --mode=link /opt/csw/gcc4/bin/gcc -I/opt/csw/include   -I/opt/csw/include   -D_REENTRANT -pthreads  -O2 -pipe -mcpu=v8 -I/opt/csw/include -g -O3 -funroll-loops  -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  -L/opt/csw/gcc4/lib/. -mcpu=v8 -L/opt/csw/lib -o blocklist-test blocklist-test.o ./libtransmission.a ../third-party/miniupnp/libminiupnp.a ../third-party/libnatpmp/libnatpmp.a ../third-party/libevent/libevent.la -lintl  -xarch=v8 -L/opt/csw/lib -lcurl   -L/opt/csw/lib -lssl -lcrypto -lsocket -lnsl -ldl    -lz -lnsl -lsocket  -lm -lnsl -lsocket 
../libtool: X--tag=CC: command not found
../libtool: libtool: ignoring unknown tag : command not found
../libtool: X--mode=link: command not found
../libtool: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: X-I/opt/csw/include: No such file or directory
../libtool: X-I/opt/csw/include: No such file or directory
../libtool: X-D_REENTRANT: command not found
../libtool: X-O2: command not found
../libtool: X-pipe: command not found
../libtool: X-mcpu=v8: command not found
../libtool: X-I/opt/csw/include: No such file or directory
../libtool: X-g: command not found
../libtool: X-O3: command not found
../libtool: X-funroll-loops: command not found
../libtool: X-std=gnu99: command not found
../libtool: X-ggdb3: command not found
../libtool: X-Wall: command not found
../libtool: X-W: command not found
../libtool: X-Wpointer-arith: command not found
../libtool: X-Wformat-security: command not found
../libtool: X-Wcast-align: command not found
../libtool: X-Wundef: command not found
../libtool: X-Wcast-align: command not found
../libtool: X-Wstrict-prototypes: command not found
../libtool: X-Wmissing-declarations: command not found
../libtool: X-Wmissing-format-attribute: command not found
../libtool: X-Wredundant-decls: command not found
../libtool: X-Wnested-externs: command not found
../libtool: X-Wunused-parameter: command not found
../libtool: X-Wwrite-strings: command not found
../libtool: X-Wextra: command not found
../libtool: X-Wdeclaration-after-statement: command not found
../libtool: X-Winit-self: command not found
../libtool: X-L/opt/csw/gcc4/lib/.: No such file or directory
../libtool: X-mcpu=v8: command not found
../libtool: X-L/opt/csw/lib: No such file or directory
../libtool: X-xarch=v8: command not found
../libtool: X-L/opt/csw/lib: No such file or directory
../libtool: X-L/opt/csw/lib: No such file or directory
../libtool: Xblocklist-test: command not found
/dev/fb: No such file or directory
/dev/fb: No such file or directory
Graphics Adapter device /dev/fb is of unknown type

Fatal server error:
InitOutput: Error loading module for /dev/fb

../libtool: Xblocklist-test: command not found
../libtool: mkdir /.libs: No such file or directory
mkdir: cannot create directory `/.libs': Permission denied
gmake[4]: *** [blocklist-test] Error 1
gmake[4]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/transmission/trunk/work/build-isa-sparcv8/transmission-1.60/libtransmission'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/transmission/trunk/work/build-isa-sparcv8/transmission-1.60/libtransmission'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/transmission/trunk/work/build-isa-sparcv8/transmission-1.60'
gmake[1]: *** [build-work/build-isa-sparcv8/transmission-1.60/Makefile] Error 2
gmake[1]: Leaving directory `/home/ihsan/gar/csw/mgar/pkg/transmission/trunk'
gmake: *** [build-isa-sparcv8] Error 2

comment:12 Changed 12 years ago by charles

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

The patch is not what's making this compile fail.

In fact in the new build log it doesn't look like the patch was used. The only difference between the two logs is that in the new one, -DNO_SYS_QUEUE_H isn't passed to /opt/csw/gcc4/bin/gcc.

So, this is not a Transmission bug. It's some kind of configuration issue on your system. It looks like it has to do with libtool, but I'm not positive.

Note: See TracTickets for help on using tickets.