On Fri, Feb 16, 2024 at 1:25 PM Andrew Randrianasulu
<[email protected]> wrote:
>
> On Fri, Feb 16, 2024 at 12:58 PM Andrew Randrianasulu
> <[email protected]> wrote:
> >
> > On Fri, Feb 16, 2024 at 11:37 AM Andrew Randrianasulu
> > <[email protected]> wrote:
> > >
> > > On Fri, Feb 16, 2024 at 9:53 AM Andrew Randrianasulu
> > > <[email protected]> wrote:
> > > >
> > > > On Fri, Feb 16, 2024 at 10:00 AM Adam williams 
> > > > <[email protected]> wrote:
> > > > >
> > > > > Haven't had enough time to finish & integrate your work. Please 
> > > > > submit a working build log on ubuntu 16-22 & explain why you're 
> > > > > trying to build without filefork support.
> > > >
> > > > It was function linker was unable to find (for some reason)
> > > >
> > > > right now after those steps in hvirtual root (on chrooted  Rosa 2016
> > > > system - gcc 5.5.0)
> > > >
> > > > make clean twice
> > > >
> > > > git clean -fdx {removes all untracked  files}
> > > >
> > > > git reset --hard
> > > > HEAD is now at 400dcf62 Greater less typo
> > > >
> > > > configure fails at sndfile step
> > >
> > > ah, probably just artefact of running configure > log > 2>&1
> > >
> > > just running configure is fine. but  pulseaudio still barf
> > >
> >
> >
> > so, with just 4 new patches (attached) I see this linking failure:
> >
> > g++ -o ../bin/cinelerra `cat x86_64/objs`
> > ../thirdparty/libsndfile-1.0.28/src/.libs/libsndfile.a(libsndfile_la-flac.o):
> > In function `flac_close':
> > /root/src/hvirtual/thirdparty/libsndfile-1.0.28/src/flac.c:736:
> > undefined reference to `FLAC__metadata_object_delete'
> > ../thirdparty/libsndfile-1.0.28/src/.libs/libsndfile.a(libsndfile_la-flac.o):
> > In function `flac_write_strings':
> > /root/src/hvirtual/thirdparty/libsndfile-1.0.28/src/flac.c:627:
> > undefined reference to
> > `FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair'
> > /root/src/hvirtual/thirdparty/libsndfile-1.0.28/src/flac.c:628:
> > undefined reference to
> > `FLAC__metadata_object_vorbiscomment_append_comment'
> > /root/src/hvirtual/thirdparty/libsndfile-1.0.28/src/flac.c:582:
> > undefined reference to `FLAC__metadata_object_new'
> > ../thirdparty/libsndfile-1.0.28/src/.libs/libsndfile.a(libsndfile_la-flac.o):
> > In function `sf_flac_meta_get_vorbiscomments':
> > /root/src/hvirtual/thirdparty/libsndfile-1.0.28/src/flac.c:414:
> > undefined reference to
> > `FLAC__metadata_object_vorbiscomment_find_entry_from'
> > ../thirdparty/libsndfile-1.0.28/src/.libs/libsndfile.a(libsndfile_la-ogg_vorbis.o):
> > In function `ogg_vorbis_open':
> > /root/src/hvirtual/thirdparty/libsndfile-1.0.28/src/ogg_vorbis.c:506:
> > undefined reference to `vorbis_version_string'
> > collect2: error: ld returned 1 exit status
> > make[2]: *** [Makefile:545: ../bin/cinelerra] Error 1
> >
> > hm, may be disable flac support in libsndfile if possible?
> >
>
> disabling external programs in libsndfile helps but now I meet failure
> at loading mpg media:
>
> bin/cinelerra
> Cinelerra 8 (C)2022 Adam Williams
>
> Cinelerra is free software, covered by the GNU General Public License,
> and you are welcome to change it and/or distribute copies of it under
> certain conditions. There is absolutely no warranty for Cinelerra.
> BC_DisplayInfo::test_window 158: No window manager
> EditPanel::create_objects: meter_panel == 0
> libancil_get_fd 88 recvmsg failed <==== here we hang
> ^Csignal_entry: got SIGINT my pid=18201 execution table size=0:
> signal_entry: got SIGINT my pid=18262 execution table size=0:
> signal_entry: got SIGINT my pid=18203 execution table size=0:
> signal_entry: got SIGINT my pid=18232 execution table size=0:
> kill_subs 276: process=18203
> SigHandler::signal_handler total files=0
> SigHandler::signal_handler total files=0
> SigHandler::signal_handler total files=0
> Aborted
> [root@slax hvirtual]# grep libancil_get_fd -r .
> Binary file ./cinelerra/x86_64/forkwrapper.o matches
> Binary file ./cinelerra/x86_64/cfunctions.o matches
> ./cinelerra/cfunctions.c:int libancil_get_fd(int parent_fd)
> ./cinelerra/cfunctions.c:        printf("libancil_get_fd %d recvmsg
> failed\n", __LINE__);
> ./cinelerra/forkwrapper.C:      return libancil_get_fd(parent_fd);
> ./cinelerra/cfunctions.h:int libancil_get_fd(int parent_fd);
> Binary file ./bin/cinelerra matches
>
> current set of patches to get to that point attached.

so, I do not know how to debug this  filefork (?) hang but disabling
it still makes cin-hv
works (at least media loading/playback) for me


new set attached


>
> >
> >
> > >
> > >
> > >
> > > >
> > > > log attached
> > > >
> > > > >
> > > > > Sent: Thursday, February 15, 2024 at 4:53 PM
> > > > > From: "Andrew Randrianasulu" <[email protected]>
> > > > > To: [email protected], "Cinelerra.GG" 
> > > > > <[email protected]>, "Phyllis Smith" 
> > > > > <[email protected]>, "igor_ubuntu" <[email protected]>
> > > > > Subject: Another attempt at patching cin-hv sources so they build on 
> > > > > my system
> > > > > a bit of mess because I was not sure if lack of .version or
> > > > > .tarball-version in thirdparty/pulseaudio-13 dir was responsible for
> > > > > rebuild failure. Probably .tarball-version, because just .version
> > > > > already in git ...
> > > > >
> > > > > I was surprised my git add was not working, but it was simply due to
> > > > > file being already in git, so you probably can ignore patch 0005
> > > > >
From 461d52409633c5a999ad49ac301f30906028445d Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Fri, 16 Feb 2024 08:59:36 +0000
Subject: [PATCH 2/7] Fix autoreconf in libsndfile, add autoreconf in
 pulseaudio dir (need .tarball-version file there)

---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index e5d7a9d5..f01922a9 100755
--- a/configure
+++ b/configure
@@ -214,7 +214,7 @@ if [ $? -ne 0 ]; then echo "Giving up and going to a movie."; exit 1; fi
 echo CONFIGURING SNDFILE
 #cd thirdparty/libsndfile* && chmod a+x ./configure && ./configure && \
 cd thirdparty/libsndfile* && \
-autoconf && autoreconf && ./configure && \
+autoreconf -fi && ./configure && \
 cd ../..
 
 if [ $? -ne 0 ]; then echo "Giving up and going to a movie."; exit 1; fi
@@ -223,6 +223,7 @@ echo CONFIGURING PULSEAUDIO
 cd thirdparty/pulseaudio* && \
 SNDFILE_PATH=`expr $TOPDIR/thirdparty/libsndfile*` && \
 #./bootstrap.sh && \
+autoreconf -fi && \
 ./configure --disable-dbus --disable-x11 --without-caps LIBSNDFILE_LIBS="-L$SNDFILE_PATH/src/.libs/ -lsndfile" LIBSNDFILE_CFLAGS="-I$SNDFILE_PATH/src" --enable-static && \
 cd ../..
 
-- 
2.29.0

From ec2ac6f52c271a7eed5aafa0cadbb423bfde4b0e Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Fri, 16 Feb 2024 09:30:26 +0000
Subject: [PATCH 3/7] Disable some more stuff (systemd, asyncns) in pulseaudio
 configure

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index f01922a9..a4dc8289 100755
--- a/configure
+++ b/configure
@@ -224,7 +224,7 @@ cd thirdparty/pulseaudio* && \
 SNDFILE_PATH=`expr $TOPDIR/thirdparty/libsndfile*` && \
 #./bootstrap.sh && \
 autoreconf -fi && \
-./configure --disable-dbus --disable-x11 --without-caps LIBSNDFILE_LIBS="-L$SNDFILE_PATH/src/.libs/ -lsndfile" LIBSNDFILE_CFLAGS="-I$SNDFILE_PATH/src" --enable-static && \
+./configure --disable-dbus --disable-x11 --disable-systemd-daemon --disable-systemd-login --disable-systemd-journal  --disable-asyncns  --without-caps LIBSNDFILE_LIBS="-L$SNDFILE_PATH/src/.libs/ -lsndfile" LIBSNDFILE_CFLAGS="-I$SNDFILE_PATH/src" --enable-static && \
 cd ../..
 
 if [ $? -ne 0 ]; then echo "Giving up and going to a movie."; exit 1; fi
-- 
2.29.0

From dec10d7f59571b846c3fa932dfb2fe5a4184ffd5 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Tue, 25 Oct 2022 16:33:47 +0000
Subject: [PATCH 6/7] Fix file.c without USE_FILEFORK

---
 cinelerra/file.C | 35 +++++++++++++++++++++++++++--------
 1 file changed, 27 insertions(+), 8 deletions(-)

diff --git a/cinelerra/file.C b/cinelerra/file.C
index 8b2c90ce..2df647a6 100644
--- a/cinelerra/file.C
+++ b/cinelerra/file.C
@@ -438,12 +438,12 @@ int File::open_file(Preferences *preferences,
 	this->rd = rd;
 	this->wr = wr;
 	file = 0;
-
+#ifdef USE_FILEFORK 
 	if(debug) printf("File::open_file %d is_fork=%d path=%s\n", 
         __LINE__, 
         is_fork,
         asset->path);
-
+#endif
 #ifdef USE_FILEFORK
 	if(!is_fork)
 	{
@@ -595,14 +595,14 @@ int File::open_file(Preferences *preferences,
 			return result;
 //		}
 	}
-#endif // USE_FILEFORK
+
 
 
     if(debug) printf("File::open_file %d is_fork=%d format=%d\n", 
         __LINE__, 
         is_fork,
         this->asset->format);
-
+#endif // USE_FILEFORK
 	if(this->asset->format == FILE_UNKNOWN)
 	{
 // try to discover the format
@@ -707,11 +707,12 @@ int File::open_file(Preferences *preferences,
 	{
 		asset->copy_from(this->asset, 1);
 	}
-
+#ifdef USE_FILEFORK
     if(debug) printf("File::open_file %d is_fork=%d file=%p\n", 
         __LINE__, 
         is_fork,
         file);
+#endif
 // sleep(1);
 
 	if(file)
@@ -731,6 +732,7 @@ int File::open_file(Preferences *preferences,
 // called by the fork to show a progress bar when building a table of contents
 void File::start_progress(const char *title, int64_t total)
 {
+#ifdef USE_FILEFORK
     if(is_fork)
 	{
 		int data_len = sizeof(int64_t) + strlen(title) + 1;
@@ -741,6 +743,7 @@ void File::start_progress(const char *title, int64_t total)
         return;
     }
     
+#endif 
 // show progress only if there's a GUI
     if(BC_WindowBase::get_resources()->initialized)
     {
@@ -771,6 +774,7 @@ void File::start_progress(const char *title, int64_t total)
 
 void File::update_progress(int64_t value)
 {
+#ifdef USE_FILEFORK
     if(is_fork)
 	{
 		file_fork->send_result(FileFork::UPDATE_PROGRESS, 
@@ -779,6 +783,7 @@ void File::update_progress(int64_t value)
         return;
     }
     
+#endif
     if(MWindow::file_progress)
     {
 //        MWindow::file_progress->update(value, 1);
@@ -788,6 +793,7 @@ void File::update_progress(int64_t value)
 
 void File::update_progress_title(const char *title)
 {
+#ifdef USE_FILEFORK
     if(is_fork)
 	{
 		file_fork->send_result(FileFork::UPDATE_PROGRESS_TITLE, 
@@ -796,6 +802,7 @@ void File::update_progress_title(const char *title)
         return;
     }
     
+#endif
     if(MWindow::file_progress)
     {
         MWindow::file_progress->update_title(title, 1);
@@ -807,6 +814,7 @@ void File::update_progress_title(const char *title)
 // returns 1 if the user cancelled
 int File::progress_canceled()
 {
+#ifdef USE_FILEFORK
     if(is_fork)
 	{
 		file_fork->send_result(FileFork::PROGRESS_CANCELED, 0, 0);
@@ -814,6 +822,7 @@ int File::progress_canceled()
         return file_fork->command_token;
     }
     
+#endif
     if(MWindow::file_progress && MWindow::file_progress->is_cancelled())
     {
         return 1;
@@ -824,6 +833,7 @@ int File::progress_canceled()
 
 void File::stop_progress(const char *title)
 {
+#ifdef USE_FILEFORK
     if(is_fork)
 	{
 		file_fork->send_result(FileFork::STOP_PROGRESS, 
@@ -831,7 +841,7 @@ void File::stop_progress(const char *title)
             strlen(title) + 1);
         return;
     }
-
+#endif
     if(MWindow::file_progress)
     {
 		if(!MWindow::is_loading)
@@ -2242,10 +2252,14 @@ VFrame* File::get_read_temp(int colormodel, int rowspan, int w, int h)
     params[1] = rowspan;
     params[2] = w;
     params[3] = h;
+#ifdef USE_FILEFORK
 	file_fork->send_result(FileFork::FILE_READ_TEMP, 
+
         (unsigned char*)&params, 
         sizeof(params));
+
     int result = file_fork->read_command(1);
+
     if(result >= 0)
     {
 // extract the frame buffer
@@ -2256,9 +2270,10 @@ VFrame* File::get_read_temp(int colormodel, int rowspan, int w, int h)
         use_temp_frame = 1;
         return temp_frame;
     }
-
+#endif
 // failed
     return 0;
+
 }
 
 // set pointers to where read_frame output is stored
@@ -2350,7 +2365,11 @@ void File::convert_cmodel(int use_opengl, VDeviceX11 *device)
     }
 
 // only convert from the temp_frame in the server
-    if(use_temp_frame && !is_fork)
+    if(use_temp_frame 
+#ifdef uSE_FILEFORK
+    && !is_fork
+#endif
+    )
     {
         if(!use_opengl)
         {
-- 
2.29.0

From 6443840c1c106bf93d9336f0fa2d86b7f39ebde8 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Thu, 15 Feb 2024 15:14:40 +0000
Subject: [PATCH 1/7] Add .tarball-version to pulseaudio-13.0

---
 thirdparty/pulseaudio-13.0/.tarball-version | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 thirdparty/pulseaudio-13.0/.tarball-version

diff --git a/thirdparty/pulseaudio-13.0/.tarball-version b/thirdparty/pulseaudio-13.0/.tarball-version
new file mode 100644
index 00000000..f0750610
--- /dev/null
+++ b/thirdparty/pulseaudio-13.0/.tarball-version
@@ -0,0 +1 @@
+13.0
-- 
2.29.0

From cab9a59e9b3933e9fd5a422d6c266afc0ce9d9c6 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Thu, 15 Feb 2024 11:11:15 +0000
Subject: [PATCH 7/7] Hack: disable filefork

does not link on rosa 2016
---
 cinelerra/file.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cinelerra/file.inc b/cinelerra/file.inc
index e36344a3..ddffa25d 100644
--- a/cinelerra/file.inc
+++ b/cinelerra/file.inc
@@ -23,7 +23,7 @@
 
 #include "language.h"
 
-#define USE_FILEFORK
+//#define USE_FILEFORK
 // support useless text to movie feature
 //#define USE_SCENE
 
-- 
2.29.0

From 17a146629182026a150e2a88b84b9c7ac24d7f6b Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Fri, 16 Feb 2024 10:17:15 +0000
Subject: [PATCH 5/7] Disable external libs in libsndfile

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 50d61606..ddcc08c9 100755
--- a/configure
+++ b/configure
@@ -214,7 +214,7 @@ if [ $? -ne 0 ]; then echo "Giving up and going to a movie."; exit 1; fi
 echo CONFIGURING SNDFILE
 #cd thirdparty/libsndfile* && chmod a+x ./configure && ./configure && \
 cd thirdparty/libsndfile* && \
-autoreconf -fi && ./configure && \
+autoreconf -fi && ./configure --disable-external-libs && \
 cd ../..
 
 if [ $? -ne 0 ]; then echo "Giving up and going to a movie."; exit 1; fi
-- 
2.29.0

From 0dc1d6d068de6b13e86a5bf0005ca3a72d0c604b Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Fri, 16 Feb 2024 09:33:57 +0000
Subject: [PATCH 4/7] Change ffmpeg/libqucktime configure to add more
 autoreconf, disable vaapi/vdpau

---
 configure           | 3 ++-
 quicktime/configure | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index a4dc8289..50d61606 100755
--- a/configure
+++ b/configure
@@ -141,7 +141,7 @@ FFMPEG_LFLAGS="-L$FFMPEG_DIR/libavformat -L$FFMPEG_DIR/libavcodec -L$FFMPEG_DIR/
 FFMPEG_LIBS="-lavformat -lavcodec -lavutil -lswresample -ldl -lm -lpthread -lz -lbz2 -llzma"
 
 cd $FFMPEG_DIR
-./configure --enable-pthreads --disable-ffplay --enable-nonfree --disable-doc --enable-gpl --nvccflags=-I$CUDA_DIR/include --extra-cflags=-I$CUDA_DIR/include --extra-ldflags=-L$CUDA_DIR/lib64
+./configure --enable-pthreads --disable-vaapi --disable-vdpau --disable-ffplay --enable-nonfree --disable-doc --enable-gpl --nvccflags=-I$CUDA_DIR/include --extra-cflags=-I$CUDA_DIR/include --extra-ldflags=-L$CUDA_DIR/lib64
 if [ $? -ne 0 ]; then 
 ERROR=1
 fi
@@ -234,6 +234,7 @@ if [ $? -ne 0 ]; then echo "Giving up and going to a movie."; exit 1; fi
 
 echo CONFIGURING RAW1394
 cd thirdparty/libraw1394* && \
+autoreconf -fi && \
 ./configure --enable-shared=no && \
 ln -sf src libraw1394 && \
 cd ../..
diff --git a/quicktime/configure b/quicktime/configure
index 1cd11629..bdaef549 100755
--- a/quicktime/configure
+++ b/quicktime/configure
@@ -70,13 +70,13 @@ if [ $? -ne 0 ]; then echo "Giving up and going to a movie."; exit 1; fi
 LIBFAAD_PATH=`expr thirdparty/faad2*/`
 
 echo "CONFIGURING FAAD"
-cd $LIBFAAD_PATH && ./configure && sed 's/       /\t/' Makefile > Makefile2 && mv -f Makefile2 Makefile && cd ../..
+cd $LIBFAAD_PATH && autoreconf -fi && ./configure && sed 's/       /\t/' Makefile > Makefile2 && mv -f Makefile2 Makefile && cd ../..
 #cd $LIBFAAD_PATH && ./configure && cd ../..
 
 if [ $? -ne 0 ]; then echo "Giving up and going to a movie."; exit 1; fi
 
 echo "CONFIGURING FAAC"
-cd thirdparty/faac* && ./configure && cd ../..
+cd thirdparty/faac* && autoreconf -fi && ./configure && cd ../..
 
 if [ $? -ne 0 ]; then echo "Giving up and going to a movie."; exit 1; fi
 
-- 
2.29.0

-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to