Opened 11 years ago

Last modified 11 years ago

#40246 assigned defect

jabber @1.4.2_5 (net) command execution failed

Reported by: wcsantos@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: jabber

Description

Compile of Jabber failed on system:

# uname -a

Darwin MacBookPro15.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64'

# port version

Version: 2.2.0

Xcode 4.4

  • Xcode: Build version 4F250
  • llvm-gcc: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
  • clang: Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)

Significant error messages:

3 warnings and 3 errors generated.
gnumake[2]: *** [base_accept.o] Error 1
gnumake[2]: *** Waiting for unfinished jobs....
In file included from base_file.c:42:
In file included from ../jabberd.h:41:
../lib/lib.h:62:9: warning: 'snprintf' macro redefined
#define snprintf ap_snprintf
        ^
/usr/include/secure/_stdio.h:57:9: note: previous definition is here
#define snprintf(str, len, ...) \
        ^
In file included from base_file.c:42:
In file included from ../jabberd.h:41:
../lib/lib.h:67:9: warning: 'vsnprintf' macro redefined
#define vsnprintf ap_vsnprintf
        ^
/usr/include/secure/_stdio.h:71:9: note: previous definition is here
#define vsnprintf(str, len, format, ap) \
        ^
2 warnings generated.
gnumake[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_jabber/jabber/work/jabber-1.4.2/jabberd/base'
gnumake[1]: *** [all-recursive] Error 1
gnumake[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_jabber/jabber/work/jabber-1.4.2/jabberd'
gnumake: *** [all-recursive] Error 1
gnumake: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_jabber/jabber/work/jabber-1.4.2'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_jabber/jabber/work/jabber-1.4.2" && /usr/bin/gnumake -j2 -w all 
Exit code: 2
Error: org.macports.build for port jabber returned: command execution failed
Warning: targets not executed for jabber: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port jabber for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_jabber/jabber/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port jabber failed

The entire compile log may be found at:

http://pastebin.com/0W3A40Uk

Attachments (1)

main.log (65.0 KB) - added by wcsantos@… 11 years ago.
main.log from failed jabber compile

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by wcsantos@…

Cc: wcsantos@… added

Cc Me!

comment:2 in reply to:  description Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: wcsantos@… removed
Keywords: jabber removed
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Replying to wcsantos@…:

Significant error messages:

3 warnings and 3 errors generated.

The significant errors were actually before this line:

:info:build base_accept.c:67:9: error: restrict requires a pointer or reference
:info:build     int restrict;
:info:build     ~~~~^~~~~~~~
:info:build base_accept.c:67:5: warning: declaration does not declare anything [-Wmissing-declarations]
:info:build     int restrict;
:info:build     ^~~~~~~~~~~~
:info:build base_accept.c:160:24: error: expected identifier
:info:build                 if(ai->restrict)
:info:build                        ^
:info:build base_accept.c:361:15: error: expected identifier
:info:build         inst->restrict = 1;
:info:build               ^

The jabber port seems to be very out of date. In fact a newer version of the same software is available in the jabberd port, so you should install that instead. I just updated the jabberd port to 2.2.17 (r110112) so you should wait 30 minutes, then run sudo port selfupdate and sudo port install jabberd. We should just make the old jabber port replaced_by the jabberd port.

The entire compile log may be found at:

http://pastebin.com/0W3A40Uk

Next time please just attach the logfile directly to the ticket, so that we're not relying on external sites.

comment:3 Changed 11 years ago by wcsantos@…

Thanks ryandesign, I appreciate your help very much. Sorry about the use of pastebin, I'm getting used to your format here. I usually post on bugs.gentoo.org.

Your solution worked without a hitch: jabberd compiles just fine on my system.

However, my original reason for installing jabber is that it's a required dependency to:

sudo port -vvv install wget variant:ssl

Is there an easy way for me to replace the jabber dependency with jabberd? Should I post a new ticket for this issue (to ssl or wget)?

Last edited 11 years ago by wcsantos@… (previous) (diff)

Changed 11 years ago by wcsantos@…

Attachment: main.log added

main.log from failed jabber compile

comment:4 in reply to:  3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to wcsantos@…:

sudo port -vvv install wget variant:ssl

There is only one level of verbosity, so "-vvv" is equivalent to "-v".

More importantly, the above really doesn't do what I think you think it does. The above installs the wget port, and every port that has a variant called "ssl". The jabber port has a variant called "ssl", therefore the above command wants to install it.

I suspect what you wanted to do was to install only the wget port, with its ssl variant. As it happens, that's the default for the wget port, so you just need to "sudo port install wget". Had it not been a default variant, you would "sudo port install wget +ssl".

comment:5 Changed 11 years ago by wcsantos@…

Thank you for all your pointers. You are correct, I didn't want to install every port with an ssl variant: only wget. Now I need to go back and see what other ssl variants got installed and uninstall them.

It goes without saying that I'm new to MacPorts syntax. I suppose there's a bit of egg on my face. ; )

Thanks again for all your help! Have a great week!

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

MacPorts may be able to help you with that. Just as the "variant:ssl" selector selects ports having an ssl variant, the selector "leaves" selects ports you've installed that nothing else you've installed depends on. So you could use "port installed variant:ssl and leaves" to see the list of ports that are both, and then see which of those you want to uninstall.

comment:7 Changed 11 years ago by wcsantos@…

That's powerful: Saved me some time. Thanks!

Note: See TracTickets for help on using tickets.