Opened 15 years ago

Closed 13 years ago

#19588 closed defect (worksforme)

multimedia/smpeg fails to build under Leopard

Reported by: rmpowell77@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: nerdling (Jeremy Lavergne), larsko@…, de5ton56@…
Port: smpeg

Description (last modified by mf2k (Frank Schima))

I hit this: Ticket #14409

As I have no permission to reopen, I am forced to report another issue.

pascal:~ richardpowell$ sudo port install smpeg
--->  Building smpeg
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_smpeg/work/smpeg-0.4.4" && make all " returned error 2
Command output:       _glmovie_draw in glmovie-tile.o
      _glmovie_draw in glmovie-tile.o
      _glmovie_init in glmovie-tile.o
  "_gluErrorString", referenced from:
      glmpeg_update(SDL_Surface*, int, int, unsigned int, unsigned int)in glmovie.o
  "_glClear", referenced from:
      _glmovie_draw in glmovie-tile.o
  "_glViewport", referenced from:
      _glmovie_resize in glmovie-tile.o
  "_glTexSubImage2D", referenced from:
      _glmovie_draw in glmovie-tile.o
  "_glVertex2i", referenced from:
      _glmovie_draw in glmovie-tile.o
      _glmovie_draw in glmovie-tile.o
      _glmovie_draw in glmovie-tile.o
      _glmovie_draw in glmovie-tile.o
  "_glBindTexture", referenced from:
      _glmovie_draw in glmovie-tile.o
      _glmovie_init in glmovie-tile.o
  "_glLoadIdentity", referenced from:
      _glmovie_draw in glmovie-tile.o
      _glmovie_resize in glmovie-tile.o
  "_glBegin", referenced from:
      _glmovie_draw in glmovie-tile.o
  "_glTexEnvf", referenced from:
      _glmovie_init in glmovie-tile.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [glmovie] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.
pascal:~ richardpowell$ 

Attachments (1)

smpeg.log (26.4 KB) - added by nerdling (Jeremy Lavergne) 15 years ago.
the build failure for me

Download all attachments as: .zip

Change History (10)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Port: smpeg added

What version of Xcode are you running? Make sure you are running version 3.1.2. Then do the following:

sudo port selfupdate
sudo port clean smpeg
sudo port install smpeg

Changed 15 years ago by nerdling (Jeremy Lavergne)

Attachment: smpeg.log added

the build failure for me

comment:2 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added

Something fun an exciting is definitely going on here, but I have libtool problems rather than the error the reporter has.

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

Also note i'm on snow leopard.

comment:4 Changed 14 years ago by david@…

I get the libtool error on 10.5.8 with Xcode 3.1.2:

$ sudo port install smpeg
--->  Computing dependencies for smpeg
--->  Fetching smpeg
--->  Verifying checksum(s) for smpeg
--->  Extracting smpeg
--->  Applying patches to smpeg
--->  Configuring smpeg
--->  Building smpeg
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_smpeg/work/smpeg-0.4.4" && /usr/bin/nice -n 20 /usr/bin/make all " returned error 2
Command output: Making all in audio
/bin/sh ../libtool --mode=compile /usr/bin/g++-4.0 -DPACKAGE=\"smpeg\" -DVERSION=\"0.4.4\"  -I. -I.    -I/opt/local/include  -pipe -O2 -arch i386 -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DTHREADED_AUDIO -DNDEBUG -I.. -DNOCONTROLS -I.. -I../audio -I../video -fno-exceptions -fno-rtti -c MPEGaudio.cpp
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[1]: *** [MPEGaudio.lo] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

comment:5 Changed 14 years ago by larsko@…

Cc: larsko@… added

Cc Me!

comment:6 Changed 14 years ago by de5ton56@…

Cc: de5ton56@… added

Cc Me!

comment:7 Changed 14 years ago by dale+macports@…

I was getting the same error as in comment:4. Fix for me was:

  1. Set configureccache no in /opt/local/etc/macports/macports.conf. (I've had ccache on ever since I installed MacPorts, so probably everything I have was built through ccache.)
  2. sudo port upgrade -n --force libtool
  3. sudo port clean smpeg
  4. sudo port install smpeg

smpeg built successfully after that. Note that I did try rebuilding just smpeg with configureccache no but still got the same error.

Unfortunately the first time I tried this recipe I forgot the -n to port upgrade --force libtool so I ended up building five or six other libraries that I didn't need to rebuild--but maybe I'm wrong and it was one of those dependent libraries that needed to be rebuilt (with or without ccache)? I seem to recall libiconv, ncursesw, ncurses, gettext, gperf, and m4; there may have been more. Sorry!

comment:8 Changed 14 years ago by dale+macports@…

Sorry, I forgot another step I took in comment:7: I did sudo port deactivate ccache before I rebuilt libtool.

I'm wondering if I actually just needed to clear out ccache's cache? I don't know where the ccache cache directory is for MacPorts. (Is it in $HOME/.ccache? Mine or root's?)

comment:9 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Can't reproduce the error that is the subject of this ticket (though the reporter didn't include enough output to see what the actual error was). Open a separate ticket for the ccache problems if you figure out which port actually has problems with it.

Note: See TracTickets for help on using tickets.