Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#30769 closed defect (fixed)

liblrdf does not compile

Reported by: softwarejanitor@… Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: lion Cc: deesto (John S. De Stefano Jr.)
Port: liblrdf

Description (last modified by mf2k (Frank Schima))

This library is used as part of Lyx. The specific command that illustrates the fault was:

port install liblrdf
--->  Computing dependencies for liblrdf
--->  Building liblrdf
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for liblrdf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_liblrdf/liblrdf/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

The compile error messages from the log file are:

:info:build libtool: compile:  /Developer/usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -I./src -I../src -O2 -arch x86_64 -I/opt/local/include/raptor2 -Wall -g -I.. -MT lrdf.lo -MD -MP -MF .deps/lrdf.Tpo -c lrdf.c  -fno-common -DPIC -o .libs/lrdf.o
:info:build lrdf.c:237: warning: type defaults to 'int' in declaration of 'raptor_term'
:info:build lrdf.c:237: error: expected ';', ',' or ')' before '*' token
:info:build lrdf.c: In function 'lrdf_store':

Change History (11)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: lion added; Lion liblrdf removed
Owner: changed from macports-tickets@… to pixilla@…

comment:2 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

See r83338

comment:3 Changed 12 years ago by deesto (John S. De Stefano Jr.)

Resolution: fixed
Status: closedreopened

I'm seeing the same behavior now in upgrading to liblrdf 0.5.0-1, in 10.6.8:

$ port list liblrdf
liblrdf                        @0.5.0          textproc/liblrdf

$ sudo port clean liblrdf
--->  Cleaning liblrdf

$ sudo port upgrade liblrdf
--->  Computing dependencies for liblrdf
--->  Fetching archive for liblrdf
--->  Attempting to fetch liblrdf-0.5.0_1.darwin_10.x86_64.tbz2 from http://packages.macports.org/liblrdf
--->  Fetching liblrdf
--->  Verifying checksum(s) for liblrdf
--->  Extracting liblrdf
--->  Configuring liblrdf
--->  Building liblrdf
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for liblrdf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_www.macports.org_files_ports_textproc_liblrdf/liblrdf/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

From the log:

:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.    org_files_ports_textproc_liblrdf/liblrdf/work/LRDF-0.5.0/src'
249 :info:build /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/in    clude -Wall -g -I.. -pipe -O2 -arch x86_64 -I/opt/local/include/raptor2   -pipe -O2 -arch x86_64 -MT lrdf.lo -MD -MP     -MF .deps/lrdf.Tpo -c -o lrdf.lo lrdf.c
250 :info:build /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/in    clude -Wall -g -I.. -pipe -O2 -arch x86_64 -I/opt/local/include/raptor2   -pipe -O2 -arch x86_64 -MT lrdf_multi.lo -    MD -MP -MF .deps/lrdf_multi.Tpo -c -o lrdf_multi.lo lrdf_multi.c
251 :info:build libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -g -I.. -pipe -O    2 -arch x86_64 -I/opt/local/include/raptor2 -pipe -O2 -arch x86_64 -MT lrdf_multi.lo -MD -MP -MF .deps/lrdf_multi.Tp    o -c lrdf_multi.c  -fno-common -DPIC -o .libs/lrdf_multi.o
252 :info:build libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -g -I.. -pipe -O    2 -arch x86_64 -I/opt/local/include/raptor2 -pipe -O2 -arch x86_64 -MT lrdf.lo -MD -MP -MF .deps/lrdf.Tpo -c lrdf.c      -fno-common -DPIC -o .libs/lrdf.o
253 :info:build lrdf.c:237: warning: type defaults to 'int' in declaration of 'raptor_term'
254 :info:build lrdf.c:237: error: expected ';', ',' or ')' before '*' token                        

comment:4 Changed 12 years ago by deesto (John S. De Stefano Jr.)

Cc: deesto@… added

Cc Me!

comment:5 Changed 12 years ago by pixilla (Bradley Giesbrecht)

deesto: do you have raptor installed?

$ sudo port selfupdate
$ sudo port clean raptor report2 liblrdf
$ sudo port upgrade raptor report2 liblrdf

comment:6 in reply to:  5 ; Changed 12 years ago by deesto (John S. De Stefano Jr.)

Thanks pixilla. 'raptor' was certainly an issue:

$ sudo port upgrade raptor liblrdf
--->  raptor is replaced by raptor2
--->  Deactivating raptor @1.4.21_2
--->  Cleaning raptor
--->  Computing dependencies for raptor2
....

FYI, 'report' and 'report2' are not available ports in my case.

comment:7 in reply to:  6 ; Changed 12 years ago by pixilla (Bradley Giesbrecht)

Replying to deesto@…:

FYI, 'report' and 'report2' are not available ports in my case.

Ya, that should have been raptor2 :)

So liblrdf installs/upgrades for you now?

comment:8 in reply to:  7 Changed 12 years ago by deesto (John S. De Stefano Jr.)

Replying to pixilla@…:

Ya, that should have been raptor2 :)

So liblrdf installs/upgrades for you now?

Yes, so long as raptor*2* is installed. For whatever reason, having raptor installed didn't pull the necessary trigger to upgrade to raptor2, and the liblrdf upgrade failed with raptor*1*.

comment:9 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: reopenedclosed

deesto: The liblrdf port takes care of installing raptor2. Your issue was the need to have raptor deactivated/uninstalled which upgrading the raptor port took care of. Had you upgraded your "outdated" ports you would not have had this issue.

This is a common approach to keeping your ports updated:

$ sudo port selfupdate # update port and packages
$ port outdated # view outdated ports (optional)
$ sudo upgrade outdated # upgrade outdated packages

See 3.1.2. selfupdate and 3.1.15. upgrade

comment:10 Changed 12 years ago by user-macports.org-trac-20110213@…

Note: sudo port selfupdate and sudo port upgrade outdated is how I got this issue... sudo port upgrade raptor does seem to get me out of it (I think that's what did it; I tried a few things), but sudo port upgrade outdated didn't do that by itself, or at the very least, it was trying to upgrade liblrdf first.

So, note to future people having this problem:

Try:

sudo port upgrade gator
sudo port upgrade outdated

Hopefully that will fix it for you.

comment:11 in reply to:  10 Changed 12 years ago by deesto (John S. De Stefano Jr.)

Replying to user-macports.org-trac-20110213@…:

So, note to future people having this problem:

Try:

sudo port upgrade gator
sudo port upgrade outdated

Hopefully that will fix it for you.

I think you mean sudo port upgrade raptor ;) , but yes, that should help.

Also in my case, MacPorts itself had just come out with a new tree, so a sudo port selfupdate before all else also helped.

Note: See TracTickets for help on using tickets.