Including symbolic links in a JAR

I'm trying to package a webapp that has a symbolic link for the images directory. The images will live on another server where they can be shared across all servers. I'm building the jar using:
jar cvf myapp.war *
When dropping the war into the resin webapps directory, it automatically unpacks it. It appears the symbolic link is turning into a regular directory when it is unpacked. I also tried just unpacking it using "jar xf myapp.war" and it looses the symbolic link also.
Is there any way to retain the symbolic link information in a jar? Any other creative ways to accomplish what I am trying to do?
Thanks,
Saul

Nevermind, I found a way to do it within Resin. It can map virtual directories through its config.
Thanks

Similar Messages

  • Symbolic links in jar

    hi
    i am facing some problem with symbolic links in JAR.
    1)i create a jar file of a directory which has symbolic links in it.
    2)when i unjar it the symbolic links are lost and instead those links contains the data which they were referencing to, which means that the links are dereferenced.
    Can any of u help me out of this? Do jar or zip maintains the symbolic link or not?
    thanks in advance.
    Vipul

    jar-files are typically moved away, so having a symlink in it would be a problem, cause it would mostly be invalid on the target host.
    A few hosts run windows which doesn't even know symbolic links.
    As jar is a kind of zip - how should you zip a symbolic link?
    The idea of symbolic links is, to show some files, which are in fact at some other place, as if they were there.
    Therefor jar 'believes' that those files are there.
    If it would check the file-type, and find out, it is a symlink, what should it do?
    If you don't move your zip around, what's the benefit of a jar?
    It's smaller, because it's packed.
    But you may not make a symlink smaller.

  • Does ucf.jar handle symbolic links?

    When bulding a .zxp package using ucf.jar on the command line, I wish to package symbolic links which point at files which are not necessarily here on my system - they point at elements which will be installed as part of the extension.
    When ucf.jar encounters such a symbolic link, however, it stops, saying “no such file” with the name of the link.
    Is this expected behaviour? If so, when will this bug be fixed? Let me know if more details are required!

    If the file exists, then the pointed-to files are packaged, instead of the symbolic link itself, which is not what I'm after either; this is a link which will be correct on the destination after the bundle is unpacked, but which may not yet be present on the system doing the packaging. I think this may be related to http://forums.adobe.com/message/4681087#4681087 , though it is not exactly the same problem.
    Perhaps to rephrase my question then:
    How may I package a symbolic link using ucf.jar?
    At the moment there are two options:
    • Destination pointed to by link does not exist -> failure with “file not found”.
    • Destination pointed to by link does exist -> package is built containing the destination file, not the symbolic link.
    Neither of these behaviours is what I want: I want to package the link!

  • Does ucf.jar preserve symbolic links in native plugins

    Hi everybody,
    First of all, this question is not the same as:
    Does ucf.jar handle symbolic links?
    My question is: I have a native plugin for InDesign CC 2014 (.InDesignPlugin) on a Mac. I wish to package it (with some other stuff: another zxp containing Flex panels, and some Java jars) in a ZXP. To do so, there are two ways of doing it: using ucf.jar or using ZXPSignCmd.
    This post here decided me to use ucf.jar, because of this citation:
    "You may ask why the ucf.jar and not ZXPSignCmd: the reason is that, in order to be CS6 compatible, ucf.jar is the tool of choice."
    There are no explanation, and I decided to trust the author. Maybe is it an error?
    I am able to construct a ZXP and install it with the extension manager. But the installed plugin does not work well. The reason is (I'm pretty sure of it) all the symbolic links of the plugins were replaced by the target of the links. I say I'm pretty sure, because when I use directly the plugin before packaging it in the ZXP, everything is fine. The only difference I could find are these symbolic links that have been transformed.
    In parallel, I tried packaging the ZXP using ZXPSignCmd, and this seems to work fine. This surprised me, because of the link to the blog I mentioned above.
    My ZXP must work with InDesign from CS5 to CC 2014.
    The question is: how to handle symbolic links on mac with ucf.jar?
    Bonus question: why should I not use ZXPSignCmd?
    Thanks

    If the file exists, then the pointed-to files are packaged, instead of the symbolic link itself, which is not what I'm after either; this is a link which will be correct on the destination after the bundle is unpacked, but which may not yet be present on the system doing the packaging. I think this may be related to http://forums.adobe.com/message/4681087#4681087 , though it is not exactly the same problem.
    Perhaps to rephrase my question then:
    How may I package a symbolic link using ucf.jar?
    At the moment there are two options:
    • Destination pointed to by link does not exist -> failure with “file not found”.
    • Destination pointed to by link does exist -> package is built containing the destination file, not the symbolic link.
    Neither of these behaviours is what I want: I want to package the link!

  • Clustering, unix symbolic links, and war files

              Hello,
              we use symbolic links in our web application to a large shared storage device.
              This works when running a single server, when the application is not a war file.
              When we cluster the application, the admin server creates a war file, blindly
              follows the symbolic links and tries to include all files in the shared storage
              device. Bad!
              Is there a work-around to this problem in a clustered configuration?
              -Thanks-
              

              hi,
              can you tell me know you deploy your app to the cluster member
              manually? do you run each member as an admin server? how do
              you group them into a cluster then?
              thanks,
              yan
              "Philippe Lantin" plantin_AT_cobaltgroup.com wrote:
              >
              >
              >Yes, this method works. I did want to keep a central admin server to
              >avoid have
              >multiple configuration files, and deploy new code to only one location.
              >I suppose
              >I could do this via a shared drive.
              >
              >I have an open case with BEA on this issue. The root of the problem appears
              >to
              >be that the jar format isn't equipped to deal with symbolic links. Webapps
              >which
              >are exploded in directories lose their symbolic links when packaged in
              >a war.
              >
              >Thanks,
              >
              >Philippe Lantin
              >
              >"Cameron Purdy" <[email protected]> wrote:
              >>I've never used that centralized deployment feature; rather I've always
              >>configured each of the cluster members manually, partly because of the
              >>bug
              >>in the admin server in 6.0 (?) that would not allow it to deploy to
              >the
              >>cluster.
              >>
              >>Can you try to deploy the application manually?
              >>
              >>Peace,
              >>
              >>--
              >>Cameron Purdy
              >>Tangosol Inc.
              >><< Tangosol Server: How Weblogic applications are customized >>
              >><< Download now from http://www.tangosol.com/download.jsp >>
              >>
              >>
              >><Philippe Lantin plantin_AT_cobaltgroup.com> wrote in message
              >>news:[email protected]...
              >>>
              >>>
              >>> Hi,
              >>>
              >>> our web application is not a war when we use a single server. We simply
              >>use a
              >>> directory under "applications". This method works correctly with symbolic
              >>links
              >>> under weblogic v.6.1.
              >>>
              >>> To test our application in the cluster, we use the previous single
              >>server
              >>as the
              >>> administration server, leaving the application directory intact. We
              >>create
              >>a cluster
              >>> definition with it's target members using this web application.
              >>>
              >>> When we start up the cluster members, the administration server creates
              >>a
              >>war
              >>> file that is distributed to to cluster members. This is not somthing
              >>we
              >>control,
              >>> this is automatically done by weblogic.
              >>>
              >>> This is where we run into trouble. When the admin server creates the
              >>war
              >>file
              >>> to distribute to the cluster target, it follows the symbolic links
              >>and
              >>recursively
              >>> includes all files and directories. This creates a huge war file,
              >and
              >>is
              >>obviously
              >>> not the behavior we are looking for.
              >>>
              >>> Creating a war file manually doesn't help, since jar doesn't support
              >>symbolic
              >>> links.
              >>>
              >>> Thanks,
              >>>
              >>> Philippe Lantin
              >>>
              >>>
              >>> "Cameron Purdy" <[email protected]> wrote:
              >>> >I don't understand at which point you are running into a problem.
              >>> >
              >>> >> we use symbolic links in our web application to a large shared
              >storage
              >>> >device.
              >>> >
              >>> >That is not uncommon, for example to use a Sun storage box or EMC
              >>with
              >>> >some
              >>> >fault tolerant characteristics to host the application images etc.
              >>> >
              >>> >> This works when running a single server, when the application is
              >>not
              >>> >a war
              >>> >file.
              >>> >
              >>> >Do you mean when it is "exploded"? Does it work with a single server
              >>> >when
              >>> >the app is a war file?
              >>> >
              >>> >> When we cluster the application, the admin server creates a war
              >>file,
              >>> >blindly
              >>> >> follows the symbolic links and tries to include all files in the
              >>shared
              >>> >storage
              >>> >> device.
              >>> >
              >>> >This is the part that I don't follow. Are you using 6.1sp1? What
              >are
              >>> >the
              >>> >steps that you are taking with the admin server?
              >>> >
              >>> >Peace,
              >>> >
              >>> >--
              >>> >Cameron Purdy
              >>> >Tangosol Inc.
              >>> ><< Tangosol Server: How Weblogic applications are customized >>
              >>> ><< Download now from http://www.tangosol.com/download.jsp >>
              >>> >
              >>> >
              >>> ><Philippe Lantin plantin_AT_cobaltgroup.com> wrote in message
              >>> >news:[email protected]...
              >>> >>
              >>> >>
              >>> >> Hello,
              >>> >>
              >>> >> we use symbolic links in our web application to a large shared
              >storage
              >>> >device.
              >>> >> This works when running a single server, when the application is
              >>not
              >>> >a war
              >>> >file.
              >>> >> When we cluster the application, the admin server creates a war
              >>file,
              >>> >blindly
              >>> >> follows the symbolic links and tries to include all files in the
              >>shared
              >>> >storage
              >>> >> device. Bad!
              >>> >>
              >>> >> Is there a work-around to this problem in a clustered configuration?
              >>> >>
              >>> >> -Thanks-
              >>> >>
              >>> >>
              >>> >>
              >>> >
              >>> >
              >>>
              >>
              >>
              >
              

  • Symbolic link error when exporting during heterogeneous system copy

    My enviroment is ECC6.0/Oracle 10.2.0.2/SUN Solaris 10 . I'm performing  heterogeneous system copy to Oracle 10.2.0.2/AIX 6.1 enviroment.
    I've succesfully exported & imported two systems ie DEV & Solutin Manager , but PRD system has an OS problem with symbolic links ie Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS
    I want to export both ABAP & JAVA stack but only the java stack is getting  picked.
    Below  is part of the resultng sapinst.log 
    Thanks
    INFO 2011-09-05 10:44:30.573
    Execute step verifyJavaHome of component |NW_Export|ind|ind|ind|ind|0|0|NW_getJavaHome|ind|ind|ind|ind|2|0
    INFO[E] 2011-09-05 10:44:33.851
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/._), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:44:33.851
    FSL-02061  Link /._ is invalid: Unable to link a link to itself.
    INFO 2011-09-05 10:44:46.118
    Execution of the command "/usr/j2sdk1.4.2_09/bin/java -classpath /tmp/sapinst_exe.29247.1315208256/JAR/ins-j2ee.jar com.sap.ins.j2ee.GetSystemProperty" finished with return code 0. Output: #
    #Mon Sep 05 10:44:45 EAT 2011
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path=/usr/j2sdk1.4.2_09/jre/lib/sparc
    java.vm.version=1.4.2_09-b05
    java.vm.vendor=Sun Microsystems Inc.
    java.vendor.url=http\://java.sun.com/
    path.separator=\:
    java.vm.name=Java HotSpot(TM) Client VM
    file.encoding.pkg=sun.io
    user.country=US
    sun.os.patch.level=unknown
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=/oracle/PRD/INSTDIR/sapinst_dir
    java.runtime.version=1.4.2_09-b05
    java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
    java.endorsed.dirs=/usr/j2sdk1.4.2_09/jre/lib/endorsed
    os.arch=sparc
    java.io.tmpdir=/var/tmp/
    line.separator=\n
    java.vm.specification.vendor=Sun Microsystems Inc.
    os.name=SunOS
    sun.java2d.fontpath=
    java.library.path=/usr/j2sdk1.4.2_09/jre/lib/sparc/client\:/usr/j2sdk1.4.2_09/jre/lib/sparc\:/usr/j2sdk1.4.2_09/jre/../lib/sparc\:/tmp/sapinst_exe.29247.1315208256\:/usr/openwin/lib\:/usr/lib
    java.specification.name=Java Platform API Specification
    java.class.version=48.0
    java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory
    os.version=5.10
    user.home=/
    user.timezone=Africa/Nairobi
    java.awt.printerjob=sun.print.PSPrinterJob
    file.encoding=ISO8859-1
    java.specification.version=1.4
    java.class.path=/tmp/sapinst_exe.29247.1315208256/JAR/ins-j2ee.jar
    user.name=root
    java.vm.specification.version=1.0
    java.home=/usr/j2sdk1.4.2_09/jre
    sun.arch.data.model=32
    user.language=en
    java.specification.vendor=Sun Microsystems Inc.
    java.vm.info=mixed mode
    java.version=1.4.2_09
    java.ext.dirs=/usr/j2sdk1.4.2_09/jre/lib/ext
    sun.boot.class.path=/usr/j2sdk1.4.2_09/jre/lib/rt.jar\:/usr/j2sdk1.4.2_09/jre/lib/i18n.jar\:/usr/j2sdk1.4.2_09/jre/lib/sunrsasign.jar\:/usr/j2sdk1.4.2_09/jre/lib/jsse.jar\:/usr/j2sdk1.4.2_09/jre/lib/jce.jar\:/usr/j2sdk1.4.2_09/jre/lib/charsets.jar\:/usr/j2sdk1.4.2_09/jre/classes
    java.vendor=Sun Microsystems Inc.
    file.separator=/
    java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
    sun.io.unicode.encoding=UnicodeBig
    sun.cpu.endian=big
    sun.cpu.isalist=sparcv9vis2 sparcv9vis sparcv9 sparcv8plusvis2 sparcv8plusvis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc
    INFO 2011-09-05 10:44:47.076
    Execution of the command "/usr/j2sdk1.4.2_09/bin/java -classpath /tmp/sapinst_exe.29247.1315208256/JAR/ins-j2ee.jar:/tmp/sapinst_exe.29247.1315208256/JAR/sapxmltoolkit.jar -d64 com.sap.ins.j2ee.TestClassLoader" finished with return code 0. Output: CORRECT
    INFO 2011-09-05 10:44:47.572
    Execute step verifyPolicy of component |NW_Export|ind|ind|ind|ind|0|0|NW_getJavaHome|ind|ind|ind|ind|2|0
    INFO 2011-09-05 10:44:47.715
    Execute step setNWOption of component |NW_Export|ind|ind|ind|ind|0|0|NW_getJavaHome|ind|ind|ind|ind|2|0
    WARNING 2011-09-05 10:44:47.944
    Could not determine a valid JAVA_HOME directory from the environment.
    INFO 2011-09-05 10:44:48.86
    Execute step assignUsersToSapinstGroup of component |NW_Export|ind|ind|ind|ind|0|0
    INFO 2011-09-05 10:44:48.890
    Account sapinst already exists.
    INFO 2011-09-05 10:44:48.894
    Account prdadm already exists.
    INFO 2011-09-05 10:44:48.917
    Account oraprd already exists.
    INFO 2011-09-05 10:44:49.73
    Execute step useDatabaseMethod of component |NW_Export|ind|ind|ind|ind|0|0
    INFO 2011-09-05 10:44:49.217
    Execute step setDatabaseMethodOra of component |NW_Export|ind|ind|ind|ind|0|0
    INFO 2011-09-05 10:44:49.341
    Execute step setDatabaseMethodDB6 of component |NW_Export|ind|ind|ind|ind|0|0
    INFO 2011-09-05 10:44:49.480
    Execute step mainExportParameters of component |NW_Export|ind|ind|ind|ind|0|0
    INFO[E] 2011-09-05 10:44:52.251
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/._), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:44:52.252
    FSL-02061  Link /._ is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.760
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/cntrl), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.761
    FSL-02061  Link /oracle/PRD/cntrl is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.762
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/._), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.762
    FSL-02061  Link /oracle/PRD/._ is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.763
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/sdubhibq), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.764
    FSL-02061  Link /oracle/PRD/sdubhibq is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.765
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/sduccayx), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.765
    FSL-02061  Link /oracle/PRD/sduccayx is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.766
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/inventory), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.767
    FSL-02061  Link /oracle/PRD/inventory is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.768
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/OPatch), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.768
    FSL-02061  Link /oracle/PRD/OPatch is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.769
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/assistants), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.770
    FSL-02061  Link /oracle/PRD/assistants is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.771
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/bin), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.772
    FSL-02061  Link /oracle/PRD/bin is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.773
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/clone), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.773
    FSL-02061  Link /oracle/PRD/clone is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.774
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/crs), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.775
    FSL-02061  Link /oracle/PRD/crs is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.776
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/css), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.777
    FSL-02061  Link /oracle/PRD/css is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.778
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/ctx), line (346) in file (syuxclink.cpp).
    INFO[E] 2011-09-05 10:45:01.778
    FSL-02061  Link /oracle/PRD/ctx is invalid: Unable to link a link to itself.
    INFO[E] 2011-09-05 10:45:01.779
    FSL-00001  System call failed. Error 90 (Number of symbolic links encountered during path name traversal exceeds MAXSYMLINKS) in execution of system call 'realpath' with parameter (/oracle/PRD/dbs), line (346) in file (syuxclink.cpp).

    Hi,
    In PRD system, u might have craeted many symbolic links in /oracle/PRD fileystem . This should be avoided. Symbolic link should not be created in /oracle/PRD ...
    Please check why symbolic links are created and get help from System Operation team . Please becareful to unlink symbolic links that are created by non-SAP. Make sure to perform full  offline backup .
    Please get the help from Unix System Operation team. Also it does not makes any sense to increase value of Unix parameter for maximum symbolic links.
    Regards
    APR

  • Chkconfig does not create right symbolic links

    Hello all,
    I am just adding a script to automate start / stop during Oracle Linux reboot. I figured out that the symbolic links are not created in the right order. To prove that, I create a small script for test purposes.
    =====================================================
    # #!/bin/sh
    # Name: init.test
    # chkconfig: 45 80 20
    # description: Script test for chkconfig
    echo "This is a test script only. chkconfig is not creating correct symbolic links."
    =====================================================
    Then I used chkconfig --add init.test
    It should be created entries for levels 4-5 only, but it creates more soft links in rc.d directories.
    find /etc -name "*init.test" | sort
    /etc/rc.d/init.d/init.test
    /etc/rc.d/rc0.d/K20init.test
    /etc/rc.d/rc1.d/K20init.test
    /etc/rc.d/rc2.d/K20init.test
    /etc/rc.d/rc3.d/K20init.test
    /etc/rc.d/rc4.d/S80init.test
    /etc/rc.d/rc5.d/S80init.test
    /etc/rc.d/rc6.d/K20init.test
    Even that chkconfig show the correct levels, I am just curious why it created more kill soft links in rc.d directories.
    chkconfig --list init.test
    init.test      0:off     1:off     2:off     3:off     4:on     5:on     6:off
    Someone could try to explain to me why the kill script has been added to runlevel 0, 1, 2, and 6? Am I missing something here?
    Appreciate your help on this.
    Cesar
    Edited by: CESARDBAIBM on Feb 18, 2013 2:43 AM

    see
    man chkconfigwhere you can find a good example including explanation
           For example, random.init has these three lines:
           # chkconfig: 2345 20 80
           # description: Saves and restores system entropy pool for \
           #              higher quality random number generation.
           This says that the random script should be started in levels 2,  3,  4,
           and 5, that its start priority should be 20, and that its stop priority
           should be 80.  You should be able to figure out  what  the  description
           says;  the \ causes the line to be continued.  The extra space in front
           of the line is ignored.

  • "/usr/lib is not a symbolic link" and testify+libjpeg7 problem

    everytime I update pacman or do a "ldconfig" I get this:
    /sbin/ldconfig: /usr/lib/ is not a symbolic link
    this appeared by the time i installed libjpeg7 from aur (though I'm not 100% sure libjpeg7 is responsible). I've looked through google trying to find out what it means and if it is a problem, but nada! but, while at libjpeg, even though I installed libjpeg7 I can't compile testify (spotify linux-client). I get this error:
    In file included from image.c:31:
    jmemsrc.h:26: error: conflicting types for 'jpeg_mem_src'
    /usr/include/jpeglib.h:959: note: previous declaration of 'jpeg_mem_src' was here
    make: *** [image.o] Error 1
    make: *** Waiting for unfinished jobs....
    when i make /usr/include/jpeglib.h link to /usr/include/libjpeg7/jpeglib.h the compile and install is successful, BUT, testify crashes telling me:
    Wrong JPEG library version: library is 80, caller expects 70
    if more info's required, I'll provide andif I'm raising a problem already raised (I know there's been a lot of hassle since the upgrade), I'll gladly follow a link to solution.
    edit: the "not a symbolic link" appeared after installing libspotify0.0.3. installed it on another computer, and same thing appeared. though, would still like to know why it appears...
    Last edited by serein (2010-03-27 17:09:58)

    Mr.Elendig wrote:Whatever you are trying to build has to be patched for libjpeg8
    to much to do to get libjpeg7 working the way i want it to?
    i've looked through the source, but i don't know enough to get it working... crap.
    and its xtestify i'm trying to build: http://xtestify.sourceforge.net/

  • Issue with stat() and symbolic links

    Has anyone experienced the following issue with stat() ?
    #include <stdio.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <unistd.h>
    int main( int argc, char **argv )
    struct stat buf;
    if( argc < 2 )
    return 0;
    char *link = strdup( argv[1] );
    if( stat( link, &buf ) == -1 ) {
    puts( "Error" );
    return 1;
    if( ( S_IFLNK & buf.st_mode ) == S_IFLNK )
    puts( "Is link" );
    else
    puts( "Not link" );
    return 0;
    If you compile and run the above code (or similar code), you would expect it to report that the given argument is a symbolic link when indeed the argument is a symbolic link; though, instead of the expected happening, the following happens as shown below:
    $ gcc -o islink islink.c
    $ ln -s /tmp link
    $ ./islink link
    Not link
    $
    Is anyone else experiencing this? My filesystem is ext4. The same error happens when using the S_ISLNK() macro.

    man 3p lstat
    DESCRIPTION
           The lstat() function shall be equivalent to stat(),  except  when  path
           refers  to  a symbolic link. In that case lstat() shall return informa‐
           tion about the link, while stat() shall return  information  about  the
           file the link references.

  • SMB Symbolic Links disabled after update to 10.6.4

    I just found out how to fix Access Denied messages for any WIndows share that includes a symbolic link directory. Due to a security issue the default was changed to:
    \[global\]
    wide links = no
    This disables access to symbolic links.
    See http://www.samba.org/samba/news/symlink_attack.html
    I changed it back to yes for now to get it working. Will look into this more when the network is not in use. This should have been noted in the smb.conf file.

    For the non-geeks in the audience. 10.6.4 broke access to smb folders being shared by a 10.6.4 machine. My popcorn hour media stremer would no longer use symbolic links as a means to find all my movies spread out on 2 disks. It could see the links as files and clicking on them gave an error message. In my case these links a symbolic links of the folders on my 2 movie drives, labeled sci-fi, westerns, etc. All the links are in my Movies folder in my main user folder. This is setup to be a shared folder and is accessed as an SMB share with my media streamers.
    Apple was apparently fixing a security issue related to symbolic links but killed the ability to set up and use symbolic links like I need them for my home network media streamers.
    To fix do the following:
    Fixing the symbolic link issue with Samba/SMB access problem in 10.6.4
    
* Open smb.conf on the samba server in your favorite text editor
    put the following in a terminal window:
    sudo nano /etc/smb.conf
    
* Find the global samba settings section under [global] and edit the following line:
    wide links = no
    change to:
    wide links = yes
    This enables access to symbolic links.
    nano is a text editor for the terminal. Use the arrow keys to get to the word no in the above string delete no and type yes.
    The control-x to exit and you will be asked to save the file.
    Hit return to save the modified file, do not choose any of the save options.
    For the terminal editor nano, control is the modifier key in dialogs that looks like a upside-down-superscript v.

  • The dangers of robocopy and symbolic links

    I was backing up a laptop to a USB drive overnight, using robocopy to copy the directory structure of C:\Users on a Win 7 Pro build. The process ran all night. By the next morning, the copy had failed due to insufficient space on the drive. The data being
    backed up was only 120 GB and the drive was an empty 500 GB. According to the log, the process only made it about 20% of the way before it got caught in an endless loop of copying the C:\Users\<username>\Application Data link. I had forgot to include
    the /xjd switch in the job file it seems.
    Unfortunately, now I am unable to delete the "Application Data" folder as I get a "...filenames are too long for the destination folder..." error. Upon inspection, the folder appears to point to itself, creating a seemingly endless subdirectory
    tree. I've tried manually deleting parts of the directory structure through cut, paste and delete operations but I gave up after 2 hrs. I then tried writing a batch script using robocopy to mirror an empty folder, hoping that would remove the "Application
    Data" folder, but that too fails after a few minutes once the directory path gets too long.
    I've checked online but haven't been able to find any tool which would allow me to delete the circular link that was created by robocopy. Does anyone have suggestions on how to remove this file structure besides formatting the drive?

    From all the other threads I've read, I'm beginning to realize this just isn't an option with this O/S.
    Thanks for the help and suggestions.
    I got intrigued by this problem, then spent a couple of hours on finding a solution. You can use the batch file below to deal with your circular folder. It will deal with any folder, no matter how deep.
    @echo off
    goto Start
    This batch file will delete circular directories that are 
    created by robocopy.exe when used without the /XJ switch.
    The batch file will warn you before it deletes any folder.
    Pressing Ctrl+C will terminate it.
    Usage: rdd "Folder Name"
    22.3.2013 FNL
    :Start
    set msg=
    if [%1] EQU [] goto Error
    if [%2] NEQ [] goto Error
    goto Initial
    Initial checks:
    - Is this an elevated command prompt?
    - Does the user want to proceed?
    - Does the folder exist
    :Initial
    set r=%random%
    for /F "delims=" %%a in ('echo %1') do set Stripped='%%~a'
    set msg=You must execute this batch file under elevated privileges.
    dir \ 1> %SystemDrive%\%r%.txt 2>nul || goto Error
    del %SystemDrive%\%r%.txt
    set msg=Folder %Stripped% not found
    pushd %1 2>nul || goto Error
    set msg=Exiting
    set /p reply=About to delete the folder %1. Go ahead? (Y/N) 
    if /i not "%reply%"=="Y" goto Error
    set Level=0
    for /F %%a in ('dir /b \RDD_Folder* 2^>nul') do rd \%%a
    set Args=WScript.Arguments
    echo WScript.Echo Left(%Args%(0), InStrRev(%Args%(0), "\")-1) >"%temp%\rdd.vbs"
    goto Loop1
    Create a number of junctions to various points
    inside the circular directory tree.
    Prerequisite: mklink (exists under Windows 7)
    :Loop1
    for /F "delims=" %%a in ('dir /b /s 2^>nul') do set FullPath=%%a
    if "%FullPath:~200,4%" EQU "" (echo. & goto Loop2)
    for /F "delims=" %%a in ('cscript.exe //nologo "%temp%\rdd.vbs" "%FullPath%"') do cd "%%a"
    set msg=Unable to create junction.
    set /a Level=%Level%+1
    echo Creating junction \RDD_Folder%Level%
    mklink /d \RDD_Folder%Level% "%CD%" > nul|| (popd & goto Error)
    cd "\RDD_Folder%Level%"
    goto Loop1
    Delete the circular folders, working from
    the inside to the outside, then delete the
    symbolic links.
    :Loop2
    for /f "delims=" %%a in ('dir /b "\RDD_Folder%Level%"') do set ToDelete="\RDD_Folder%Level%\%%a"
    echo Deleting %ToDelete%
    pause
    rd /s /q %ToDelete%
    rd \RDD_Folder%Level%
    set /a Level=%Level%-1
    if %Level% NEQ 0 (
      cd \RDD_Folder%Level%
      goto Loop2
    popd
    echo Deleting %1
    pause
    rd /s /q %1
    goto :eof
    Error exit
    :Error
    echo.
    if "%msg%"=="" set msg=Usage:  rdd  "FolderName"
    echo %msg%

  • HELP! Creating symbolic link to home folder for installer DMG

    Guys,
    I'm in a bit of a bind. I need to create a symbolic link for an installer DMG to distribute a communal Bookmarks.plist to all the computers in my department. Unfortunately 'ln -s ~/Library/Safari /Volumes/Bookmarks/.' doesn't do the trick! While it creates an alias that functions on my machine, when that DMG is compiled and distributed from the original sparse image, the alias fails to link to that location on whoever attempts to mount the DMG. Any ideas?? Thanks!

    Symbolic links break when you change the machine on which they were created. Use an standard Mac alias instead as I believe they will work as expected.

  • How can I stop from getting the "Firefox is already running" error message when trying to open links and FF has already been opened through a symbolic link?

    I use symbolic links and program shortcuts as a way to easily open different Firefox profiles ie. one for casual/personal use and another for work. This works well, but I get the "Firefox is already running, but is not responding" error message if I try to open external links with FF as my default browser. FF is actually open and running fine, but I guess it doesn't acknowledge this fact because of how I'm originally starting the process.
    I wasn't able to add the symbolically linked executables to the default program pane. Is there a way to bypass this error or other way to fix this?
    The solution to the question linked below is what I'm using to open the different FF profiles.
    http://superuser.com/questions/255312/pin-same-app-multiple-times-in-windows-7

    hello, this is probably happening when you run the default profile with the -no-remote switch.
    http://kb.mozillazine.org/Profile_in_use

  • Can I Create A Symbolic Link to folders stored on an SMB Share folder?

    Hello,
    I am very new to Unix and was hoping that someone could point me in the right direction with regards to Symbolic links and an SMB share folder ....
    Have purchased an ext. LAN Drive enclosure (http://www.macpower.com.tw/products/hdd3/pleiades/pd_usblan) which connects to my wireless router via ethernet like my G5 (main Mac) - our iBook connects via Airport. I have copied all my general documents/files to the SMB share folder on the ext. drive so that I can access them from the G5 and also the iBook.
    However I'd also like to be able to store my actual Mail folder (/Users/Mark/Library/Mail/), , Safari folder (/Users/Mark/Library/Safari) + my Address Book and other folders sitting in the Application Support folder on my SMB share so all important docs/folders are in the one place. I've tried storing these folders on the SMB share and putting an Alias to these back in Users/Mark/Library/Mail etc but of course an Alias doesn't work.
    Question 1: Can I create a symbolic link to these files if these are stored on an SMB share folder? If so, could you please tell me exactly what I'd need to type into Terminal? My SMB Share path is smb://STORAGE-XXXX/MARK
    I have copied my iPhoto library and iTunes library to the SMB share and are working fine.
    Question 2: Is it possible/worth attempting to move my whole home folder to the SMB share folder? Ideally, I'd like to be able to access my Mail from the iBook as well. If I could log into either the G5 or the iBook and access my latest Mail, Address Book and other Application Settings, that would be perfect. Would this be possible?
    Thanks
    Mark.
    Dual 1.8GHz G5 (Rev.B), 2Gig RAM, 9600XT   Mac OS X (10.4)  

    Dear Mark,
    Yes you can. The command to create a link will look something like this:
    $ ln -s thisFolder /Users/mark/thatFolder
    I did this while I was hosting a microsoft based game. This put all of the players into a common directory.
    SMB just resolved the link and everything worked fine.
    However, as I understand it, some other applications do NOT work very well with links. As I have NOT tried it with other applications, I fear I can be of NO help to you in this matter.
    The only way to find out which applications work with links is to try them and see what happens.
    Best of luck,
    Kurt

  • Maintaining Multiple Arch Installs, Symbolic Links, BTRFS

    Hi again.
    A quick update on my previous post (https://bbs.archlinux.org/viewtopic.php?id=164627). The GRUB problem I was having seems to have stopped. I got a very useful recommendation regarding pacman and XBMC still hasn't been fixed, but is fully usable with the workaround I am using and have just gotten used to it so it's not so much of an issue now. I think now that it should be marked as solved but how do I do that? Was looking around but guess I'm just missing it.
    Anyway now I have a few more issues, or more just questions I guess that I would like help on. Recently I found an old laptop of mine and so to learn more about the Arch system I decided to try and install Arch. Now this laptop is around 5-6 years old and I haven't been able to get WiFi working fully for around 3 years and eventually upgraded 2 years ago to my current laptop. The WiFi was always 'soft-locked' until after about 4-5 restarts (in windows it was fine, but any Linux Distribution post Ubuntu 10.10 had the same issue). The issues still remains in other distributions even after "rfkill all". In Arch ever since running that command (the first boot from install media the issue occurred) this laptops WiFi has been brilliant. I also installed XFCE4 desktop for speed of set up. Now I'm looking to give my laptop to my younger brother before he heads of to University in September until he can afford a new one (or he breaks this one - somehow his laptops never last), as this old one now runs better than it ever did on Windows Vista. My girlfriend is also looking for me to install Linux again on her laptop (we used WUBI in the past) but a full install since her Windows Vista laptop is near unusable in Windows. So far I have got hamachi set up between my new and old laptop, this gives static IP addresses and will allow me to SSH into the laptop for upgrades every so often. I'm planning to do the same for my girlfriends laptop. Would I be stupid to do this via Arch? I've heard it breaks often and I don't want to have to be doing fixes for other peoples laptops as I won't have the time to do so. I guess the reason I want to use Arch is both laptops are quite old and Arch has breathed new life into my old one.
    Secondly I have symbolic links set up in my "Music" and "Video" folders in my home directory to their counterparts in my Windows partition. However my music player "Clementine" doesn't find every album in the music folder. Does symbolic links have "flaws" like this or is it more likely to be my music player behaving badly with symbolic links? I would try another music player but I can't seem to find one which plays FLAC files with external / embedded .cue files so can't really test this out. I can of course link directly to the location but I thought I would ask, just to learn more I guess.
    Now when I installed Arch using BTRFS file system I didn't know that I had to mount using compression immediately, I thought I could add it to the fstab at a later point - obviously not. Now I found a command which will defragment my drive and supposedly compress everything. However this command doesn't make any sense to me and I don't want to just run it without knowing what it does. Could anyone other me any insight into this please? Also does defragmentation after the fstab mount options have been added cause the compression?
    "find -xdev -type f -exec btrfs fi defrag '{}' \;"
    or I also found
    "btrfs filesystem defragment ~/stuff"
    Thanks for any help, I understand this post is quite long so I really appreciate it.
    Last edited by BradPJ (2013-06-13 10:19:47)

    Ah right thanks. I thought as much which is why I asked before I did so, I'll find another distribution. Just where I've been running Arch for a few weeks now and haven't had to do any maintenance at all really, but weren't too sure what I'd be in for in the long-run. I mean to be fair I was always planning on another distribution but as I was playing around at first on the old laptop I ended up with my current way to SSH in and just wondered if it would be viable to do it this way.
    I knew it would be a driver issue at the core of my problem, just weren't too sure if it something else could of been affecting it. Guess I'll try and find another distribution which runs near as new software to Arch as possible as it seems the issue has been fixed in newer versions of the kernel and drivers. Granted the old laptop had been unused for around a year so any update in the last year could of fixed it in this case. Thanks for your input!
    Last edited by BradPJ (2013-06-13 11:35:16)

Maybe you are looking for

  • How to adjust the path of a tween using actionscript

    I'm a novice at Actionscript3 and would greatly appreciate an answer to what seems like a simple question: Here's my project: http://home.comcast.net/~samiri/director/mortals/amadoFlashPortrait/index.htm Click on the gray scale frame images. A larger

  • 'SHIFT' key on Satellite Pro C660 is not working

    G'day, I have a minor problem with my Toshiba Satellite Pro C660 notebook computer. Unfortunately I had to remove the keyboard and in doing so dislodged the flimsy plug connecting it to the computer. The 'Shift' key has refused to work since. All the

  • Error code 6 on Rescue & Recovery 4.5

    Hi, Theres a error code 6 on the installation process of R&R 4.5 on a win7 clean installation. Anyone knows whats the error about? (C++ is installed) Regards W530 2447-2EG W7 x64, T61p 6460-8WU W7 x64, T61 6460-65G W7 x64, T43 2668-F3G W7 x86.

  • Can I save my movies to the cloud and download them when I want?

    I thought that we could save our movie purchases in the cloud and then download them to my iphone when I wanted to watch them?

  • LDAP Performance metrics

    Hi All, Does anyone know of any good code, open source or commerical for gettiing good historical trending of ldap server operatioons. eg. operations per hour / day / month etc. I saw something called Mirabai whoch looked like it would do exactly wha