Opened 9 years ago

Closed 9 years ago

#8958 closed defect (Invalid)

OSX Build Error: Undefined symbol "myth_system(QString const&, int, unsigned int)"

Reported by: Rob Smith Owned by: Nigel
Priority: major Milestone: 0.24
Component: Ports - OSX Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

cd mythshutdown/ && /usr/bin/make -f Makefile 
/Users/kormoc/Projects/MythTV/OSX_Build/.osx-packager/build/bin/qmake -macx PREFIX=/Users/kormoc/Projects/MythTV/OSX_Build/.osx-packager/build QMAKE_LFLAGS+=-Wl,-search_paths_first INCLUDEPATH+=/Users/kormoc/Projects/MythTV/OSX_Build/.osx-packager/build/include LIBS+=-L/usr/lib\ -L/Users/kormoc/Projects/MythTV/OSX_Build/.osx-packager/build/lib -o Makefile mythshutdown.pro
g++ -headerpad_max_install_names -Wl,-search_paths_first -arch i386 -o mythshutdown main.o     -L/usr/lib -L/Users/kormoc/Projects/MythTV/OSX_Build/.osx-packager/build/lib -L../../libs/libmyth -L../../libs/libmythtv -L../../external/FFmpeg/libavutil -L../../external/FFmpeg/libavcodec -L../../external/FFmpeg/libavcore -L../../external/FFmpeg/libavformat -L../../external/FFmpeg/libswscale -L../../libs/libmythdb -L../../libs/libmythui -L../../libs/libmythupnp -lmythtv-0.23 -lmythswscale -lmythavformat -lmythavcodec -lmythavcore -lmythavutil -lmythupnp-0.23 -lmythdb-0.23 -lmythui-0.23 -lmyth-0.23 -L../../libs/libmythlivemedia -lmythlivemedia-0.23 -L../../libs/libmythfreemheg -lmythfreemheg-0.23 -L../../libs/libmythhdhomerun -lmythhdhomerun-0.23 -F/Developer/FireWireSDK26/Examples/Framework -framework AVCVideoServices -lmp3lame -lbz2 -lfreetype -framework OpenGL -framework AGL -lQtSql -L/Users/kormoc/Projects/MythTV/OSX_Build/.osx-packager/build/lib/mysql -F/System/Library/Frameworks -m32 -lmysqlclient -lz -lm -lQtGui -lQtNetwork -lQtCore 
Undefined symbols:
  "myth_system(QString const&, int, unsigned int)", referenced from:
      shutdown()     in main.o
      shutdown()     in main.o
      shutdown()     in main.o
      shutdown()     in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [mythshutdown] Error 1
make[1]: *** [sub-mythshutdown-make_default] Error 2
make: *** [programs] Error 2

Change History (3)

comment:1 Changed 9 years ago by Kenni Lund [kenni a kelu dot dk]

Milestone: unknown0.24
Priority: minormajor
Status: newassigned

comment:2 Changed 9 years ago by Nigel

Trunk from 3 or 4 days ago works for me:

% rm *.o
% touch *.pro
% make
/Volumes/Backups/MythTV/.osx-packager/build/bin/qmake -macx QMAKE=qmake -o Makefile mythshutdown.pro
g++ -c -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -fomit-frame-pointer -fPIC -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -O3 -arch i386 -DMMX -Di386 -DUSING_APPLEREMOTE -D_GNU_SOURCE -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/Volumes/Backups/MythTV/.osx-packager/build/mkspecs/macx-g++ -I. -I/Volumes/Backups/MythTV/.osx-packager/build/include/QtCore -I/Volumes/Backups/MythTV/.osx-packager/build/include/QtNetwork -I/Volumes/Backups/MythTV/.osx-packager/build/include/QtGui -I/Volumes/Backups/MythTV/.osx-packager/build/include/QtSql -I/Volumes/Backups/MythTV/.osx-packager/build/include -I/usr/include -I/Volumes/Backups/MythTV/.osx-packager/build -I../.. -I../../libs -I../../libs/libmyth -I../../libs/libmythtv -I../../external/FFmpeg -I../../libs/libmythupnp -I../../libs/libmythui -I../../libs/libmythlivemedia -I../../libs/libmythdb -I../../libmythhdhomerun -I../../libs/libmythdvdnav -I../../libs/libmythbluray -I../../libs/libmythsamplerate -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I. -o main.o main.cpp
g++ -headerpad_max_install_names -arch i386 -o mythshutdown main.o     -L../../libs/libmyth -L../../libs/libmythtv -L../../external/FFmpeg/libavutil -L../../external/FFmpeg/libavcodec -L../../external/FFmpeg/libavcore -L../../external/FFmpeg/libavformat -L../../external/FFmpeg/libswscale -L../../libs/libmythdb -L../../libs/libmythui -L../../libs/libmythupnp -lmythtv-0.23 -lmythswscale -lmythavformat -lmythavcodec -lmythavcore -lmythavutil -lmythupnp-0.23 -lmythdb-0.23 -lmythui-0.23 -lmyth-0.23 -L../../libs/libmythlivemedia -lmythlivemedia-0.23 -L../../libs/libmythfreemheg -lmythfreemheg-0.23 -L../../libs/libmythhdhomerun -lmythhdhomerun-0.23 -F/Developer/FireWireSDK26/Examples/Framework -framework AVCVideoServices -lmp3lame -L/Volumes/Backups/MythTV/.osx-packager/build/lib -lbz2 -lfreetype -framework OpenGL -framework AGL -lQtSql -L/Volumes/Backups/MythTV/.osx-packager/build/lib/mysql -F/System/Library/Frameworks -L/usr/lib -lmysqlclient -lz -lm -lQtGui -lQtNetwork -lQtCore 

as did an svn up; make.
Ages ago, myth_system() moved between libmythui and libmythdb. Is it possible that there are broken versions of those libs somewhere? (i.e. both versions without myth_system()?) If so, try a purge:

rm /Users/kormoc/Projects/MythTV/OSX_Build/.osx-packager/build/lib/libmyth*

comment:3 Changed 9 years ago by Rob Smith

Resolution: Invalid
Status: assignedclosed
ls /Users/kormoc/Projects/MythTV/OSX_Build/.osx-packager/build/lib/libmyth*

shows no files

however

rm -rf /Users/kormoc/Projects/MythTV/OSX_Build/.osx-packager

does fix the issue, so it was some inconsistency in the build tree.

Note: See TracTickets for help on using tickets.