Opened 18 years ago

Closed 18 years ago

#7853 closed defect (fixed)

BUG: gpgme-1.1.2 fails to build

Reported by: opendarwin.nospam@… Owned by: blb@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:
Port:

Description

gpgme-1.1.2

the error log can be found here: INLINE

Description: build fails on 10.4.5 (ppc)

Comments: missing import of sys/socket.h in assuan/assuan.h

redundant/conflicting definition of funopen in assuan/funopen.c

Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_devel_gpgme/work/gpgme-1.1.2" && make all" returned error 2 Command output: make all-recursive Making all in assuan make all-am if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -D_ASSUAN_IN_GPGME_BUILD_ASSUAN -I/opt/local/include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-util.lo -MD -MP -MF ".deps/assuan-util.Tpo" -c -o assuan-util.lo assuan-util.c; \ then mv -f ".deps/assuan-util.Tpo" ".deps/assuan-util.Plo"; else rm -f ".deps/assuan-util.Tpo"; exit 1; fi mkdir .libs

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -D_ASSUAN_IN_GPGME_BUILD_ASSUAN -I/opt/local/include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-util.lo -MD -MP -MF .deps/assuan-util.Tpo -c assuan-util.c -fno-common -DPIC -o .libs/assuan-util.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -D_ASSUAN_IN_GPGME_BUILD_ASSUAN -I/opt/local/include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-util.lo -MD -MP -MF .deps/assuan-util.Tpo -c assuan-util.c -o assuan-util.o >/dev/null 2>&1

if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -D_ASSUAN_IN_GPGME_BUILD_ASSUAN -I/opt/local/include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-errors.lo -MD -MP -MF ".deps/assuan-errors.Tpo" -c -o assuan-errors.lo assuan-errors.c; \ then mv -f ".deps/assuan-errors.Tpo" ".deps/assuan-errors.Plo"; else rm -f ".deps/assuan-errors.Tpo"; exit 1; fi

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -D_ASSUAN_IN_GPGME_BUILD_ASSUAN -I/opt/local/include -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-errors.lo -MD -MP -MF .deps/assuan-errors.Tpo -c assuan-errors.c -fno-common -DPIC -o .libs/assuan-errors.o

In file included from assuan-errors.c:9: assuan.h:65: error: parse error before 'socklen_t' assuan.h:65: warning: function declaration isn't a prototype assuan.h:66: error: parse error before 'socklen_t' assuan.h:66: warning: function declaration isn't a prototype make[3]: * [assuan-errors.lo] Error 1 make[2]: * [all] Error 2 make[1]: * [all-recursive] Error 1 make: * [all] Error 2

Warning: the following items did not execute (for gpgme): com.apple.build Error: /opt/local/bin/port: Status 1 encountered during processing.

Attachments (5)

Portfile.diff (345 bytes) - added by opendarwin.nospam@… 18 years ago.
add patchfiles to portfile
patch-assuan-assuan.h (296 bytes) - added by opendarwin.nospam@… 18 years ago.
add missing include
patch-assuan-funopen.c (344 bytes) - added by opendarwin.nospam@… 18 years ago.
only define funopen when unavailable
Portfile.2.diff (468 bytes) - added by opendarwin.nospam@… 18 years ago.
forgot to increase port's revision number
config.log (51.6 KB) - added by opendarwin.nospam@… 18 years ago.
config.log

Download all attachments as: .zip

Change History (8)

Changed 18 years ago by opendarwin.nospam@…

Attachment: Portfile.diff added

add patchfiles to portfile

Changed 18 years ago by opendarwin.nospam@…

Attachment: patch-assuan-assuan.h added

add missing include

Changed 18 years ago by opendarwin.nospam@…

Attachment: patch-assuan-funopen.c added

only define funopen when unavailable

Changed 18 years ago by opendarwin.nospam@…

Attachment: Portfile.2.diff added

forgot to increase port's revision number

comment:1 Changed 18 years ago by opendarwin.nospam@…

attachments.isobsolete: 01

comment:2 Changed 18 years ago by blb@…

Odd, gpgme didn't build any of the assuan stuff on my system (also 10.4.5/ppc). Do you have gpgsm or libassuan (either through DP or not) installed?

Changed 18 years ago by opendarwin.nospam@…

Attachment: config.log added

config.log

comment:3 Changed 18 years ago by blb@…

Resolution: fixed
Status: newclosed

Fix has been committed, thanks for the patches.

Note: See TracTickets for help on using tickets.